Combined Code
movieClip 9 {
}
movieClip 11 {
}
movieClip 12 {
}
movieClip 13 {
}
movieClip 14 {
}
movieClip 15 {
frame 12 {
stop();
}
}
button 23 {
on (release) {
gotoAndPlay(2);
_root.soundstatus = 'off';
}
}
movieClip 24 {
frame 11 {
stop();
}
}
button 26 {
on (release) {
gotoAndPlay(1);
_root.soundstatus = 'on';
}
}
movieClip 27 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 35 {
}
movieClip 36 sound_contr {
instance of movieClip 35 {
onClipEvent (load) {
_root.soundstatus = 'on';
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == 'on') {
step = 5;
}
if (_root.soundstatus == 'off') {
step = -5;
}
maxvolume += step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
}
}
movieClip 38 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 107 {
}
movieClip 108 {
}
movieClip 111 {
}
movieClip 116 {
}
movieClip 118 {
}
movieClip 121 cop {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
}
movieClip 142 {
frame 63 {
stop();
}
}
movieClip 151 {
frame 7 {
stop();
}
}
movieClip 157 {
frame 5 {
stop();
}
}
movieClip 173 {
frame 15 {
stop();
}
}
movieClip 174 {
}
movieClip 176 {
}
movieClip 177 splatter {
frame 81 {
this.removeMovieClip();
}
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 185 {
}
movieClip 186 {
}
movieClip 188 {
}
movieClip 189 {
}
movieClip 190 {
}
movieClip 191 {
}
movieClip 192 machineGunz {
}
movieClip 193 {
}
movieClip 196 {
}
movieClip 197 {
}
movieClip 198 {
}
movieClip 228 {
}
movieClip 229 {
}
movieClip 248 {
}
movieClip 249 {
}
movieClip 252 {
}
movieClip 256 {
}
movieClip 258 {
}
movieClip 262 {
}
movieClip 263 {
frame 30 {
stop();
}
}
movieClip 264 withGun {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 268 {
}
movieClip 270 {
}
movieClip 271 {
}
movieClip 272 shootygun {
}
movieClip 273 flash {
frame 8 {
this.removeMovieClip();
}
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 278 {
}
movieClip 280 {
}
movieClip 282 {
}
movieClip 284 {
}
movieClip 286 {
}
movieClip 288 {
}
movieClip 289 {
}
movieClip 290 {
}
movieClip 292 {
}
movieClip 294 {
}
movieClip 296 {
}
movieClip 298 {
}
movieClip 300 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 304 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 309 {
}
movieClip 311 {
}
movieClip 313 {
}
movieClip 314 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 319 {
}
movieClip 321 {
}
movieClip 323 {
}
movieClip 325 {
}
movieClip 327 {
}
movieClip 329 {
}
movieClip 330 {
}
movieClip 331 {
}
movieClip 333 {
}
movieClip 335 {
}
movieClip 337 {
}
movieClip 339 {
}
movieClip 341 {
}
movieClip 343 {
}
movieClip 345 {
}
movieClip 346 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 351 {
}
movieClip 353 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 359 {
}
movieClip 360 {
}
movieClip 362 {
}
movieClip 364 {
}
movieClip 365 {
}
movieClip 367 {
}
movieClip 368 {
}
movieClip 370 {
}
movieClip 372 {
}
movieClip 373 {
}
movieClip 375 {
}
movieClip 377 {
}
movieClip 379 {
}
movieClip 380 {
}
movieClip 382 {
}
movieClip 393 {
}
movieClip 394 {
}
movieClip 400 {
frame 11 {
stop();
}
}
movieClip 401 playerBlack {
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();
}
}
movieClip 402 {
}
movieClip 425 {
}
movieClip 426 {
}
movieClip 427 {
}
movieClip 448 {
}
movieClip 450 {
}
movieClip 471 {
}
movieClip 472 {
}
movieClip 495 {
}
movieClip 496 {
}
movieClip 517 {
}
movieClip 518 {
}
movieClip 519 {
}
movieClip 542 {
}
movieClip 543 {
}
movieClip 564 {
}
movieClip 566 {
}
movieClip 591 {
}
movieClip 592 {
}
movieClip 615 {
}
movieClip 616 {
}
movieClip 641 {
}
movieClip 642 {
}
movieClip 643 {
}
movieClip 666 {
}
movieClip 667 {
}
movieClip 688 {
}
movieClip 690 {
}
movieClip 716 {
}
movieClip 717 {
}
movieClip 742 {
}
movieClip 743 {
}
movieClip 766 {
}
movieClip 767 {
}
movieClip 790 {
}
movieClip 791 {
}
movieClip 812 {
}
movieClip 814 {
}
movieClip 835 {
}
movieClip 836 {
}
movieClip 859 {
}
movieClip 860 {
}
movieClip 883 {
}
movieClip 884 {
}
movieClip 909 {
}
movieClip 910 {
}
movieClip 913 {
}
movieClip 914 playerWhite {
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();
}
}
movieClip 915 {
}
movieClip 940 {
}
movieClip 941 {
}
movieClip 942 {
}
movieClip 985 {
}
movieClip 986 {
}
movieClip 1013 {
}
movieClip 1014 {
}
movieClip 1017 {
}
movieClip 1022 {
}
movieClip 1028 {
frame 30 {
stop();
}
}
movieClip 1029 midlvlboss {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1033 {
}
movieClip 1034 {
}
movieClip 1035 flameGun {
}
movieClip 1036 {
}
movieClip 1037 blood {
frame 11 {
this.removeMovieClip();
}
}
movieClip 1040 {
}
movieClip 1041 {
}
movieClip 1042 {
}
movieClip 1082 {
}
movieClip 1083 {
}
movieClip 1112 {
}
movieClip 1113 {
}
movieClip 1114 {
}
movieClip 1117 {
}
movieClip 1122 {
}
movieClip 1125 {
}
movieClip 1128 {
frame 30 {
stop();
}
}
movieClip 1129 enemy4 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1130 {
}
movieClip 1155 {
}
movieClip 1156 {
}
movieClip 1199 {
}
movieClip 1200 {
}
movieClip 1225 {
}
movieClip 1226 {
}
movieClip 1251 {
}
movieClip 1253 {
}
movieClip 1279 {
}
movieClip 1304 {
}
movieClip 1305 {
}
movieClip 1306 {
}
movieClip 1309 {
frame 30 {
stop();
}
}
movieClip 1310 enemy3 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1342 {
}
movieClip 1343 {
}
movieClip 1376 {
}
movieClip 1377 {
}
movieClip 1409 {
}
movieClip 1410 {
}
movieClip 1413 {
}
movieClip 1418 {
}
movieClip 1421 {
}
movieClip 1424 {
frame 30 {
stop();
}
}
movieClip 1425 enemy2 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1426 {
}
movieClip 1427 enemy {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1429 {
}
movieClip 1430 {
}
movieClip 1431 flameBullet {
}
movieClip 1435 bullet {
}
movieClip 1436 shadow_mc {
}
movieClip 1437 {
}
movieClip 1439 {
}
movieClip 1441 {
}
movieClip 1443 {
}
movieClip 1445 {
}
movieClip 1447 {
}
movieClip 1449 {
}
movieClip 1451 {
}
movieClip 1452 {
}
movieClip 1453 {
}
movieClip 1455 {
}
movieClip 1457 {
}
movieClip 1459 {
}
movieClip 1461 {
}
movieClip 1463 {
}
movieClip 1464 {
}
movieClip 1466 {
}
movieClip 1467 {
}
movieClip 1469 {
}
movieClip 1470 {
}
movieClip 1472 {
}
movieClip 1474 {
}
movieClip 1476 {
}
movieClip 1478 {
}
movieClip 1480 {
}
movieClip 1481 {
}
movieClip 1482 {
}
movieClip 1484 {
}
movieClip 1485 {
}
movieClip 1486 {
}
movieClip 1488 {
}
movieClip 1489 {
}
movieClip 1490 {
}
movieClip 1492 {
}
movieClip 1494 {
}
movieClip 1495 {
}
movieClip 1497 {
}
movieClip 1499 {
}
movieClip 1501 {
}
movieClip 1502 {
}
movieClip 1503 {
}
movieClip 1505 {
}
movieClip 1506 {
}
movieClip 1507 {
}
movieClip 1508 {
}
movieClip 1510 {
}
movieClip 1512 {
}
movieClip 1513 {
}
movieClip 1514 {
}
movieClip 1516 {
}
movieClip 1518 {
}
movieClip 1519 {
}
movieClip 1521 {
}
movieClip 1523 {
}
movieClip 1524 {
}
movieClip 1526 {
}
movieClip 1527 {
}
movieClip 1529 {
}
movieClip 1531 {
}
movieClip 1532 {
}
movieClip 1534 {
}
movieClip 1535 {
}
movieClip 1537 {
}
movieClip 1539 {
}
movieClip 1540 {
}
movieClip 1542 {
}
movieClip 1544 {
}
movieClip 1545 {
}
movieClip 1547 {
}
movieClip 1548 {
}
movieClip 1550 {
}
movieClip 1559 {
}
movieClip 1560 {
}
movieClip 1561 player {
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 1 {
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
}
frame 2 {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(5);
}
}
movieClip 1564 {
}
instance of movieClip 1564 {
onClipEvent (release) {
getURL('http://www.funfastgame.com', '_blank');
}
}
movieClip 1566 {
}
movieClip 1577 {
}
frame 3 {
gotoAndPlay(2);
}
frame 5 {
logo.onPress = function () {
getURL('http://www.funfastgame.com', '_blank');
};
}
movieClip 1579 {
}
movieClip 1582 {
}
button 1584 {
on (release) {
getURL('www.funfastgame.com', '_blank');
}
}
movieClip 1585 {
frame 30 {
stop();
}
}
movieClip 1586 {
frame 1 {
_root.stop();
}
frame 175 {
_root.play();
stopAllSounds();
}
}
frame 6 {
stop();
blip_sound = new Sound();
blip_sound.attachSound('css');
moveOn = false;
moveOnTimer = 0;
canSelect = true;
playerSelect = 1;
screen.onEnterFrame = function () {
if (moveOn) {
++moveOnTimer;
if (moveOnTimer == 15) {
gotoAndPlay(8);
}
}
};
screen.onRelease = function () {
if (canSelect) {
blip_sound.start();
moveOn = true;
_root.attachMovie('flash', 'flash', _root.getNextHighestDepth());
canSelect = false;
}
};
}
movieClip 1587 {
}
movieClip 1588 {
}
movieClip 1591 {
}
movieClip 1594 {
}
movieClip 1599 {
}
movieClip 1601 {
}
movieClip 1604 {
}
movieClip 1610 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance screen of movieClip 1610 {
onClipEvent (rollOver) {
this.gotoAndStop('over');
}
onClipEvent (rollOut) {
this.gotoAndStop('up');
}
}
movieClip 1618 {
}
movieClip 1619 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
stop();
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
camControl();
}
}
instance of movieClip 1564 {
onClipEvent (release) {
getURL('http://www.funfastgame.com', '_blank');
}
}
frame 7 {
stop();
playerSelect = 0;
once = 0;
hover_sound = new Sound();
hover_sound.attachSound('other');
blip_sound = new Sound();
blip_sound.attachSound('css');
moveOn = false;
moveOnTimer = 0;
canSelect = true;
one.onEnterFrame = function () {
if (!this.hitTest(_xmouse, _ymouse, true) && !two.hitTest(_xmouse, _ymouse, true) && !three.hitTest(_xmouse, _ymouse, true)) {
once = 0;
}
if (moveOn) {
++moveOnTimer;
if (moveOnTimer == 15) {
nextFrame();
}
}
if (this.hitTest(_xmouse, _ymouse, true)) {
this.gotoAndStop('over');
if (once == 0) {
once = 1;
hover_sound.start();
}
return undefined;
}
this.gotoAndStop('up');
};
two.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true)) {
this.gotoAndStop('over');
if (once == 0) {
once = 1;
hover_sound.start();
}
return undefined;
}
this.gotoAndStop('up');
};
three.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true)) {
this.gotoAndStop('over');
if (once == 0) {
once = 1;
hover_sound.start();
}
return undefined;
}
this.gotoAndStop('up');
};
one.onRelease = function () {
if (canSelect) {
blip_sound.start();
moveOn = true;
_root.attachMovie('flash', 'flash', _root.getNextHighestDepth());
playerSelect = 0;
canSelect = false;
}
};
two.onRelease = function () {
if (canSelect) {
blip_sound.start();
moveOn = true;
_root.attachMovie('flash', 'flash', _root.getNextHighestDepth());
playerSelect = 1;
canSelect = false;
}
};
three.onRelease = function () {
if (canSelect) {
blip_sound.start();
moveOn = true;
_root.attachMovie('flash', 'flash', _root.getNextHighestDepth());
playerSelect = 2;
canSelect = false;
}
};
}
movieClip 1624 {
}
movieClip 1626 {
}
movieClip 1628 {
}
movieClip 1631 {
}
movieClip 1633 {
}
movieClip 1635 {
}
movieClip 1637 {
}
movieClip 1644 {
}
movieClip 1648 {
frame 20 {
stop();
}
}
movieClip 1650 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1653 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1656 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 8 {
stop();
}
movieClip 1659 {
}
movieClip 1661 {
}
movieClip 1663 {
}
movieClip 1665 {
}
movieClip 1667 {
}
movieClip 1670 {
}
instance of movieClip 1670 {
onClipEvent (release) {
stopAllSounds();
_root.nextFrame();
}
}
movieClip 1703 {
}
movieClip 1705 {
}
movieClip 1707 {
}
movieClip 1710 {
}
movieClip 1713 {
}
movieClip 1715 {
}
movieClip 1717 {
}
movieClip 1719 {
}
movieClip 1721 {
}
movieClip 1722 {
}
movieClip 1723 {
}
movieClip 1724 {
}
movieClip 1725 {
}
movieClip 1728 {
}
movieClip 1729 {
}
movieClip 1731 {
}
movieClip 1733 {
}
movieClip 1735 {
}
movieClip 1736 {
}
movieClip 1738 {
}
movieClip 1740 {
}
movieClip 1742 {
}
movieClip 1744 {
}
movieClip 1747 {
}
movieClip 1749 {
}
movieClip 1750 {
}
movieClip 1751 {
}
movieClip 1753 {
}
movieClip 1754 {
}
movieClip 1755 {
}
movieClip 1756 {
}
movieClip 1757 {
}
movieClip 1759 {
}
movieClip 1760 {
}
movieClip 1762 {
}
movieClip 1764 {
}
movieClip 1765 {
}
movieClip 1766 {
}
movieClip 1767 {
}
movieClip 1768 {
frame 1 {
_root.stop();
}
frame 410 {
_root.play();
}
}
frame 10 {
function removedied() {
i = died.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
died[i].removeMovieClip();
died.splice(i, 1);
--i;
}
}
function removebullets() {
i = bullets.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bullets[i].removeMovieClip();
bullets.splice(i, 1);
--i;
}
}
function removebulletType() {
i = bulletType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bulletType[i].removeMovieClip();
bulletType.splice(i, 1);
--i;
}
}
function removeegroundMarker() {
i = egroundMarker.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egroundMarker[i].removeMovieClip();
egroundMarker.splice(i, 1);
--i;
}
}
function removeegravity() {
i = egravity.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egravity[i].removeMovieClip();
egravity.splice(i, 1);
--i;
}
}
function removepotionType() {
i = potionType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potionType[i].removeMovieClip();
potionType.splice(i, 1);
--i;
}
}
function removepotions() {
i = potions.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potions[i].removeMovieClip();
potions.splice(i, 1);
--i;
}
}
function removeboxHealth() {
i = boxHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHealth[i].removeMovieClip();
boxHealth.splice(i, 1);
--i;
}
}
function removeboxHit() {
i = boxHit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHit[i].removeMovieClip();
boxHit.splice(i, 1);
--i;
}
}
function removeboxHitTimer() {
i = boxHitTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHitTimer[i].removeMovieClip();
boxHitTimer.splice(i, 1);
--i;
}
}
function removeboxes() {
i = boxes.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxes[i].removeMovieClip();
boxes.splice(i, 1);
--i;
}
}
function removeedropping() {
i = edropping.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
edropping[i].removeMovieClip();
edropping.splice(i, 1);
--i;
}
}
function removeeonfloor() {
i = eonfloor.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eonfloor[i].removeMovieClip();
eonfloor.splice(i, 1);
--i;
}
}
function removeejump() {
i = ejump.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejump[i].removeMovieClip();
ejump.splice(i, 1);
--i;
}
}
function removeejumpamount() {
i = ejumpamount.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejumpamount[i].removeMovieClip();
ejumpamount.splice(i, 1);
--i;
}
}
function removeeyspeed() {
i = eyspeed.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eyspeed[i].removeMovieClip();
eyspeed.splice(i, 1);
--i;
}
}
function removeshot() {
i = shot.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
shot[i].removeMovieClip();
shot.splice(i, 1);
--i;
}
}
function removeportTimer() {
i = portTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
--i;
}
}
function removebeingSmacked() {
i = beingSmacked.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
beingSmacked[i].removeMovieClip();
beingSmacked.splice(i, 1);
--i;
}
}
function removedead_body() {
i = dead_body.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dead_body[i].removeMovieClip();
dead_body.splice(i, 1);
--i;
}
}
function removetype() {
i = type.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
type[i].removeMovieClip();
type.splice(i, 1);
--i;
}
}
function removehypArray() {
i = hypArray.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hypArray[i].removeMovieClip();
hypArray.splice(i, 1);
--i;
}
}
function removeenemyHealth() {
i = enemyHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
--i;
}
}
function removedamagedTimer() {
i = damagedTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
--i;
}
}
function removehit() {
i = hit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hit[i].removeMovieClip();
hit.splice(i, 1);
--i;
}
}
function removeenemyAttackingTimer() {
i = enemyAttackingTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
--i;
}
}
function removeenemyAttacking() {
i = enemyAttacking.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
--i;
}
}
function removeenemy() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemy[i].removeMovieClip();
enemy.splice(i, 1);
--i;
}
}
function removeblocks() {
i = blocks.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
blocks[i].removeMovieClip();
blocks.splice(i, 1);
--i;
}
}
function removemoveAbout() {
i = moveAbout.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
--i;
}
}
function removewhere() {
i = where.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
where[i].removeMovieClip();
where.splice(i, 1);
--i;
}
}
function removeonPlatform() {
i = onPlatform.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
onPlatform[i].removeMovieClip();
onPlatform.splice(i, 1);
--i;
}
}
function removepickAttack() {
i = pickAttack.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
pickAttack[i].removeMovieClip();
pickAttack.splice(i, 1);
--i;
}
}
function removeport() {
i = port.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
port[i].removeMovieClip();
port.splice(i, 1);
--i;
}
}
function removefalling() {
i = falling.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
falling[i].removeMovieClip();
falling.splice(i, 1);
--i;
}
}
function removedown() {
i = down.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
down[i].removeMovieClip();
down.splice(i, 1);
--i;
}
}
function removedownTimer() {
i = downTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
downTimer[i].removeMovieClip();
downTimer.splice(i, 1);
--i;
}
}
function removedepths() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
depths[i].removeMovieClip();
depths.splice(i, 1);
--i;
}
}
function removeEverything() {
stopAllSounds();
italy.removeMovieClip();
cont.removeMovieClip();
machineGunz.removeMovieClip();
flameGun.removeMovieClip();
shootygun.removeMovieClip();
player.removeMovieClip();
removedied();
removebullets();
removebulletType();
removeegroundMarker();
removeegravity();
removepotionType();
removepotions();
removeboxHealth();
removeboxHit();
removeboxHitTimer();
removeboxes();
removeedropping();
removeeonfloor();
removeejump();
removeejumpamount();
removeeyspeed();
removeshot();
removeportTimer();
removebeingSmacked();
removedead_body();
removetype();
removehypArray();
removeenemyHealth();
removedamagedTimer();
removehit();
removeenemyAttackingTimer();
removeenemyAttacking();
removeenemy();
removeblocks();
removemoveAbout();
removewhere();
removeonPlatform();
removepickAttack();
removeport();
removefalling();
removedown();
removedownTimer();
removedepths();
}
function noOverLap() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
j = enemy.length - 1;
while (j >= 0) {
if (enemy[i] !== enemy[j]) {
if (enemy[i].hitTest(enemy[j])) {
if (enemyHealth[i] > 0 && !down[i]) {
endX = _root.enemy[j]._x;
enemy[i]._x -= (endX - enemy[i]._x) / enemySpeed;
}
}
}
--j;
}
--i;
}
}
function theStage() {
if (player._x > 1140 && sectionOneRelease) {
enemyNumber = 3;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionOneRelease = false;
}
if (player._x > 1700 && sectionTwoRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionTwoRelease = false;
}
if (player._x > 2300 && sectionThreeRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionThreeRelease = false;
}
if (player._x > 2700 && sectionFourRelease) {
enemyNumber = 1;
++randomNumber;
enemy_mc = _root.attachMovie('midlvlboss', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3100, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(1);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(50);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionFourRelease = false;
}
if (player._x > 3300 && sectionFiveRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionFiveRelease = false;
}
if (player._x > 4000 && sectionSixRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionSixRelease = false;
}
if (player._x > 4800 && sectionSevenRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 6000, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionSevenRelease = false;
}
if (player._x > 5500 && sectionEightRelease) {
enemyNumber = 2;
++randomNumber;
enemy_mc = _root.attachMovie('midlvlboss', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3100, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(1);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(50);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 6200, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionEightRelease = false;
}
}
function depthActions() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
if (!jump) {
depths[i].idiot_depth = Math.floor(depths[i]._y * 480 + depths[i]._x);
depths[i].swapDepths(depths[i].idiot_depth);
}
--i;
}
}
function calculateHyp() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dist_x = player._x - enemy[i]._x;
dist_y = player._y - enemy[i]._y;
hypArray[i] = Math.sqrt(dist_x * dist_x + dist_y * dist_y);
--i;
}
}
function enemyMovement() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemy[i]._yscale = 180;
if (_global.forceDrop) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
_global.forceDrop = false;
}
if (type[i] == 0) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 100) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 114) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 120});
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 3) + 0;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 75) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 75) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 1) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--bigGuy;
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
enemyAttackingTimer[i] = 100;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 280) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 2) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 280) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumbe, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
--i;
}
}
function playerMovement() {
if (shootygun.hitTest(player._x, player._y, true)) {
hover_sound.start();
shootygun.removeMovieClip();
weapon = 'shotGun';
}
if (machineGunz.hitTest(player._x, player._y, true)) {
hover_sound.start();
machineGunz.removeMovieClip();
weapon = 'default';
}
if (flameGun.hitTest(player._x, player._y, true)) {
hover_sound.start();
flameGun.removeMovieClip();
weapon = 'flame';
}
if (_global.alive && notOverHeated && !jump && Key.isDown(65)) {
shooting = true;
}
if (!Key.isDown(65)) {
shooting = false;
}
i = bullets.length - 1;
while (i >= 0) {
if (bullets[i].hitTest(player.hit)) {
if (bulletType[i] == 'bad') {
hitPlayer = 1;
_global.playerHealth -= 5;
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (bulletType[i] == 'flamethrower') {
bullets[i]._xscale += 100;
bullets[i]._yscale += 100;
if (bullets[i]._xscale > 1200) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (0 != bullets[i]._x > player._x + 640 | 0 != bullets[i]._x < player._x - 640) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
--i;
}
if (shooting) {
if (shotTimer + reloadTime < getTimer()) {
shotTimer = getTimer();
overHeat += 3;
if (overHeat > 100) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 250};
myColor.setTransform(myColorTransform);
dropSpeed = 0.5;
overHeat = 100;
cam.weaponoverheat._alpha = 100;
notOverHeated = false;
}
if (weapon == 'pistols') {
bulletPower = 1;
reloadTime = 250;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x += 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 65, '_y': player._y - 84});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x += 18;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x -= 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 65, '_y': player._y - 84});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x -= 18;
};
}
}
if (weapon == 'default') {
machinegun_sound.start();
bulletPower = 2;
reloadTime = 100;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
}
if (weapon == 'flame') {
flame_sound.start();
bulletPower = 3;
reloadTime = 100;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x += 10;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x -= 10;
};
}
}
if (weapon == 'shotGun') {
shotgun_sound.start();
bulletPower = 3;
reloadTime = 700;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x += 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x += 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x += 30;
this._y -= 2.5;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x -= 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x -= 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x -= 30;
this._y -= 2.5;
};
}
}
}
}
if (hitPlayer == 0) {
var v4 = player.transform.colorTransform;
player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
if (hitPlayer == 1) {
v4 = player.transform.colorTransform;
v4.rgb = 4294967295.0;
player.transform.colorTransform = v4;
++hitTimer;
if (hitTimer == 1) {
hitPlayer = 0;
hitTimer = 0;
}
}
if (cam._x < 315) {
cam._x = 315;
}
if (cam._x > 6800) {
cam._x = 6800;
}
if (player._x < callcam._x) {
endX = _root.callcam._x;
cam._x += (endX - cam._x - 220) / 15;
} else {
if (lock == 0) {
endX = _root.player._x;
cam._x += (endX - cam._x) / 15;
}
}
if (!moveOn) {
if (player.hitTest(cam.right)) {
player._x -= playerSpeed;
}
}
if (player.hitTest(cam.left)) {
player._x += playerSpeed;
}
if (player._y > 435) {
player._y = 435;
}
if (player._y < 230 && !jump) {
player._y = 230;
}
if (_global.alive) {
if (!stab) {
if (weapon == 'pistols') {
if (jump) {
player.gotoAndStop('jumpPistol');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootPistol');
}
if (running) {
player.gotoAndStop('shootWalkPistol');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idlePistol');
}
if (running) {
player.gotoAndStop('runPistol');
}
}
}
}
}
if (weapon == 'default') {
if (jump) {
player.gotoAndStop('jump');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shoot');
}
if (running) {
player.gotoAndStop('shootWalk');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idle');
}
if (running) {
player.gotoAndStop('run');
}
}
}
}
}
if (weapon == 'shotGun') {
if (jump) {
player.gotoAndStop('jumpshotGun');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootshotGun');
}
if (running) {
player.gotoAndStop('shootWalkshotGun');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleshotGun');
}
if (running) {
player.gotoAndStop('runshotGun');
}
}
}
}
}
if (weapon == 'flame') {
if (jump) {
player.gotoAndStop('jumpflame');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootflame');
}
if (running) {
player.gotoAndStop('shootWalkflame');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleflame');
}
if (running) {
player.gotoAndStop('runflame');
}
}
}
}
}
}
}
if (!_global.alive) {
player.gotoAndStop('dead');
}
if (Key.isDown(83)) {
if (canAttack) {
if (_global.alive) {
if (!shooting) {
if (!jump) {
stab = true;
}
}
}
}
}
if (stab) {
playerSpeed = 0;
++stabTimer;
player.gotoAndStop('melee');
if (stabTimer == 14) {
playerSpeed = 7;
stabTimer = 0;
stab = false;
}
}
if (Key.isDown(68)) {
if (_global.alive) {
if (!sliding) {
if (!stab) {
if (onfloor) {
shooting = false;
groundMarker = player._y;
jump = true;
onfloor = false;
_root.attachMovie('shadow_mc', 'shadow_mc', _root.getNextHighestDepth(), {'_y': player._y, '_x': player._x});
yspeed -= jumpamount;
}
}
}
}
}
if (!Key.isDown(38)) {
running = false;
}
if (!Key.isDown(40)) {
running = false;
}
if (!Key.isDown(39)) {
running = false;
}
if (!Key.isDown(37)) {
running = false;
}
if (_global.alive && inControl) {
if (Key.isDown(39)) {
player._xscale = 65;
player._x += playerSpeed;
running = true;
}
if (Key.isDown(37)) {
player._xscale = -65;
player._x -= playerSpeed;
running = true;
}
if (Key.isDown(38)) {
player._y -= playerSpeed;
running = true;
}
if (Key.isDown(40)) {
player._y += playerSpeed;
running = true;
}
}
if (jump) {
player._y += yspeed;
if (player._y > groundMarker) {
shadow_mc.removeMovieClip();
onfloor = true;
jump = false;
yspeed = 0;
player._y = groundMarker;
return undefined;
}
yspeed += gravity * 2;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
blu_sound = new Sound();
blu_sound.attachSound('blu');
hover_sound = new Sound();
hover_sound.attachSound('other');
shotgun_sound = new Sound();
shotgun_sound.attachSound('shotBoom');
machinegun_sound = new Sound();
machinegun_sound.attachSound('mg');
hurt_sound = new Sound();
hurt_sound.attachSound('hurt');
flame_sound = new Sound();
flame_sound.attachSound('flamwthrowa');
cam._xscale = 100;
cam._yscale = 100;
if (playerSelect == 0) {
_root.attachMovie('player', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
if (playerSelect == 1) {
_root.attachMovie('playerWhite', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
if (playerSelect == 2) {
_root.attachMovie('playerBlack', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
_root.attachMovie('shootygun', 'shootygun', _root.getNextHighestDepth(), {'_x': 1500, '_y': 450});
_root.attachMovie('machineGunz', 'machineGunz', _root.getNextHighestDepth(), {'_x': 2700, '_y': 350});
_root.attachMovie('flameGun', 'flameGun', _root.getNextHighestDepth(), {'_x': 4000, '_y': 330});
player._yscale = 65;
player._xscale = 65;
lives = 2;
livesNumber = 2;
runTrans = false;
moveOn = false;
bigGuy = 2;
toGo = 0;
inControl = true;
canAttack = true;
addComplete = 0;
stageDone = false;
weapon = 'default';
stab = false;
_global.quit = false;
_global.alive = true;
_global.forceDrop = false;
notOverHeated = true;
overHeat = 0;
dropSpeed = 1;
_global.playerHealth = 100;
gaySound = 0;
enemyPower = 0.5;
stabTimer = 0;
dashSpeed = 10;
enemyNumber = 1;
bulletPower = 1;
randomNumber = 0;
jump = false;
enemySpeed = 50;
jumpamount = 25;
gravity = 2;
pullingCam = false;
yspeed = 0;
onfloor = true;
pressHack = 0;
lock = 0;
sliding = false;
slidingTimer = 0;
special = false;
specialTimer = 0;
clicks = 0;
shooting = false;
hit2 = false;
hit3 = false;
running = false;
attacking = false;
playerSpeed = 7;
is_attacking = 0;
smack = 0;
hitPlayer = 0;
pick = Math.round(Math.random() * 3) + 0;
hitTimer = 0;
shotTimer = 0;
reloadTime = 100;
enemyShotTimer = 0;
sectionOneRelease = true;
sectionTwoRelease = true;
sectionThreeRelease = true;
sectionFourRelease = true;
sectionFiveRelease = true;
sectionSixRelease = true;
sectionSevenRelease = true;
sectionEightRelease = true;
sectionNineRelease = true;
sectionTenRelease = true;
sectionElevenRelease = true;
groundMarker = player._y;
var bullets = new Array();
var bulletType = new Array();
var egroundMarker = new Array();
var egravity = new Array();
var potionType = new Array();
var potions = new Array();
var boxHealth = new Array();
var boxHit = new Array();
var boxHitTimer = new Array();
var boxes = new Array();
var edropping = new Array();
var eonfloor = new Array();
var ejump = new Array();
var ejumpamount = new Array();
var eyspeed = new Array();
var shot = new Array();
var portTimer = new Array();
var beingSmacked = new Array();
var dead_body = new Array();
var type = new Array();
var hypArray = new Array();
var enemyHealth = new Array();
var damagedTimer = new Array();
var hit = new Array();
var enemyAttackingTimer = new Array();
var enemyAttacking = new Array();
var enemy = new Array();
var blocks = new Array();
var moveAbout = new Array();
var where = new Array();
var onPlatform = new Array();
var pickAttack = new Array();
var port = new Array();
var falling = new Array();
var down = new Array();
var downTimer = new Array();
var depths = new Array();
var died = new Array();
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': 450});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': 450});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': 450});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': 450});
}
depths.push(player, shootygun, enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
player.onEnterFrame = function () {
if (moveOn) {
stabTimer = 0;
stab = false;
energy = 0;
canAttack = false;
inControl = false;
player._xscale = 65;
playerSpeed = 18;
player._x += playerSpeed;
running = true;
player._x += cam._x + 650;
}
if (runTrans) {
removeEverything();
nextFrame();
}
if (player._x > cam._x + 550) {
if (addComplete == 0) {
runTrans = true;
playerSpeed = 0;
addComplete = 1;
}
stageDone = true;
cam.goSign._alpha = 0;
moveOn = false;
}
if (_global.playerHealth < 0) {
--lives;
--livesNumber;
_root.attachMovie('splatter', 'splatter', _root.getNextHighestDepth());
splatter._x = cam._x;
splatter._y = cam._y;
shooting = false;
_global.alive = false;
_global.playerHealth = 0;
}
cam.bar._xscale = _global.playerHealth;
if (enemyNumber == 0) {
if (gaySound == 0) {
blu_sound.start(0, 3);
gaySound = 1;
}
if (!stageDone) {
cam.goSign._alpha = 100;
}
lock = 0;
pullingCam = true;
} else {
gaySound = 0;
cam.goSign._alpha = 0;
pullingCam = false;
}
if (pullingCam) {
callcam._x = player._x;
} else {
if (lock == 0) {
lock = 1;
callcam._x = cam._x + 155;
}
}
if (!notOverHeated) {
overHeat -= dropSpeed;
shooting = false;
}
if (!shooting) {
if (notOverHeated) {
overHeat -= dropSpeed;
dropSpeed = 1;
}
}
if (overHeat < 0) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
cam.weaponoverheat._alpha = 0;
myColor.setTransform(myColorTransform);
overHeat = 0;
notOverHeated = true;
}
if (_global.alive) {
italy._y = cam._y - 1000;
}
if (!_global.alive && lives < 0) {
italy._y = cam._y;
}
italy._x = cam._x;
if (_global.alive) {
cont._y = cam._y - 1000;
}
if (!_global.alive && lives > -1) {
cont._y = cam._y;
}
if (bigGuy == 0 && enemyNumber == 0) {
moveOn = true;
}
cont._x = cam._x;
cam.heatBar._yscale = overHeat;
shadow_mc._x = player._x;
cam._y = _root.player._y - 150;
theStage();
cam.camControl();
playerMovement();
calculateHyp();
enemyMovement();
cont.swapDepths(_root.getNextHighestDepth());
italy.swapDepths(_root.getNextHighestDepth());
depthActions();
noOverLap();
if (livesNumber < 0) {
livesNumber = 0;
}
cam.livesNum.text = livesNumber;
if (_global.quit) {
stopAllSounds();
removeEverything();
_root.gotoAndStop('title');
}
};
frameRateCounter = setInterval(countFrames, 1000);
}
movieClip 1771 {
}
movieClip 1774 {
}
movieClip 1777 {
}
movieClip 1780 {
}
movieClip 1783 {
}
movieClip 1786 {
}
// unknown tag 88 length 99
// unknown tag 88 length 99
movieClip 1790 {
}
movieClip 1791 {
}
movieClip 1793 {
}
movieClip 1797 {
}
movieClip 1800 {
}
movieClip 1802 {
}
movieClip 1803 {
}
movieClip 1805 {
}
movieClip 1807 {
frame 101 {
stop();
}
}
movieClip 1808 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1809 {
on (release) {
getURL('www.funfastgame.com', '_blank');
}
}
movieClip 1810 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
stop();
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
camControl();
}
}
movieClip 1812 {
}
movieClip 1814 {
frame 1 {
++_root.frameCount;
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 1816 {
}
movieClip 1818 {
}
movieClip 1821 {
}
movieClip 1827 {
}
movieClip 1829 {
}
movieClip 1831 {
}
movieClip 1832 {
}
movieClip 1835 {
}
movieClip 1836 {
}
movieClip 1837 {
}
movieClip 1838 {
}
movieClip 1839 {
}
movieClip 1840 {
}
movieClip 1841 {
}
movieClip 1842 {
}
movieClip 1843 {
}
movieClip 1845 {
}
movieClip 1846 {
}
movieClip 1848 {
}
movieClip 1849 {
}
movieClip 1850 {
}
movieClip 1851 {
}
movieClip 1852 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1854 {
}
movieClip 1858 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1859 {
instance yes of movieClip 1852 {
onClipEvent (rollOver) {
this.gotoAndStop('over');
}
onClipEvent (rollOut) {
this.gotoAndStop('up');
}
onClipEvent (release) {
_global.playerHealth = 100;
_global.alive = true;
_global.forceDrop = true;
}
}
instance no of movieClip 1858 {
onClipEvent (rollOver) {
this.gotoAndStop('over');
}
onClipEvent (rollOut) {
this.gotoAndStop('up');
}
onClipEvent (release) {
_global.quit = true;
}
}
instance of movieClip 1564 {
onClipEvent (release) {
getURL('http://www.bandias.com/?a=mod_other_promo&f=thug', '_blank');
}
}
}
movieClip 1861 {
}
movieClip 1864 {
}
movieClip 1866 {
}
movieClip 1867 {
}
movieClip 1868 {
}
movieClip 1871 {
}
movieClip 1872 {
}
movieClip 1873 {
}
movieClip 1874 {
}
movieClip 1875 {
}
movieClip 1876 {
}
movieClip 1877 {
}
movieClip 1878 {
}
movieClip 1879 {
}
movieClip 1881 {
}
movieClip 1882 {
}
movieClip 1884 {
}
movieClip 1885 {
}
movieClip 1886 {
}
movieClip 1887 {
}
movieClip 1890 {
}
movieClip 1892 {
}
movieClip 1894 {
}
movieClip 1897 {
}
movieClip 1900 {
}
movieClip 1902 {
}
movieClip 1904 {
}
movieClip 1906 {
}
movieClip 1907 {
}
movieClip 1908 {
}
movieClip 1909 {
}
movieClip 1910 {
}
movieClip 1911 {
}
movieClip 1914 {
}
movieClip 1915 {
}
movieClip 1917 {
}
movieClip 1919 {
}
movieClip 1921 {
}
movieClip 1922 {
}
movieClip 1927 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1929 {
}
movieClip 1930 {
}
movieClip 1932 {
}
movieClip 1933 {
}
movieClip 1936 {
}
movieClip 1937 {
}
movieClip 1938 {
}
movieClip 1939 {
}
movieClip 1940 {
}
movieClip 1941 {
}
movieClip 1942 {
}
movieClip 1943 {
}
movieClip 1944 {
}
movieClip 1946 {
}
movieClip 1947 {
}
movieClip 1948 {
}
movieClip 1950 {
}
movieClip 1951 {
}
movieClip 1952 {
}
movieClip 1954 {
}
movieClip 1956 {
}
movieClip 1958 {
}
movieClip 1961 {
}
movieClip 1963 {
}
movieClip 1965 {
}
movieClip 1966 {
}
movieClip 1967 {
}
movieClip 1968 {
}
movieClip 1969 {
}
movieClip 1970 {
}
movieClip 1971 {
}
movieClip 1972 {
}
movieClip 1975 {
}
movieClip 1976 {
}
movieClip 1978 {
}
movieClip 1980 {
}
movieClip 1981 {
}
movieClip 1982 {
}
movieClip 1984 {
}
movieClip 1985 {
instance of movieClip 1927 {
onClipEvent (rollOver) {
this.gotoAndStop('over');
}
onClipEvent (rollOut) {
this.gotoAndStop('up');
}
onClipEvent (release) {
_global.quit = true;
}
}
instance of movieClip 1564 {
onClipEvent (release) {
getURL('http://www.bandias.com/?a=mod_other_promo&f=thug', '_blank');
}
}
}
movieClip 1989 {
}
movieClip 1990 {
frame 1 {
_root.stop();
}
frame 193 {
_root.play();
}
}
frame 12 {
play();
}
frame 13 {
function removedied() {
i = died.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
died[i].removeMovieClip();
died.splice(i, 1);
--i;
}
}
function removebullets() {
i = bullets.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bullets[i].removeMovieClip();
bullets.splice(i, 1);
--i;
}
}
function removebulletType() {
i = bulletType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bulletType[i].removeMovieClip();
bulletType.splice(i, 1);
--i;
}
}
function removeegroundMarker() {
i = egroundMarker.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egroundMarker[i].removeMovieClip();
egroundMarker.splice(i, 1);
--i;
}
}
function removeegravity() {
i = egravity.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egravity[i].removeMovieClip();
egravity.splice(i, 1);
--i;
}
}
function removepotionType() {
i = potionType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potionType[i].removeMovieClip();
potionType.splice(i, 1);
--i;
}
}
function removepotions() {
i = potions.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potions[i].removeMovieClip();
potions.splice(i, 1);
--i;
}
}
function removeboxHealth() {
i = boxHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHealth[i].removeMovieClip();
boxHealth.splice(i, 1);
--i;
}
}
function removeboxHit() {
i = boxHit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHit[i].removeMovieClip();
boxHit.splice(i, 1);
--i;
}
}
function removeboxHitTimer() {
i = boxHitTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHitTimer[i].removeMovieClip();
boxHitTimer.splice(i, 1);
--i;
}
}
function removeboxes() {
i = boxes.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxes[i].removeMovieClip();
boxes.splice(i, 1);
--i;
}
}
function removeedropping() {
i = edropping.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
edropping[i].removeMovieClip();
edropping.splice(i, 1);
--i;
}
}
function removeeonfloor() {
i = eonfloor.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eonfloor[i].removeMovieClip();
eonfloor.splice(i, 1);
--i;
}
}
function removeejump() {
i = ejump.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejump[i].removeMovieClip();
ejump.splice(i, 1);
--i;
}
}
function removeejumpamount() {
i = ejumpamount.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejumpamount[i].removeMovieClip();
ejumpamount.splice(i, 1);
--i;
}
}
function removeeyspeed() {
i = eyspeed.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eyspeed[i].removeMovieClip();
eyspeed.splice(i, 1);
--i;
}
}
function removeshot() {
i = shot.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
shot[i].removeMovieClip();
shot.splice(i, 1);
--i;
}
}
function removeportTimer() {
i = portTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
--i;
}
}
function removebeingSmacked() {
i = beingSmacked.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
beingSmacked[i].removeMovieClip();
beingSmacked.splice(i, 1);
--i;
}
}
function removedead_body() {
i = dead_body.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dead_body[i].removeMovieClip();
dead_body.splice(i, 1);
--i;
}
}
function removetype() {
i = type.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
type[i].removeMovieClip();
type.splice(i, 1);
--i;
}
}
function removehypArray() {
i = hypArray.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hypArray[i].removeMovieClip();
hypArray.splice(i, 1);
--i;
}
}
function removeenemyHealth() {
i = enemyHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
--i;
}
}
function removedamagedTimer() {
i = damagedTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
--i;
}
}
function removehit() {
i = hit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hit[i].removeMovieClip();
hit.splice(i, 1);
--i;
}
}
function removeenemyAttackingTimer() {
i = enemyAttackingTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
--i;
}
}
function removeenemyAttacking() {
i = enemyAttacking.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
--i;
}
}
function removeenemy() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemy[i].removeMovieClip();
enemy.splice(i, 1);
--i;
}
}
function removeblocks() {
i = blocks.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
blocks[i].removeMovieClip();
blocks.splice(i, 1);
--i;
}
}
function removemoveAbout() {
i = moveAbout.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
--i;
}
}
function removewhere() {
i = where.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
where[i].removeMovieClip();
where.splice(i, 1);
--i;
}
}
function removeonPlatform() {
i = onPlatform.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
onPlatform[i].removeMovieClip();
onPlatform.splice(i, 1);
--i;
}
}
function removepickAttack() {
i = pickAttack.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
pickAttack[i].removeMovieClip();
pickAttack.splice(i, 1);
--i;
}
}
function removeport() {
i = port.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
port[i].removeMovieClip();
port.splice(i, 1);
--i;
}
}
function removefalling() {
i = falling.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
falling[i].removeMovieClip();
falling.splice(i, 1);
--i;
}
}
function removedown() {
i = down.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
down[i].removeMovieClip();
down.splice(i, 1);
--i;
}
}
function removedownTimer() {
i = downTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
downTimer[i].removeMovieClip();
downTimer.splice(i, 1);
--i;
}
}
function removedepths() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
depths[i].removeMovieClip();
depths.splice(i, 1);
--i;
}
}
function removeEverything() {
stopAllSounds();
italy.removeMovieClip();
cont.removeMovieClip();
machineGunz.removeMovieClip();
flameGun.removeMovieClip();
shootygun.removeMovieClip();
player.removeMovieClip();
removedied();
removebullets();
removebulletType();
removeegroundMarker();
removeegravity();
removepotionType();
removepotions();
removeboxHealth();
removeboxHit();
removeboxHitTimer();
removeboxes();
removeedropping();
removeeonfloor();
removeejump();
removeejumpamount();
removeeyspeed();
removeshot();
removeportTimer();
removebeingSmacked();
removedead_body();
removetype();
removehypArray();
removeenemyHealth();
removedamagedTimer();
removehit();
removeenemyAttackingTimer();
removeenemyAttacking();
removeenemy();
removeblocks();
removemoveAbout();
removewhere();
removeonPlatform();
removepickAttack();
removeport();
removefalling();
removedown();
removedownTimer();
removedepths();
}
function noOverLap() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
j = enemy.length - 1;
while (j >= 0) {
if (enemy[i] !== enemy[j]) {
if (enemy[i].hitTest(enemy[j])) {
if (enemyHealth[i] > 0 && !down[i]) {
endX = _root.enemy[j]._x;
enemy[i]._x -= (endX - enemy[i]._x) / enemySpeed;
}
}
}
--j;
}
--i;
}
}
function theStage() {
if (player._x > 1140 && sectionOneRelease) {
enemyNumber = 3;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 1600, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionOneRelease = false;
}
if (player._x > 1700 && sectionTwoRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 300, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionTwoRelease = false;
}
if (player._x > 2300 && sectionThreeRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2580, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionThreeRelease = false;
}
if (player._x > 2700 && sectionFourRelease) {
enemyNumber = 2;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3100, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(50);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3100, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(50);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionFourRelease = false;
}
if (player._x > 3300 && sectionFiveRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionFiveRelease = false;
}
if (player._x > 4000 && sectionSixRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5000, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 2800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionSixRelease = false;
}
if (player._x > 4800 && sectionSevenRelease) {
enemyNumber = 4;
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': -800, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 5800, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 6000, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionSevenRelease = false;
}
if (player._x > 5500 && sectionEightRelease) {
enemyNumber = 3;
++randomNumber;
enemy_mc = _root.attachMovie('midlvlboss', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(1);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(3);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 3100, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(50);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
pick = Math.round(Math.random() * 3) + 0;
++randomNumber;
enemy_mc = _root.attachMovie('withGun', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 6200, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(2);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
sectionEightRelease = false;
}
}
function depthActions() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
if (!jump) {
depths[i].idiot_depth = Math.floor(depths[i]._y * 480 + depths[i]._x);
depths[i].swapDepths(depths[i].idiot_depth);
}
--i;
}
}
function calculateHyp() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dist_x = player._x - enemy[i]._x;
dist_y = player._y - enemy[i]._y;
hypArray[i] = Math.sqrt(dist_x * dist_x + dist_y * dist_y);
--i;
}
}
function enemyMovement() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
if (_global.forceDrop) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
_global.forceDrop = false;
}
enemy[i]._yscale = 180;
if (type[i] == 0) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 100) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 114) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 120});
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 3) + 0;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 75) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 75) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 1) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--bigGuy;
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 280) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 2) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 280) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
--i;
}
}
function playerMovement() {
if (shootygun.hitTest(player._x, player._y, true)) {
hover_sound.start();
shootygun.removeMovieClip();
weapon = 'shotGun';
}
if (machineGunz.hitTest(player._x, player._y, true)) {
hover_sound.start();
machineGunz.removeMovieClip();
weapon = 'default';
}
if (flameGun.hitTest(player._x, player._y, true)) {
hover_sound.start();
flameGun.removeMovieClip();
weapon = 'flame';
}
if (_global.alive && notOverHeated && !jump && Key.isDown(65)) {
shooting = true;
}
if (!Key.isDown(65)) {
shooting = false;
}
i = bullets.length - 1;
while (i >= 0) {
if (bullets[i].hitTest(player.hit)) {
if (bulletType[i] == 'bad') {
hitPlayer = 1;
_global.playerHealth -= 5;
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (bulletType[i] == 'flamethrower') {
bullets[i]._xscale += 100;
bullets[i]._yscale += 100;
if (bullets[i]._xscale > 1200) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (0 != bullets[i]._x > player._x + 640 | 0 != bullets[i]._x < player._x - 640) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
--i;
}
if (shooting) {
if (shotTimer + reloadTime < getTimer()) {
shotTimer = getTimer();
overHeat += 3;
if (overHeat > 100) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 250};
myColor.setTransform(myColorTransform);
dropSpeed = 0.5;
overHeat = 100;
cam.weaponoverheat._alpha = 100;
notOverHeated = false;
}
if (weapon == 'pistols') {
bulletPower = 1;
reloadTime = 250;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x += 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 65, '_y': player._y - 84});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x += 18;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x -= 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 65, '_y': player._y - 84});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x -= 18;
};
}
}
if (weapon == 'default') {
bulletPower = 2;
reloadTime = 100;
machinegun_sound.start();
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
}
if (weapon == 'flame') {
bulletPower = 3;
reloadTime = 100;
flame_sound.start();
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x += 10;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x -= 10;
};
}
}
if (weapon == 'shotGun') {
bulletPower = 3;
reloadTime = 700;
shotgun_sound.start();
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x += 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x += 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x += 30;
this._y -= 2.5;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x -= 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x -= 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x -= 30;
this._y -= 2.5;
};
}
}
}
}
if (hitPlayer == 0) {
var v4 = player.transform.colorTransform;
player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
if (hitPlayer == 1) {
v4 = player.transform.colorTransform;
v4.rgb = 4294967295.0;
player.transform.colorTransform = v4;
++hitTimer;
if (hitTimer == 1) {
hitPlayer = 0;
hitTimer = 0;
}
}
if (cam._x < 315) {
cam._x = 315;
}
if (cam._x > 6800) {
cam._x = 6800;
}
if (player._x < callcam._x) {
endX = _root.callcam._x;
cam._x += (endX - cam._x - 220) / 15;
} else {
if (lock == 0) {
endX = _root.player._x;
cam._x += (endX - cam._x) / 15;
}
}
if (!moveOn) {
if (player.hitTest(cam.right)) {
player._x -= playerSpeed;
}
}
if (player.hitTest(cam.left)) {
player._x += playerSpeed;
}
if (player._y > 440) {
player._y = 440;
}
if (player._y < 230 && !jump) {
player._y = 230;
}
if (_global.alive) {
if (!stab) {
if (weapon == 'pistols') {
if (jump) {
player.gotoAndStop('jumpPistol');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootPistol');
}
if (running) {
player.gotoAndStop('shootWalkPistol');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idlePistol');
}
if (running) {
player.gotoAndStop('runPistol');
}
}
}
}
}
if (weapon == 'default') {
if (jump) {
player.gotoAndStop('jump');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shoot');
}
if (running) {
player.gotoAndStop('shootWalk');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idle');
}
if (running) {
player.gotoAndStop('run');
}
}
}
}
}
if (weapon == 'shotGun') {
if (jump) {
player.gotoAndStop('jumpshotGun');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootshotGun');
}
if (running) {
player.gotoAndStop('shootWalkshotGun');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleshotGun');
}
if (running) {
player.gotoAndStop('runshotGun');
}
}
}
}
}
if (weapon == 'flame') {
if (jump) {
player.gotoAndStop('jumpflame');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootflame');
}
if (running) {
player.gotoAndStop('shootWalkflame');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleflame');
}
if (running) {
player.gotoAndStop('runflame');
}
}
}
}
}
}
}
if (!_global.alive) {
player.gotoAndStop('dead');
}
if (Key.isDown(83)) {
if (canAttack) {
if (_global.alive) {
if (!shooting) {
if (!jump) {
stab = true;
}
}
}
}
}
if (stab) {
playerSpeed = 0;
++stabTimer;
player.gotoAndStop('melee');
if (stabTimer == 14) {
playerSpeed = 7;
stabTimer = 0;
stab = false;
}
}
if (Key.isDown(68)) {
if (_global.alive) {
if (!sliding) {
if (!stab) {
if (onfloor) {
shooting = false;
groundMarker = player._y;
jump = true;
onfloor = false;
_root.attachMovie('shadow_mc', 'shadow_mc', _root.getNextHighestDepth(), {'_y': player._y, '_x': player._x});
yspeed -= jumpamount;
}
}
}
}
}
if (!Key.isDown(38)) {
running = false;
}
if (!Key.isDown(40)) {
running = false;
}
if (!Key.isDown(39)) {
running = false;
}
if (!Key.isDown(37)) {
running = false;
}
if (_global.alive && inControl) {
if (Key.isDown(39)) {
player._xscale = 65;
player._x += playerSpeed;
running = true;
}
if (Key.isDown(37)) {
player._xscale = -65;
player._x -= playerSpeed;
running = true;
}
if (Key.isDown(38)) {
player._y -= playerSpeed;
running = true;
}
if (Key.isDown(40)) {
player._y += playerSpeed;
running = true;
}
}
if (jump) {
player._y += yspeed;
if (player._y > groundMarker) {
shadow_mc.removeMovieClip();
onfloor = true;
jump = false;
yspeed = 0;
player._y = groundMarker;
return undefined;
}
yspeed += gravity * 2;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
blu_sound = new Sound();
blu_sound.attachSound('blu');
hover_sound = new Sound();
hover_sound.attachSound('other');
flame_sound = new Sound();
flame_sound.attachSound('flamwthrowa');
shotgun_sound = new Sound();
shotgun_sound.attachSound('shotBoom');
machinegun_sound = new Sound();
machinegun_sound.attachSound('mg');
hurt_sound = new Sound();
hurt_sound.attachSound('hurt');
cam._xscale = 100;
cam._yscale = 100;
if (playerSelect == 0) {
_root.attachMovie('player', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
if (playerSelect == 1) {
_root.attachMovie('playerWhite', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
if (playerSelect == 2) {
_root.attachMovie('playerBlack', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 450});
}
_root.attachMovie('shootygun', 'shootygun', _root.getNextHighestDepth(), {'_x': 500, '_y': 450});
_root.attachMovie('machineGunz', 'machineGunz', _root.getNextHighestDepth(), {'_x': 2700, '_y': 500});
_root.attachMovie('flameGun', 'flameGun', _root.getNextHighestDepth(), {'_x': 4000, '_y': 330});
player._yscale = 65;
player._xscale = 65;
_global.forceDrop = false;
runTrans = false;
moveOn = false;
bigGuy = 2;
toGo = 0;
inControl = true;
canAttack = true;
addComplete = 0;
stageDone = false;
stab = false;
_global.quit = false;
_global.alive = true;
notOverHeated = true;
overHeat = 0;
dropSpeed = 1;
_global.playerHealth = 100;
gaySound = 0;
enemyPower = 0.5;
stabTimer = 0;
dashSpeed = 10;
enemyNumber = 4;
randomNumber = 0;
jump = false;
enemySpeed = 50;
jumpamount = 25;
gravity = 2;
pullingCam = false;
yspeed = 0;
onfloor = true;
pressHack = 0;
lock = 0;
sliding = false;
slidingTimer = 0;
special = false;
specialTimer = 0;
clicks = 0;
shooting = false;
hit2 = false;
hit3 = false;
running = false;
attacking = false;
playerSpeed = 7;
is_attacking = 0;
smack = 0;
hitPlayer = 0;
pick = Math.round(Math.random() * 3) + 0;
hitTimer = 0;
shotTimer = 0;
reloadTime = 100;
enemyShotTimer = 0;
sectionOneRelease = true;
sectionTwoRelease = true;
sectionThreeRelease = true;
sectionFourRelease = true;
sectionFiveRelease = true;
sectionSixRelease = true;
sectionSevenRelease = true;
sectionEightRelease = true;
sectionNineRelease = true;
sectionTenRelease = true;
sectionElevenRelease = true;
groundMarker = player._y;
var bullets = new Array();
var bulletType = new Array();
var egroundMarker = new Array();
var egravity = new Array();
var potionType = new Array();
var potions = new Array();
var boxHealth = new Array();
var boxHit = new Array();
var boxHitTimer = new Array();
var boxes = new Array();
var edropping = new Array();
var eonfloor = new Array();
var ejump = new Array();
var ejumpamount = new Array();
var eyspeed = new Array();
var shot = new Array();
var portTimer = new Array();
var beingSmacked = new Array();
var dead_body = new Array();
var type = new Array();
var hypArray = new Array();
var enemyHealth = new Array();
var damagedTimer = new Array();
var hit = new Array();
var enemyAttackingTimer = new Array();
var enemyAttacking = new Array();
var enemy = new Array();
var blocks = new Array();
var moveAbout = new Array();
var where = new Array();
var onPlatform = new Array();
var pickAttack = new Array();
var port = new Array();
var falling = new Array();
var down = new Array();
var downTimer = new Array();
var depths = new Array();
var died = new Array();
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(player, shootygun, enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
++randomNumber;
if (pick == 0) {
enemy_mc = _root.attachMovie('enemy', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 1) {
enemy_mc = _root.attachMovie('enemy2', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 2) {
enemy_mc = _root.attachMovie('enemy3', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
if (pick == 3) {
enemy_mc = _root.attachMovie('enemy4', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
}
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(0);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
++randomNumber;
enemy_mc = _root.attachMovie('midlvlboss', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': Math.round(Math.random() * 150) + 310});
depths.push(enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(1);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(10);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
player.onEnterFrame = function () {
if (moveOn) {
stabTimer = 0;
stab = false;
energy = 0;
canAttack = false;
inControl = false;
player._xscale = 65;
playerSpeed = 18;
player._x += playerSpeed;
running = true;
player._x += cam._x + 650;
}
if (runTrans) {
removeEverything();
nextFrame();
}
if (player._x > cam._x + 550) {
if (addComplete == 0) {
cam.trans.gotoAndStop('black');
runTrans = true;
playerSpeed = 0;
addComplete = 1;
}
stageDone = true;
cam.goSign._alpha = 0;
moveOn = false;
}
if (_global.playerHealth < 0) {
--lives;
--livesNumber;
_root.attachMovie('splatter', 'splatter', _root.getNextHighestDepth());
splatter._x = cam._x;
splatter._y = cam._y;
shooting = false;
_global.alive = false;
_global.playerHealth = 0;
}
cam.bar._xscale = _global.playerHealth;
if (enemyNumber == 0) {
if (gaySound == 0) {
blu_sound.start(0, 3);
gaySound = 1;
}
if (!stageDone) {
cam.goSign._alpha = 100;
}
lock = 0;
pullingCam = true;
} else {
gaySound = 0;
cam.goSign._alpha = 0;
pullingCam = false;
}
if (pullingCam) {
callcam._x = player._x;
} else {
if (lock == 0) {
lock = 1;
callcam._x = cam._x + 155;
}
}
if (!notOverHeated) {
overHeat -= dropSpeed;
shooting = false;
}
if (!shooting) {
if (notOverHeated) {
overHeat -= dropSpeed;
dropSpeed = 1;
}
}
if (overHeat < 0) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
cam.weaponoverheat._alpha = 0;
myColor.setTransform(myColorTransform);
overHeat = 0;
notOverHeated = true;
}
if (_global.alive) {
italy._y = cam._y - 1000;
}
if (!_global.alive && lives < 0) {
italy._y = cam._y;
}
italy._x = cam._x;
if (_global.alive) {
cont._y = cam._y - 1000;
}
if (!_global.alive && lives > -1) {
cont._y = cam._y;
}
if (bigGuy == 0 && enemyNumber == 0) {
moveOn = true;
}
cont._x = cam._x;
cam.heatBar._yscale = overHeat;
shadow_mc._x = player._x;
cam._y = _root.player._y - 150;
theStage();
cam.camControl();
playerMovement();
calculateHyp();
enemyMovement();
cont.swapDepths(_root.getNextHighestDepth());
italy.swapDepths(_root.getNextHighestDepth());
depthActions();
noOverLap();
if (livesNumber < 0) {
livesNumber = 0;
}
cam.livesNum.text = livesNumber;
if (_global.quit) {
stopAllSounds();
removeEverything();
_root.gotoAndStop('title');
}
};
frameRateCounter = setInterval(countFrames, 1000);
}
movieClip 1993 {
}
movieClip 1994 {
}
frame 14 {
play();
}
frame 15 {
function removedied() {
i = died.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
died[i].removeMovieClip();
died.splice(i, 1);
--i;
}
}
function removebullets() {
i = bullets.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bullets[i].removeMovieClip();
bullets.splice(i, 1);
--i;
}
}
function removebulletType() {
i = bulletType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
bulletType[i].removeMovieClip();
bulletType.splice(i, 1);
--i;
}
}
function removeegroundMarker() {
i = egroundMarker.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egroundMarker[i].removeMovieClip();
egroundMarker.splice(i, 1);
--i;
}
}
function removeegravity() {
i = egravity.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
egravity[i].removeMovieClip();
egravity.splice(i, 1);
--i;
}
}
function removepotionType() {
i = potionType.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potionType[i].removeMovieClip();
potionType.splice(i, 1);
--i;
}
}
function removepotions() {
i = potions.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
potions[i].removeMovieClip();
potions.splice(i, 1);
--i;
}
}
function removeboxHealth() {
i = boxHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHealth[i].removeMovieClip();
boxHealth.splice(i, 1);
--i;
}
}
function removeboxHit() {
i = boxHit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHit[i].removeMovieClip();
boxHit.splice(i, 1);
--i;
}
}
function removeboxHitTimer() {
i = boxHitTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxHitTimer[i].removeMovieClip();
boxHitTimer.splice(i, 1);
--i;
}
}
function removeboxes() {
i = boxes.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
boxes[i].removeMovieClip();
boxes.splice(i, 1);
--i;
}
}
function removeedropping() {
i = edropping.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
edropping[i].removeMovieClip();
edropping.splice(i, 1);
--i;
}
}
function removeeonfloor() {
i = eonfloor.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eonfloor[i].removeMovieClip();
eonfloor.splice(i, 1);
--i;
}
}
function removeejump() {
i = ejump.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejump[i].removeMovieClip();
ejump.splice(i, 1);
--i;
}
}
function removeejumpamount() {
i = ejumpamount.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
ejumpamount[i].removeMovieClip();
ejumpamount.splice(i, 1);
--i;
}
}
function removeeyspeed() {
i = eyspeed.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
eyspeed[i].removeMovieClip();
eyspeed.splice(i, 1);
--i;
}
}
function removeshot() {
i = shot.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
shot[i].removeMovieClip();
shot.splice(i, 1);
--i;
}
}
function removeportTimer() {
i = portTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
--i;
}
}
function removebeingSmacked() {
i = beingSmacked.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
beingSmacked[i].removeMovieClip();
beingSmacked.splice(i, 1);
--i;
}
}
function removedead_body() {
i = dead_body.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dead_body[i].removeMovieClip();
dead_body.splice(i, 1);
--i;
}
}
function removetype() {
i = type.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
type[i].removeMovieClip();
type.splice(i, 1);
--i;
}
}
function removehypArray() {
i = hypArray.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hypArray[i].removeMovieClip();
hypArray.splice(i, 1);
--i;
}
}
function removeenemyHealth() {
i = enemyHealth.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
--i;
}
}
function removedamagedTimer() {
i = damagedTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
--i;
}
}
function removehit() {
i = hit.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
hit[i].removeMovieClip();
hit.splice(i, 1);
--i;
}
}
function removeenemyAttackingTimer() {
i = enemyAttackingTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
--i;
}
}
function removeenemyAttacking() {
i = enemyAttacking.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
--i;
}
}
function removeenemy() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
enemy[i].removeMovieClip();
enemy.splice(i, 1);
--i;
}
}
function removeblocks() {
i = blocks.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
blocks[i].removeMovieClip();
blocks.splice(i, 1);
--i;
}
}
function removemoveAbout() {
i = moveAbout.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
--i;
}
}
function removewhere() {
i = where.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
where[i].removeMovieClip();
where.splice(i, 1);
--i;
}
}
function removeonPlatform() {
i = onPlatform.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
onPlatform[i].removeMovieClip();
onPlatform.splice(i, 1);
--i;
}
}
function removepickAttack() {
i = pickAttack.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
pickAttack[i].removeMovieClip();
pickAttack.splice(i, 1);
--i;
}
}
function removeport() {
i = port.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
port[i].removeMovieClip();
port.splice(i, 1);
--i;
}
}
function removefalling() {
i = falling.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
falling[i].removeMovieClip();
falling.splice(i, 1);
--i;
}
}
function removedown() {
i = down.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
down[i].removeMovieClip();
down.splice(i, 1);
--i;
}
}
function removedownTimer() {
i = downTimer.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
downTimer[i].removeMovieClip();
downTimer.splice(i, 1);
--i;
}
}
function removedepths() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
depths[i].removeMovieClip();
depths.splice(i, 1);
--i;
}
}
function removeEverything() {
stopAllSounds();
italy.removeMovieClip();
cont.removeMovieClip();
machineGunz.removeMovieClip();
flameGun.removeMovieClip();
shootygun.removeMovieClip();
player.removeMovieClip();
removedied();
removebullets();
removebulletType();
removeegroundMarker();
removeegravity();
removepotionType();
removepotions();
removeboxHealth();
removeboxHit();
removeboxHitTimer();
removeboxes();
removeedropping();
removeeonfloor();
removeejump();
removeejumpamount();
removeeyspeed();
removeshot();
removeportTimer();
removebeingSmacked();
removedead_body();
removetype();
removehypArray();
removeenemyHealth();
removedamagedTimer();
removehit();
removeenemyAttackingTimer();
removeenemyAttacking();
removeenemy();
removeblocks();
removemoveAbout();
removewhere();
removeonPlatform();
removepickAttack();
removeport();
removefalling();
removedown();
removedownTimer();
removedepths();
}
function noOverLap() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
j = enemy.length - 1;
while (j >= 0) {
if (enemy[i] !== enemy[j]) {
if (enemy[i].hitTest(enemy[j])) {
if (enemyHealth[i] > 0 && !down[i]) {
endX = _root.enemy[j]._x;
enemy[i]._x -= (endX - enemy[i]._x) / enemySpeed;
}
}
}
--j;
}
--i;
}
}
function theStage() {}
function depthActions() {
i = depths.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
if (!jump) {
depths[i].idiot_depth = Math.floor(depths[i]._y * 480 + depths[i]._x);
depths[i].swapDepths(depths[i].idiot_depth);
}
--i;
}
}
function calculateHyp() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
dist_x = player._x - enemy[i]._x;
dist_y = player._y - enemy[i]._y;
hypArray[i] = Math.sqrt(dist_x * dist_x + dist_y * dist_y);
--i;
}
}
function enemyMovement() {
i = enemy.length - 1;
for (;;) {
if (i < 0) {
return undefined;
}
if (_global.forceDrop) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
_global.forceDrop = false;
}
enemy[i]._yscale = 80;
if (enemy[i]._x < 150) {
enemy[i]._x = 150;
}
if (enemy[i]._x > 920) {
enemy[i]._x = 920;
}
if (runTrans) {
player._alpha -= 1;
enemy[i]._alpha -= 1;
}
if (type[i] == 0) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 100) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 114) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 120});
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 3) + 0;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 75) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 75) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 25) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 75) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 1) {
if (enemy[i]._y > 440) {
enemy[i]._y = 440;
}
if (enemy[i]._y < 230) {
enemy[i]._y = 230;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--bigGuy;
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 80) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
enemyAttackingTimer[i] = 100;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 700) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 80) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -80) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 85, '_y': enemy[i]._y - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 80) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 80;
} else {
enemy[i]._xscale = -80;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
if (type[i] == 2) {
if (enemy[i]._y > 550) {
enemy[i]._y = 550;
}
if (enemy[i]._y < 330) {
enemy[i]._y = 330;
}
if (enemyHealth[i] < 1) {
if (died[i] == 0) {
hurt_sound.start();
--enemyNumber;
enemy[i].gotoAndStop('fall');
died[i] = 1;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
if (ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i]._y += eyspeed[i];
if (enemy[i]._y > egroundMarker[i]) {
edropping[i] = false;
eonfloor[i] = true;
ejump[i] = false;
eyspeed[i] = 0;
enemy[i]._y = egroundMarker[i];
} else {
eyspeed[i] += egravity[i] * 2;
}
}
if (falling[i]) {
if (enemy[i]._y == egroundMarker[i]) {
down[i] = true;
}
}
if (down[i]) {
if (enemyHealth[i] < 1) {
enemy[i].gotoAndStop('dead');
}
if (enemyHealth[i] > 0) {
enemy[i].gotoAndStop('down');
++downTimer[i];
if (downTimer[i] == 40) {
hit[i] = 0;
damagedTimer[i] = 0;
down[i] = false;
falling[i] = false;
downTimer[i] = 0;
}
}
}
if (!down[i] && enemyHealth[i] > 0) {
if (hypArray[i] < 700) {
if (enemyAttacking[i] == 1) {
if (enemy[i].marker.hitTest(player.hit)) {
hitPlayer = 1;
_global.playerHealth -= enemyPower * 1.5;
}
}
++enemyAttackingTimer[i];
} else {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
}
if (enemyAttackingTimer[i] > 100) {
if (!ejump[i]) {
if (enemyShotTimer + 70 < getTimer()) {
enemyShotTimer = getTimer();
machinegun_sound.start();
if (enemy[i]._xscale == 180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x - 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
if (enemy[i]._xscale == -180) {
++randomNumber;
enemyBullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x + 45, '_y': enemy[i]._y + Math.round(Math.random() * 20) - 78});
bullets.push(enemyBullet_mc);
bulletType.push('bad');
enemyBullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
}
enemy[i].gotoAndStop('attack');
enemyAttacking[i] = 1;
if (enemyAttackingTimer[i] == 140) {
enemyAttacking[i] = 0;
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
pickAttack[i] = Math.round(Math.random() * 3) + 0;
}
}
}
if (enemyAttacking[i] == 0) {
if (player.hitTest(enemy[i].enemyHitMarker) && stabTimer == 5) {
enemyHealth[i] -= 2;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': enemy[i]._x, '_y': enemy[i]._y - 70});
hit[i] = 1;
}
j = bullets.length - 1;
while (j >= 0) {
if (bulletType[j] == 'default') {
if (bullets[j].hitTest(enemy[i])) {
bullets[j]._alpha = 0;
} else {
bullets[j]._alpha = 100;
}
}
if (bullets[j].hitTest(enemy[i].enemyHitMarker)) {
enemyHealth[i] -= bulletPower;
++randomNumber;
_root.attachMovie('blood', 'blood' + randomNumber, _root.getNextHighestDepth(), {'_x': bullets[j]._x, '_y': bullets[j]._y});
if (beingSmacked[i] > 2) {
if (!ejump[i]) {
beingSmacked[i] = 0;
egroundMarker[i] = enemy[i]._y;
falling[i] = true;
ejump[i] = true;
eonfloor[i] = false;
eyspeed[i] = 0;
eyspeed[i] -= ejumpamount[i];
}
}
++beingSmacked[i];
hit[i] = 1;
bullets[j].removeMovieClip();
bullets.splice(j, 1);
bulletType.splice(j, 1);
}
--j;
}
if (hit[i] == 1) {
if (!ejump[i]) {
if (enemy[i]._xscale == 180) {
enemy[i]._x += 3;
} else {
enemy[i]._x -= 3;
}
enemy[i].gotoAndStop('hit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (ejump[i]) {
enemy[i].gotoAndStop('ahit');
enemyAttackingTimer[i] = Math.round(Math.random() * 100) + 0;
enemyAttacking[i] = 0;
++damagedTimer[i];
if (damagedTimer[i] > 4) {
enemy[i].gotoAndStop('fall');
hit[i] = 0;
damagedTimer[i] = 0;
}
}
}
if (hit[i] == 0) {
if (player._x < enemy[i]._x) {
enemy[i]._xscale = 180;
} else {
enemy[i]._xscale = -180;
}
++portTimer[i];
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 1) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 2;
portTimer[i] = 0;
}
if (0 != (where[i] == 0) | 0 != (where[i] == 1)) {
if (!ejump[i] && !edropping[i]) {
enemy[i].gotoAndStop('run');
}
if (moveAbout[i] == 0) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 1) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 175) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y) / enemySpeed;
}
}
if (moveAbout[i] == 2) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x - 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y - 45) / enemySpeed;
}
}
if (moveAbout[i] == 3) {
if (!falling[i] && !jump) {
endX = _root.player._x;
endY = _root.player._y;
enemy[i]._x += (endX - enemy[i]._x + 200) / enemySpeed;
enemy[i]._y += (endY - enemy[i]._y + 45) / enemySpeed;
}
}
} else {
if (!ejump[i]) {
enemy[i].gotoAndStop('idle');
}
if (ejump[i]) {
enemy[i].gotoAndStop('fall');
}
}
}
}
}
}
--i;
}
}
function playerMovement() {
if (shootygun.hitTest(player._x, player._y, true)) {
hover_sound.start();
shootygun.removeMovieClip();
weapon = 'shotGun';
}
if (machineGunz.hitTest(player._x, player._y, true)) {
hover_sound.start();
machineGunz.removeMovieClip();
weapon = 'default';
}
if (flameGun.hitTest(player._x, player._y, true)) {
hover_sound.start();
flameGun.removeMovieClip();
weapon = 'flame';
}
if (_global.alive && notOverHeated && !jump && Key.isDown(65)) {
shooting = true;
}
if (!Key.isDown(65)) {
shooting = false;
}
i = bullets.length - 1;
while (i >= 0) {
if (bullets[i].hitTest(player.hit)) {
if (bulletType[i] == 'bad') {
hitPlayer = 1;
_global.playerHealth -= 5;
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (bulletType[i] == 'flamethrower') {
bullets[i]._xscale += 100;
bullets[i]._yscale += 100;
if (bullets[i]._xscale > 1200) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
}
if (0 != bullets[i]._x > player._x + 640 | 0 != bullets[i]._x < player._x - 640) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletType.splice(i, 1);
}
--i;
}
if (shooting) {
if (shotTimer + reloadTime < getTimer()) {
shotTimer = getTimer();
overHeat += 3;
if (overHeat > 100) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 250};
myColor.setTransform(myColorTransform);
dropSpeed = 0.5;
overHeat = 100;
cam.weaponoverheat._alpha = 100;
notOverHeated = false;
}
if (weapon == 'pistols') {
bulletPower = 1;
reloadTime = 250;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x += 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 55, '_y': player._y - 80});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x += 18;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 55, '_y': player._y - 80});
bullets.push(bullet_mc);
bulletType.push('dualPistols');
bullet_mc.onEnterFrame = function () {
this._x -= 18;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 55, '_y': player._y - 80});
bullets.push(bullet2_mc);
bulletType.push('dualPistols');
bullet2_mc.onEnterFrame = function () {
this._x -= 18;
};
}
}
if (weapon == 'default') {
machinegun_sound.start();
bulletPower = 2;
reloadTime = 100;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x += 40;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 85, '_y': player._y - 78});
bullets.push(bullet_mc);
bulletType.push('machineGun');
bullet_mc.onEnterFrame = function () {
this._x -= 40;
};
}
}
if (weapon == 'flame') {
flame_sound.start();
bulletPower = 3;
reloadTime = 100;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x += 10;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('flameBullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 95, '_y': player._y - 75});
bullets.push(bullet_mc);
bulletType.push('flamethrower');
bullet_mc.onEnterFrame = function () {
this._x -= 10;
};
}
}
if (weapon == 'shotGun') {
shotgun_sound.start();
bulletPower = 3;
reloadTime = 700;
if (player._xscale == 65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x += 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x += 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x + 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x += 30;
this._y -= 2.5;
};
}
if (player._xscale == -65) {
++randomNumber;
bullet_mc = _root.attachMovie('bullet', 'bullet' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet_mc);
bulletType.push('shotty');
bullet_mc.onEnterFrame = function () {
this._x -= 30;
};
++randomNumber;
bullet2_mc = _root.attachMovie('bullet', 'bullet2' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet2_mc);
bulletType.push('shotty');
bullet2_mc.onEnterFrame = function () {
this._x -= 30;
this._y += 2.5;
};
++randomNumber;
bullet3_mc = _root.attachMovie('bullet', 'bullet3' + randomNumber, _root.getNextHighestDepth(), {'_x': player._x - 45, '_y': player._y - 70});
bullets.push(bullet3_mc);
bulletType.push('shotty');
bullet3_mc.onEnterFrame = function () {
this._x -= 30;
this._y -= 2.5;
};
}
}
}
}
if (hitPlayer == 0) {
var v4 = player.transform.colorTransform;
player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
if (hitPlayer == 1) {
v4 = player.transform.colorTransform;
v4.rgb = 4294967295.0;
player.transform.colorTransform = v4;
++hitTimer;
if (hitTimer == 1) {
hitPlayer = 0;
hitTimer = 0;
}
}
if (cam._x < 315) {
cam._x = 315;
}
if (cam._x > 800) {
cam._x = 800;
}
if (player._x < callcam._x) {
endX = _root.callcam._x;
cam._x += (endX - cam._x - 220) / 15;
} else {
if (lock == 0) {
endX = _root.player._x;
cam._x += (endX - cam._x) / 15;
}
}
if (!moveOn) {
if (player.hitTest(cam.right)) {
player._x -= playerSpeed;
}
}
if (player.hitTest(cam.left)) {
player._x += playerSpeed;
}
if (player._x < 115) {
player._x = 115;
}
if (player._x > 990) {
player._x = 990;
}
if (player._y > 440) {
player._y = 550;
}
if (player._y < 230 && !jump) {
player._y = 230;
}
if (_global.alive) {
if (!stab) {
if (weapon == 'pistols') {
if (jump) {
player.gotoAndStop('jumpPistol');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootPistol');
}
if (running) {
player.gotoAndStop('shootWalkPistol');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idlePistol');
}
if (running) {
player.gotoAndStop('runPistol');
}
}
}
}
}
if (weapon == 'default') {
if (jump) {
player.gotoAndStop('jump');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shoot');
}
if (running) {
player.gotoAndStop('shootWalk');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idle');
}
if (running) {
player.gotoAndStop('run');
}
}
}
}
}
if (weapon == 'shotGun') {
if (jump) {
player.gotoAndStop('jumpshotGun');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootshotGun');
}
if (running) {
player.gotoAndStop('shootWalkshotGun');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleshotGun');
}
if (running) {
player.gotoAndStop('runshotGun');
}
}
}
}
}
if (weapon == 'flame') {
if (jump) {
player.gotoAndStop('jumpflame');
}
if (shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('shootflame');
}
if (running) {
player.gotoAndStop('shootWalkflame');
}
}
}
}
if (!shooting) {
if (!jump) {
if (!special) {
if (!running) {
player.gotoAndStop('idleflame');
}
if (running) {
player.gotoAndStop('runflame');
}
}
}
}
}
}
}
if (!_global.alive) {
player.gotoAndStop('dead');
}
if (Key.isDown(83)) {
if (canAttack) {
if (_global.alive) {
if (!shooting) {
if (!jump) {
stab = true;
}
}
}
}
}
if (stab) {
playerSpeed = 0;
++stabTimer;
player.gotoAndStop('melee');
if (stabTimer == 14) {
playerSpeed = 7;
stabTimer = 0;
stab = false;
}
}
if (Key.isDown(68)) {
if (_global.alive) {
if (!sliding) {
if (!stab) {
if (onfloor) {
shooting = false;
groundMarker = player._y;
jump = true;
onfloor = false;
_root.attachMovie('shadow_mc', 'shadow_mc', _root.getNextHighestDepth(), {'_y': player._y, '_x': player._x});
yspeed -= jumpamount;
}
}
}
}
}
if (!Key.isDown(38)) {
running = false;
}
if (!Key.isDown(40)) {
running = false;
}
if (!Key.isDown(39)) {
running = false;
}
if (!Key.isDown(37)) {
running = false;
}
if (_global.alive && inControl) {
if (Key.isDown(39)) {
player._xscale = 65;
player._x += playerSpeed;
running = true;
}
if (Key.isDown(37)) {
player._xscale = -65;
player._x -= playerSpeed;
running = true;
}
if (Key.isDown(38)) {
player._y -= playerSpeed;
running = true;
}
if (Key.isDown(40)) {
player._y += playerSpeed;
running = true;
}
}
if (jump) {
player._y += yspeed;
if (player._y > groundMarker) {
shadow_mc.removeMovieClip();
onfloor = true;
jump = false;
yspeed = 0;
player._y = groundMarker;
return undefined;
}
yspeed += gravity * 2;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
blu_sound = new Sound();
blu_sound.attachSound('blu');
hover_sound = new Sound();
hover_sound.attachSound('other');
shotgun_sound = new Sound();
shotgun_sound.attachSound('shotBoom');
machinegun_sound = new Sound();
machinegun_sound.attachSound('mg');
hurt_sound = new Sound();
hurt_sound.attachSound('hurt');
flame_sound = new Sound();
flame_sound.attachSound('flamwthrowa');
cam._xscale = 100;
cam._yscale = 100;
if (playerSelect == 0) {
_root.attachMovie('player', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 350});
}
if (playerSelect == 1) {
_root.attachMovie('playerWhite', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 350});
}
if (playerSelect == 2) {
_root.attachMovie('playerBlack', 'player', _root.getNextHighestDepth(), {'_x': 150, '_y': 350});
}
_root.attachMovie('shootygun', 'shootygun', _root.getNextHighestDepth(), {'_x': 1500, '_y': 300});
_root.attachMovie('machineGunz', 'machineGunz', _root.getNextHighestDepth(), {'_x': 2700, '_y': 350});
_root.attachMovie('flameGun', 'flameGun', _root.getNextHighestDepth(), {'_x': 4000, '_y': 330});
player._yscale = 65;
player._xscale = 65;
runTrans = false;
moveOn = false;
bigGuy = 1;
toGo = 0;
inControl = true;
canAttack = true;
addComplete = 0;
stageDone = false;
stab = false;
_global.quit = false;
_global.alive = true;
notOverHeated = true;
overHeat = 0;
dropSpeed = 1;
gaySound = 0;
enemyPower = 0.5;
stabTimer = 0;
dashSpeed = 10;
enemyNumber = 1;
randomNumber = 0;
jump = false;
enemySpeed = 30;
jumpamount = 25;
gravity = 2;
pullingCam = true;
yspeed = 0;
onfloor = true;
pressHack = 0;
lock = 0;
_global.forceDrop = false;
sliding = false;
slidingTimer = 0;
special = false;
specialTimer = 0;
clicks = 0;
shooting = false;
hit2 = false;
hit3 = false;
running = false;
attacking = false;
playerSpeed = 7;
is_attacking = 0;
smack = 0;
hitPlayer = 0;
pick = Math.round(Math.random() * 3) + 0;
hitTimer = 0;
shotTimer = 0;
reloadTime = 100;
enemyShotTimer = 0;
groundMarker = player._y;
var bullets = new Array();
var bulletType = new Array();
var egroundMarker = new Array();
var egravity = new Array();
var potionType = new Array();
var potions = new Array();
var boxHealth = new Array();
var boxHit = new Array();
var boxHitTimer = new Array();
var boxes = new Array();
var edropping = new Array();
var eonfloor = new Array();
var ejump = new Array();
var ejumpamount = new Array();
var eyspeed = new Array();
var shot = new Array();
var portTimer = new Array();
var beingSmacked = new Array();
var dead_body = new Array();
var type = new Array();
var hypArray = new Array();
var enemyHealth = new Array();
var damagedTimer = new Array();
var hit = new Array();
var enemyAttackingTimer = new Array();
var enemyAttacking = new Array();
var enemy = new Array();
var blocks = new Array();
var moveAbout = new Array();
var where = new Array();
var onPlatform = new Array();
var pickAttack = new Array();
var port = new Array();
var falling = new Array();
var down = new Array();
var downTimer = new Array();
var depths = new Array();
var died = new Array();
++randomNumber;
enemy_mc = _root.attachMovie('cop', 'enemy' + randomNumber, _root.getNextHighestDepth(), {'_x': 700, '_y': 450});
depths.push(player, shootygun, enemy_mc);
enemy.push(enemy_mc);
egroundMarker.push(enemy_mc._y);
died.push(0);
falling.push(false);
egravity.push(2);
down.push(false);
downTimer.push(0);
edropping.push(false);
eonfloor.push(true);
ejump.push(false);
ejumpamount.push(20);
eyspeed.push(0);
portTimer.push(0);
port.push(0);
pickAttack.push(Math.round(Math.random() * 2) + 0);
type.push(1);
enemyAttacking.push(false);
enemyAttackingTimer.push(Math.round(Math.random() * 100) + 0);
enemyHealth.push(110);
damagedTimer.push(0);
hit.push(0);
hypArray.push(0);
moveAbout.push(0);
where.push(0);
onPlatform.push(false);
beingSmacked.push(0);
player.onEnterFrame = function () {
if (moveOn) {
stabTimer = 0;
stab = false;
energy = 0;
canAttack = false;
inControl = false;
player._xscale = 65;
playerSpeed = 18;
player._x += playerSpeed;
running = true;
}
if (bigGuy == 0) {
removeEverything();
nextFrame();
}
if (runTrans) {
++toGo;
}
if (enemyNumber == 0) {
if (addComplete == 0) {
cam.trans.gotoAndStop('black');
runTrans = true;
canAttack = false;
inControl = false;
playerSpeed = 0;
addComplete = 1;
}
stageDone = true;
cam.goSign._alpha = 0;
}
if (_global.playerHealth < 0) {
--lives;
--livesNumber;
_root.attachMovie('splatter', 'splatter', _root.getNextHighestDepth());
splatter._x = cam._x;
splatter._y = cam._y;
shooting = false;
_global.alive = false;
_global.playerHealth = 0;
}
cam.bar._xscale = _global.playerHealth;
if (!notOverHeated) {
overHeat -= dropSpeed;
shooting = false;
}
if (!shooting) {
if (notOverHeated) {
overHeat -= dropSpeed;
dropSpeed = 1;
}
}
if (overHeat < 0) {
myColor = new Color(cam.heatBar);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
cam.weaponoverheat._alpha = 0;
myColor.setTransform(myColorTransform);
overHeat = 0;
notOverHeated = true;
}
if (_global.alive) {
italy._y = cam._y - 1000;
}
if (!_global.alive && lives < 0) {
italy._y = cam._y;
}
italy._x = cam._x;
if (_global.alive) {
cont._y = cam._y - 1000;
}
if (!_global.alive && lives > -1) {
cont._y = cam._y;
}
if (bigGuy == 0 && enemyNumber == 0) {
moveOn = true;
}
cont._x = cam._x;
cam.heatBar._yscale = overHeat;
shadow_mc._x = player._x;
cam._y = _root.player._y - 150;
theStage();
cam.camControl();
playerMovement();
calculateHyp();
enemyMovement();
cont.swapDepths(_root.getNextHighestDepth());
italy.swapDepths(_root.getNextHighestDepth());
depthActions();
noOverLap();
if (livesNumber < 0) {
livesNumber = 0;
}
cam.livesNum.text = livesNumber;
if (_global.quit) {
stopAllSounds();
removeEverything();
_root.gotoAndStop('title');
}
};
frameRateCounter = setInterval(countFrames, 1000);
}
movieClip 2000 {
}
movieClip 2001 {
}
movieClip 2003 {
}
movieClip 2005 {
}
movieClip 2007 {
}
movieClip 2009 {
}
movieClip 2011 {
}
movieClip 2013 {
}
movieClip 2015 {
}
movieClip 2018 {
}
movieClip 2020 {
}
movieClip 2022 {
}
movieClip 2024 {
}
movieClip 2025 {
}
movieClip 2027 {
}
movieClip 2028 {
}
movieClip 2029 {
frame 33 {
stop();
}
}
movieClip 2037 {
}
movieClip 2038 {
frame 1 {
_root.stop();
}
frame 415 {
_root.play();
}
}
frame 17 {
stopAllSounds();
_root.gotoAndStop('title');
}