Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
stop();
gamename = "zombears";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
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);
}
Frame 3
gotoAndPlay (2);
Frame 5
logo.onPress = function () {
getURL ("http://www.xdgames.co.uk", "_blank");
};
Frame 6
stop();
gamename = "zombears";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
stop();
Instance of Symbol 180 MovieClip in Frame 6
on (release) {
_root.nextFrame();
}
on (rollOver) {
this.gotoAndStop("over");
}
on (rollOut) {
this.gotoAndStop("out");
}
Frame 7
stop();
onMouseDown = function () {
stopAllSounds();
nextFrame();
};
Frame 9
function gameOver() {
if ((player._y < -70) or (player._y > 550)) {
lost = true;
viva = 0;
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
gotoAndStop ("gameOver");
}
}
}
function removeall() {
bij.removeMovieClip();
tr.removeMovieClip();
score_mc.removeMovieClip();
powerBar.removeMovieClip();
boarder.removeMovieClip();
powerBar2.removeMovieClip();
boarder2.removeMovieClip();
playersHealth.removeMovieClip();
hitMarker.removeMovieClip();
player.removeMovieClip();
crosshair.removeMovieClip();
i = pts.length - 1;
while (i >= 0) {
pts[i].removeMovieClip();
pts.splice(i, 1);
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i].removeMovieClip();
bgObjects.splice(i, 1);
i--;
}
i = depth.length - 1;
while (i >= 0) {
depth[i].removeMovieClip();
depth.splice(i, 1);
i--;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
i--;
}
i = shot.length - 1;
while (i >= 0) {
shot[i].removeMovieClip();
shot.splice(i, 1);
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._alpha = 0;
objects[i].removeMovieClip();
objects.splice(i, 1);
i--;
}
i = objectsHealth.length - 1;
while (i >= 0) {
objectsHealth[i].removeMovieClip();
objectsHealth.splice(i, 1);
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i].removeMovieClip();
enemy.splice(i, 1);
i--;
}
i = type.length - 1;
while (i >= 0) {
type[i].removeMovieClip();
type.splice(i, 1);
i--;
}
i = hittingPlayer.length - 1;
while (i >= 0) {
hittingPlayer[i].removeMovieClip();
hittingPlayer.splice(i, 1);
i--;
}
i = enemyAttacking.length - 1;
while (i >= 0) {
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
i--;
}
i = enemyAttackingTimer.length - 1;
while (i >= 0) {
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
i--;
}
i = damagedTimer.length - 1;
while (i >= 0) {
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
i--;
}
i = hit.length - 1;
while (i >= 0) {
hit[i].removeMovieClip();
hit.splice(i, 1);
i--;
}
i = carrying.length - 1;
while (i >= 0) {
carrying[i].removeMovieClip();
carrying.splice(i, 1);
i--;
}
i = portTimer.length - 1;
while (i >= 0) {
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
i--;
}
i = where.length - 1;
while (i >= 0) {
where[i].removeMovieClip();
where.splice(i, 1);
i--;
}
i = moveAbout.length - 1;
while (i >= 0) {
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
i--;
}
i = enemyHealth.length - 1;
while (i >= 0) {
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
i--;
}
i = efacingLeftUp.length - 1;
while (i >= 0) {
efacingLeftUp[i].removeMovieClip();
efacingLeftUp.splice(i, 1);
i--;
}
i = efacingRightUp.length - 1;
while (i >= 0) {
efacingRightUp[i].removeMovieClip();
efacingRightUp.splice(i, 1);
i--;
}
i = efacingLeftDown.length - 1;
while (i >= 0) {
efacingLeftDown[i].removeMovieClip();
efacingLeftDown.splice(i, 1);
i--;
}
i = efacingRightDown.length - 1;
while (i >= 0) {
efacingRightDown[i].removeMovieClip();
efacingRightDown.splice(i, 1);
i--;
}
i = efacingLeft.length - 1;
while (i >= 0) {
efacingLeft[i].removeMovieClip();
efacingLeft.splice(i, 1);
i--;
}
i = efacingRight.length - 1;
while (i >= 0) {
efacingRight[i].removeMovieClip();
efacingRight.splice(i, 1);
i--;
}
i = efacingUp.length - 1;
while (i >= 0) {
efacingUp[i].removeMovieClip();
efacingUp.splice(i, 1);
i--;
}
i = efacingDown.length - 1;
while (i >= 0) {
efacingDown[i].removeMovieClip();
efacingDown.splice(i, 1);
i--;
}
i = directionAngle.length - 1;
while (i >= 0) {
directionAngle[i].removeMovieClip();
directionAngle.splice(i, 1);
i--;
}
i = myRadians.length - 1;
while (i >= 0) {
myRadians[i].removeMovieClip();
myRadians.splice(i, 1);
i--;
}
i = myDegrees.length - 1;
while (i >= 0) {
myDegrees[i].removeMovieClip();
myDegrees.splice(i, 1);
i--;
}
i = goingLeft.length - 1;
while (i >= 0) {
goingLeft[i].removeMovieClip();
goingLeft.splice(i, 1);
i--;
}
i = goingRight.length - 1;
while (i >= 0) {
goingRight[i].removeMovieClip();
goingRight.splice(i, 1);
i--;
}
i = goingUp.length - 1;
while (i >= 0) {
goingUp[i].removeMovieClip();
goingUp.splice(i, 1);
i--;
}
i = goingDown.length - 1;
while (i >= 0) {
goingDown[i].removeMovieClip();
goingDown.splice(i, 1);
i--;
}
i = pushSpeed.length - 1;
while (i >= 0) {
pushSpeed[i].removeMovieClip();
pushSpeed.splice(i, 1);
i--;
}
i = enemySpeed.length - 1;
while (i >= 0) {
enemySpeed[i].removeMovieClip();
enemySpeed.splice(i, 1);
i--;
}
i = chillTime.length - 1;
while (i >= 0) {
chillTime[i].removeMovieClip();
chillTime.splice(i, 1);
i--;
}
}
function addenemy() {
if (((numberReleased == 0) && (enemyNumber == 0)) && (level == 2)) {
if (youWin == 30) {
endSplashSound.start();
_root.attachMovie("survived", "survived", _root.getNextHighestDepth());
}
youWin++;
if (youWin > 70) {
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
nextFrame();
}
}
}
if (((numberReleased == 0) && (enemyNumber == 0)) && (level < 2)) {
levelEnded--;
if (levelEnded < 0) {
numberReleased = 25;
level++;
amountOfBlood = 0;
endSplashSound.start();
_root.attachMovie("levelUp", "levelUp", _root.getNextHighestDepth());
i = depth.length - 1;
while (i >= 0) {
depth.splice(i, 1);
i--;
}
depth.push(player, tree, tree2, tree3, box1, box2, box3, box4, box5, box6, box7, box8, box9, box10, box11, box12, box13, box14, box15, box16, box17, box18, box19, box20, box21, box22, box23, box24, box25);
levelEnded = 50;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._alpha = misc_mc[i]._alpha - 15;
if (misc_mc[i]._alpha < 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
}
i--;
}
}
if (level < 3) {
if (numberReleased > 0) {
canAttach = true;
} else {
canAttach = false;
}
}
if ((releaseenemy + 700) < getTimer()) {
if (canAttach) {
choice = 0;
difBears = Math.round(Math.random() * 2) + 0;
numberReleased--;
enemyNumber++;
releaseenemy = getTimer();
dir = ["left", "right", "up", "down"];
randNum = random(4);
setDir = dir[randNum];
switch (setDir) {
case "left" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(50);
hittingPlayer.push(0);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyBigAlt", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyBigOther", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 280) + 200, _x:-20});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "right" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(50);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyBigAlt", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyBigOther", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 200) + 0, _x:660});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "up" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(50);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyBigAlt", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyBigOther", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "down" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(50);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyBigAlt", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyBigOther", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice != 1) {
break;
}
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 400) + 0, _y:500});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
}
}
}
function pointsActions() {
i = pts.length - 1;
while (i >= 0) {
endX = _root.score_mc._x;
endY = _root.score_mc._y;
pts[i]._x = pts[i]._x + ((endX - pts[i]._x) / 15);
pts[i]._y = pts[i]._y + ((endY - pts[i]._y) / 15);
if (pts[i].hitTest(score_mc)) {
pts[i].removeMovieClip();
pts.splice(i, 1);
scoreMark = scoreMark + 100;
}
i--;
}
}
function enemyDeath() {
i = enemy.length - 1;
while (i >= 0) {
if ((enemyHealth[i] < 1) && (!carrying[i])) {
ouch_sound.start();
maybeBlood = Math.round(Math.random() * 4) + 0;
if (maybeBlood == 0) {
randomnumber++;
splosh = _root.attachMovie("splatter", "splatter" + randomnumber, _root.getNextHighestDepth());
}
chanceToDrop = Math.round(Math.random() * 2) + 0;
if (chanceToDrop == 0) {
randomnumber++;
item_m = _root.attachMovie("item", "item" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(item_m);
depth.push(item_m);
}
randomnumber++;
points = _root.attachMovie("scorePlus", "scorePlus" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
pts.push(points);
enemyNumber--;
if (amountOfBlood < 30) {
randomnumber++;
puddle_m = _root.attachMovie("puddle", "puddle" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(puddle_m);
depth.push(puddle_m);
}
amountOfBlood++;
randomnumber++;
blood_splash = _root.attachMovie("blood_mc", "blood_mc" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_splash._rotation = enemy[i]._rotation;
misc_mc.push(blood_splash);
enemy[i].removeMovieClip();
enemy.splice(i, 1);
type.splice(i, 1);
enemyAttacking.splice(i, 1);
enemyAttackingTimer.splice(i, 1);
damagedTimer.splice(i, 1);
hit.splice(i, 1);
portTimer.splice(i, 1);
where.splice(i, 1);
moveAbout.splice(i, 1);
enemyHealth.splice(i, 1);
efacingLeftUp.splice(i, 1);
efacingRightUp.splice(i, 1);
efacingLeftDown.splice(i, 1);
efacingRightDown.splice(i, 1);
efacingLeft.splice(i, 1);
efacingRight.splice(i, 1);
efacingUp.splice(i, 1);
efacingDown.splice(i, 1);
directionAngle.splice(i, 1);
myRadians.splice(i, 1);
myDegrees.splice(i, 1);
goingLeft.splice(i, 1);
goingRight.splice(i, 1);
goingUp.splice(i, 1);
goingDown.splice(i, 1);
pushSpeed.splice(i, 1);
enemySpeed.splice(i, 1);
hittingPlayer.splice(i, 1);
carrying.splice(i, 1);
chillTime.splice(i, 1);
}
i--;
}
}
function depthActions() {
i = depth.length - 1;
while (i >= 0) {
depth[i].idiot_depth = Math.floor((depth[i]._y * 480) + depth[i]._x);
depth[i].swapDepths(depth[i].idiot_depth);
i--;
}
}
function enemyActions() {
i = enemy.length - 1;
while (i >= 0) {
j = shot.length - 1;
while (j >= 0) {
if (enemy[i].hitTest(shot[j]) && (!carrying[i])) {
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - thatPower;
shot[j].removeMovieClip();
shot.splice(j, 1);
}
j--;
}
if (enemy[i].hitTest(cbomb)) {
enemyHealth[i] = 0;
}
if (!enemy[i].hitTest(hitMarker)) {
hittingPlayer[i] = 0;
}
if (carrying[i]) {
playersHealth._alpha = 100;
if (safe) {
chillTime[i] = 0;
carrying[i] = false;
}
if (enemy[i].hitTest(base)) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
}
if (!enemy[i].hitTest(base)) {
if (enemy[i]._x < 340) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
} else {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("upIdleHeld");
} else {
enemy[i].gotoAndStop("upHeld");
enemy[i]._y = enemy[i]._y - 2;
}
}
}
}
if ((enemy[i].hitTest(hitMarker) && (!carrying[i])) && (!beingCarried)) {
if (type[i] == 2) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:100, bb:0};
myColor.setTransform(myColorTransform);
stuck = true;
randomnumber++;
explosion_mc = _root.attachMovie("explosion", "explosion" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(explosion_mc);
depth.push(explosion_mc);
enemyHealth[i] = 0;
}
if ((type[i] == 0) or (type[i] == 1)) {
shooting = false;
health = -1;
if (((health < 0) && (!safe)) && (!beingCarried)) {
player._alpha = 0;
carrying[i] = true;
beingCarried = true;
health = 0;
}
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightAttack");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftAttack");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftAttack");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftAttack");
}
hittingPlayer[i] = 1;
}
if (((enemyAttacking[i] == 0) && (hittingPlayer[i] == 0)) && (!carrying[i])) {
if (hit[i] == 1) {
damagedTimer[i]++;
if ((damagedTimer[i] > 0) && (damagedTimer[i] < 3)) {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightHit");
enemy[i]._x = enemy[i]._x - pushSpeed[i];
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftHit");
enemy[i]._x = enemy[i]._x + pushSpeed[i];
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
}
if (damagedTimer[i] == 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (hit[i] == 0) {
portTimer[i]++;
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 2) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 0;
portTimer[i] = 0;
}
if ((where[i] == 0) or (where[i] == 1)) {
myRadians[i] = Math.atan2(player._y - enemy[i]._y, player._x - enemy[i]._x);
myDegrees[i] = Math.round((myRadians[i] * 180) / Math.PI) - 90;
directionAngle[i] = myDegrees[i];
if ((directionAngle[i] < 20) && (directionAngle[i] > -20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = true;
}
if ((directionAngle[i] < -140) && (directionAngle[i] > -180)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = true;
efacingDown[i] = false;
}
if ((directionAngle[i] < -60) && (directionAngle[i] > -100)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = true;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 100) && (directionAngle[i] > 60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = true;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 140) && (directionAngle[i] > 100)) {
efacingLeftUp[i] = true;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -100) && (directionAngle[i] > -140)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = true;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 60) && (directionAngle[i] > 20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = true;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -20) && (directionAngle[i] > -60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = true;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - (((endX - enemy[i]._x) / enemySpeed[i]) * 1.5);
enemy[i]._y = enemy[i]._y - (((endY - enemy[i]._y) / enemySpeed[i]) * 1.5);
}
}
j--;
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("down");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRight");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("right");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRight");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("up");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeft");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("left");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeft");
}
if ((((!enemy[i].bFeet.hitTest(bottom)) && (!enemy[i].bFeet.hitTest(top))) && (!enemy[i].bFeet.hitTest(left))) && (!enemy[i].bFeet.hitTest(right))) {
goingLeft[i] = false;
goingRight[i] = false;
goingUp[i] = false;
goingDown[i] = false;
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (enemy[i].bFeet.hitTest(top) or enemy[i].bFeet.hitTest(bottom)) {
if (goingRight[i]) {
enemy[i]._x = enemy[i]._x + 2.5;
}
if (goingLeft[i]) {
enemy[i]._x = enemy[i]._x - 2.5;
}
}
if (enemy[i].bFeet.hitTest(left) or enemy[i].bFeet.hitTest(right)) {
if (goingUp[i]) {
enemy[i]._y = enemy[i]._y - 2.5;
}
if (goingDown[i]) {
enemy[i]._y = enemy[i]._y + 2.5;
}
}
if (moveAbout[i] == 0) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
if (moveAbout[i] == 1) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
} else {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downIdle");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightIdle");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightIdle");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightIdle");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upIdle");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftIdle");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftIdle");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftIdle");
}
}
}
}
i--;
}
}
function shotActions() {
i = shot.length - 1;
while (i >= 0) {
if (weapon == 3) {
if (shot[i].hitTest(player.lamb)) {
shot[i]._alpha = 0;
} else {
shot[i]._alpha = 100;
}
shot[i]._xscale = shot[i]._xscale + 25;
shot[i]._yscale = shot[i]._yscale + 25;
if (shot[i]._xscale > 500) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
}
if ((((shot[i]._x > 640) or (shot[i]._x < 0)) or (shot[i]._y > 480)) or (shot[i]._y < 0)) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
i--;
}
}
function noOverLap() {
i = enemy.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y - ((endY - enemy[i]._y) / enemySpeed[i]);
}
}
j--;
}
i--;
}
}
function objectActions() {
i = objects.length - 1;
while (i >= 0) {
objects[i].repair._alpha = objects[i].repair._alpha - 3;
objects[i].bar._xscale = objectsHealth[i];
objects[i].bar._alpha = objects[i].bar._alpha - 3;
objects[i].barb._alpha = objects[i].barb._alpha - 3;
if (objects[i].barb._alpha < 0) {
objects[i].bar._alpha = 0;
objects[i].barb._alpha = 0;
}
j = enemy.length - 1;
while (j >= 0) {
if (hittingPlayer[j] == 0) {
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (enemy[j].bFeet.hitTest(base))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (!inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.05;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 0.5;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (!enemy[j].bFeet.hitTest(base))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (!inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.05;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 0.5;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
}
j--;
}
if (hitMarker.hitTest(objects[i].area)) {
if (objectsHealth[i] < 100) {
if ((!inBase) && (!beingCarried)) {
tr._alpha = 80;
}
if (Key.isDown(32) && (!inBase)) {
cantShoot = true;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
objects[i].repair._alpha = 100;
objectsHealth[i] = objectsHealth[i] + 1.5;
if (objectsHealth[i] > 0) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] > 50) {
objects[i].gotoAndStop("normal");
}
if (objectsHealth[i] > 100) {
objectsHealth[i] = 100;
}
}
}
}
if (player.feet.hitTest(objects[i].blocker)) {
if (objectsHealth[i] > 0) {
bij._alpha = 80;
if (moving) {
jumpingOver = true;
shooting = false;
}
if (player._x < objects[i]._x) {
if (!jumpingOver) {
player._x = player._x - (playerSpeed * 1.5);
}
}
if (player._x > objects[i]._x) {
if (!jumpingOver) {
player._x = player._x + (playerSpeed * 1.5);
}
}
if (player._y < objects[i]._y) {
if (!jumpingOver) {
player._y = player._y - (playerSpeed * 1.5);
}
}
if (player._y > objects[i]._y) {
if (!jumpingOver) {
player._y = player._y + (playerSpeed * 1.5);
}
}
}
}
i--;
}
}
function bgObjectActions() {
i = bgObjects.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(bgObjects[i].bottom_mc)) {
if (enemy[j]._x < bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(bgObjects[i].bottom_mc)) {
if (player._x < bgObjects[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > bgObjects[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < bgObjects[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > bgObjects[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function miscObjectActions() {
i = misc_mc.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(misc_mc[i].bottom_mc)) {
if (enemy[j]._x < misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(misc_mc[i].bob)) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
whatUpgrade = Math.round(Math.random() * 1) + 1;
if (whatUpgrade == 0) {
weapon = 3;
_root.attachMovie("restore", "restore", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 1) {
weapon = 1;
_root.attachMovie("shotgungot", "shotgungot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 2) {
weapon = 2;
_root.attachMovie("uzigot", "uzigot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 3) {
cbomb.removeMovieClip();
_root.attachMovie("cbomb", "cbomb", _root.getNextHighestDepth());
}
if (whatUpgrade == 4) {
randomnumber++;
turrent_mc = _root.attachMovie("turrent", "turrent" + randomnumber, _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
misc_mc.push(turrent_mc);
depth.push(turrent_mc);
}
pickUpSound.start();
misc_mc[i].removeMovieClip();
}
if (player.feet.hitTest(misc_mc[i].bottom_mc)) {
if (player._x < misc_mc[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > misc_mc[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < misc_mc[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > misc_mc[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
Mouse.hide();
ouch_sound = new Sound();
ouch_sound.attachSound("ouch");
flamwthrowa_sound = new Sound();
flamwthrowa_sound.attachSound("flamwthrowa");
uzi_sound = new Sound();
uzi_sound.attachSound("uzi");
shotgun_sound = new Sound();
shotgun_sound.attachSound("shotGun");
endSplashSound = new Sound();
endSplashSound.attachSound("endSplash");
pickUpSound = new Sound();
pickUpSound.attachSound("Gun_Reload");
shot_sound = new Sound();
shot_sound.attachSound("shot");
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
trans.gotoAndPlay("reverse");
_root.attachMovie("playersHealth", "playersHealth", _root.getNextHighestDepth(), {_x:290, _y:440});
_root.attachMovie("hitMarker", "hitMarker", _root.getNextHighestDepth());
hitMarker._alpha = 0;
_root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:320, _y:250});
_root.attachMovie("crosshair", "crosshair", _root.getNextHighestDepth());
playerSpeed = 12;
floorSpeed = 7;
toGo = 0;
rankNum = 0;
yourRank = 3000;
lost = false;
tfire = 0;
health = 0;
score = 0;
difBears = 0;
youWin = 0;
thatPower = 0;
overHeat = 0;
stuck = false;
stuckTimer = 0;
beingCarried = false;
level = 0;
maybeBlood = 0;
numberReleased = 15;
weapon = 0;
inBase = true;
scoreMark = 0;
shotTimer = 0;
reloadTime = 500;
randomnumber = 0;
dropSpeed = 0;
bulletSpeed = 20;
whatUpgrade = 0;
chanceToDrop = 0;
releaseenemy = 0;
enemyNumber = 0;
choice = 0;
levelEnded = 50;
safe = false;
flashing = 0;
safeTimer = 0;
stamina = 100;
viva = 5;
jumpingOver = false;
jumpingOverTimer = 0;
notOverHeated = true;
canAttach = true;
leftFree = false;
rightFree = false;
topFree = false;
bottomFree = false;
shooting = false;
moving = false;
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
frozen = false;
fnum = 0;
frozenOnce = 0;
amountOfBlood = 0;
showPause = 0;
var pts = new Array();
var bgObjects = new Array();
bgObjects.push(tree, tree2, tree3, top, left, right, bottom);
var depth = new Array();
depth.push(player, tree, tree2, tree3, box1, box2, box3, box4, box5, box6, box7, box8, box9, box10, box11, box12, box13, box14, box15, box16, box17, box18, box19, box20, box21, box22, box23, box24, box25);
var misc_mc = new Array();
var shot = new Array();
var objects = new Array();
objects.push(box1, box2, box3, box4, box5, box6, box7, box8, box9, box10, box11, box12, box13, box14, box15, box16, box17, box18, box19, box20, box21, box22, box23, box24, box25);
var objectsHealth = new Array();
objectsHealth.push(100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
var enemy = new Array();
var type = new Array();
var hittingPlayer = new Array();
var enemyAttacking = new Array();
var enemyAttackingTimer = new Array();
var damagedTimer = new Array();
var hit = new Array();
var carrying = new Array();
var portTimer = new Array();
var where = new Array();
var moveAbout = new Array();
var enemyHealth = new Array();
var efacingLeftUp = new Array();
var efacingRightUp = new Array();
var efacingLeftDown = new Array();
var efacingRightDown = new Array();
var efacingLeft = new Array();
var efacingRight = new Array();
var efacingUp = new Array();
var efacingDown = new Array();
var directionAngle = new Array();
var myRadians = new Array();
var myDegrees = new Array();
var goingLeft = new Array();
var goingRight = new Array();
var goingUp = new Array();
var goingDown = new Array();
var pushSpeed = new Array();
var enemySpeed = new Array();
var chillTime = new Array();
onMouseUp = function () {
shooting = false;
};
onMouseDown = function () {
if (beingCarried && (!frozen)) {
health = health + viva;
}
if (((notOverHeated && (!jumpingOver)) && (!beingCarried)) && (!frozen)) {
shooting = true;
}
};
player.onEnterFrame = function () {
turrent_mc.onEnterFrame = function () {
i = enemy.length - 1;
while (i >= 0) {
if (this.tclip.hitTest(enemy[i]) && (!frozen)) {
if (tfire > 8) {
tfire = 0;
}
if (tfire == 0) {
this.gotoAndStop("shoot");
uzi_sound.start();
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - 4;
}
tfire++;
}
i--;
}
};
if (health > 100) {
safe = true;
player._alpha = 100;
beingCarried = false;
health = 100;
}
if (safe && (!frozen)) {
flashing++;
safeTimer++;
if ((flashing > 0) && (flashing < 5)) {
player._alpha = player._alpha - 25;
}
if ((flashing > 5) && (flashing < 10)) {
player._alpha = player._alpha + 25;
}
if (flashing == 10) {
flashing = 0;
}
if (safeTimer == 75) {
flashing = 0;
player._alpha = 100;
safe = false;
safeTimer = 0;
}
}
if ((!notOverHeated) && (!frozen)) {
overHeat = overHeat - dropSpeed;
shooting = false;
}
if (player.hitTest(base)) {
inBase = true;
} else if (!player.hitTest(base2)) {
inBase = false;
}
if (player.hitTest(base2)) {
inBase = true;
} else if (!player.hitTest(base)) {
inBase = false;
}
if ((!shooting) && (!frozen)) {
if (notOverHeated) {
overHeat = overHeat - dropSpeed;
dropSpeed = 1;
}
}
if (inBase && (!frozen)) {
if (!notOverHeated) {
overHeat = overHeat - (dropSpeed * 2.5);
}
}
gameOver();
bgObjectActions();
pointsActions();
miscObjectActions();
depthActions();
enemyDeath();
shotActions();
if (stuck) {
playerSpeed = 6;
floorSpeed = 3.5;
stuckTimer++;
if (stuckTimer == 80) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
playerSpeed = 12;
floorSpeed = 7;
stuckTimer = 0;
stuck = false;
}
}
if (overHeat < 0) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
}
if (shooting) {
if ((shotTimer + reloadTime) < getTimer()) {
shotTimer = getTimer();
overHeat = overHeat + 3;
if (overHeat > 100) {
dropSpeed = 0.5;
overHeat = 100;
notOverHeated = false;
boarder.gotoAndStop("hot");
powerBar.gotoAndStop("hot");
}
if (weapon == 0) {
thatPower = 4;
shot_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 1) {
thatPower = 8;
reloadTime = 1000;
shotgun_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 2) {
thatPower = 4;
uzi_sound.start();
reloadTime = 80;
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 3) {
thatPower = 4;
flamwthrowa_sound.start();
reloadTime = 10;
randomnumber++;
bullet_mc = _root.attachMovie("flames", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
angle = hitMarker._rotation - 90;
bullet_mc.dirx = Math.cos((angle * Math.PI) / 180) * 15;
bullet_mc.diry = Math.sin((angle * Math.PI) / 180) * 15;
bullet_mc.onEnterFrame = function () {
this._x = this._x - this.dirx;
this._y = this._y - this.diry;
};
}
}
hitMarker._x = player._x;
hitMarker._y = player._y - 30;
if (floor._x > 460) {
leftFree = true;
floor._x = 460;
}
if (floor._x < 175) {
rightFree = true;
floor._x = 175;
}
if (floor._y > 275) {
topFree = true;
floor._y = 275;
}
if (floor._y < 195) {
bottomFree = true;
floor._y = 195;
}
if (!topFree) {
if ((player._y < 180) && (floor._y < 275)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y + floorSpeed;
i--;
}
base._y = base._y + floorSpeed;
base2._y = base2._y + floorSpeed;
player._y = player._y + playerSpeed;
floor._y = floor._y + floorSpeed;
}
}
if (player._y > 180) {
topFree = false;
}
if (!bottomFree) {
if ((player._y > 300) && (floor._y > 195)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y - floorSpeed;
i--;
}
player._y = player._y - playerSpeed;
floor._y = floor._y - floorSpeed;
base._y = base._y - floorSpeed;
base2._y = base2._y - floorSpeed;
}
}
if (player._y < 300) {
bottomFree = false;
}
if (!leftFree) {
if ((player._x < 200) && (floor._x < 460)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x + floorSpeed;
i--;
}
player._x = player._x + playerSpeed;
floor._x = floor._x + floorSpeed;
base._x = base._x + floorSpeed;
base2._x = base2._x + floorSpeed;
}
}
if (player._x > 200) {
leftFree = false;
}
if ((!rightFree) && (floor._x > 175)) {
if (player._x > 400) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x - floorSpeed;
i--;
}
player._x = player._x - playerSpeed;
floor._x = floor._x - floorSpeed;
base._x = base._x - floorSpeed;
base2._x = base2._x - floorSpeed;
}
}
if (player._x < 400) {
rightFree = false;
}
if (player._x < 0) {
player._x = 0;
}
if (player._x > 640) {
player._x = 640;
}
if ((player._y < 50) && (!beingCarried)) {
player._y = 50;
}
if ((player._y > 480) && (!beingCarried)) {
player._y = 480;
}
if (weapon == 0) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDown");
}
if (facingRightDown) {
player.gotoAndStop("jumpRight");
}
if (facingRight) {
player.gotoAndStop("jumpRight");
}
if (facingRightUp) {
player.gotoAndStop("jumpRight");
}
if (facingUp) {
player.gotoAndStop("jumpUp");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeft");
}
if (facingLeft) {
player.gotoAndStop("jumpLeft");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeft");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("down");
}
if (facingRightDown) {
player.gotoAndStop("downRight");
}
if (facingRight) {
player.gotoAndStop("right");
}
if (facingRightUp) {
player.gotoAndStop("upRight");
}
if (facingUp) {
player.gotoAndStop("up");
}
if (facingLeftUp) {
player.gotoAndStop("upLeft");
}
if (facingLeft) {
player.gotoAndStop("left");
}
if (facingLeftDown) {
player.gotoAndStop("downLeft");
}
} else {
if (facingDown) {
player.gotoAndStop("downShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightShoot");
}
if (facingRight) {
player.gotoAndStop("rightShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightShoot");
}
if (facingUp) {
player.gotoAndStop("upShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShoot");
}
if (facingLeft) {
player.gotoAndStop("leftShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShoot");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdle");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdle");
}
if (facingRight) {
player.gotoAndStop("rightIdle");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdle");
}
if (facingUp) {
player.gotoAndStop("upIdle");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdle");
}
if (facingLeft) {
player.gotoAndStop("leftIdle");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdle");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShoot");
}
if (facingRight) {
player.gotoAndStop("rightIdleShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShoot");
}
if (facingUp) {
player.gotoAndStop("upIdleShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShoot");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShoot");
}
}
}
}
}
if (weapon == 1) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownSG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightSG");
}
if (facingRight) {
player.gotoAndStop("jumpRightSG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightSG");
}
if (facingUp) {
player.gotoAndStop("jumpUpSG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftSG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightSG");
}
if (facingRight) {
player.gotoAndStop("rightSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightSG");
}
if (facingUp) {
player.gotoAndStop("upSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftSG");
}
if (facingLeft) {
player.gotoAndStop("leftSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootSG");
}
if (facingRight) {
player.gotoAndStop("rightShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootSG");
}
if (facingUp) {
player.gotoAndStop("upShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootSG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleSG");
}
if (facingUp) {
player.gotoAndStop("upIdleSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootSG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootSG");
}
}
}
}
}
if (weapon == 2) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownMG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightMG");
}
if (facingRight) {
player.gotoAndStop("jumpRightMG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightMG");
}
if (facingUp) {
player.gotoAndStop("jumpUpMG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftMG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightMG");
}
if (facingRight) {
player.gotoAndStop("rightMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightMG");
}
if (facingUp) {
player.gotoAndStop("upMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftMG");
}
if (facingLeft) {
player.gotoAndStop("leftMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootMG");
}
if (facingRight) {
player.gotoAndStop("rightShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootMG");
}
if (facingUp) {
player.gotoAndStop("upShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootMG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleMG");
}
if (facingUp) {
player.gotoAndStop("upIdleMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootMG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootMG");
}
}
}
}
}
if (weapon == 3) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownFLAME");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRight) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingUp) {
player.gotoAndStop("jumpUpFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftFLAME");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightFLAME");
}
if (facingRight) {
player.gotoAndStop("rightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightFLAME");
}
if (facingUp) {
player.gotoAndStop("upFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootFLAME");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootFLAME");
}
}
}
}
}
if (jumpingOver) {
jumpingOverTimer++;
if (jumpingOverTimer == 5) {
jumpingOver = false;
jumpingOverTimer = 0;
}
}
if (!Key.isDown(38)) {
moving = false;
}
if (!Key.isDown(40)) {
moving = false;
}
if (!Key.isDown(37)) {
moving = false;
}
if (!Key.isDown(39)) {
moving = false;
}
myRadian = Math.atan2(_root._ymouse - player._y, _root._xmouse - player._x);
myDegree = Math.round((myRadian * 180) / Math.PI) - 90;
hitMarker._rotation = myDegree;
if ((!beingCarried) && (!frozen)) {
if (Key.isDown(87) or Key.isDown(38)) {
moving = true;
player._y = player._y - playerSpeed;
}
if (Key.isDown(83) or Key.isDown(40)) {
moving = true;
player._y = player._y + playerSpeed;
}
if (Key.isDown(68) or Key.isDown(39)) {
moving = true;
player._x = player._x + playerSpeed;
}
if (Key.isDown(65) or Key.isDown(37)) {
moving = true;
player._x = player._x - playerSpeed;
}
}
if ((hitMarker._rotation < 20) && (hitMarker._rotation > -20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
}
if ((hitMarker._rotation < -140) && (hitMarker._rotation > -180)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = true;
facingDown = false;
}
if ((hitMarker._rotation < -60) && (hitMarker._rotation > -100)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = true;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 100) && (hitMarker._rotation > 60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = true;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 140) && (hitMarker._rotation > 100)) {
facingLeftUp = true;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -100) && (hitMarker._rotation > -140)) {
facingLeftUp = false;
facingRightUp = true;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 60) && (hitMarker._rotation > 20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = true;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -20) && (hitMarker._rotation > -60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = true;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if (scoreMark > score) {
score = score + 10;
}
if (stamina > 100) {
stamina = 100;
}
if (stamina < 0) {
stamina = 0;
}
if (beingCarried && (!frozen)) {
stamina = stamina - 0.3;
powerBar2.gotoAndStop("down");
}
if (inBase && (!frozen)) {
stamina = stamina + 0.1;
powerBar2.gotoAndStop("up");
}
if (!lost) {
if (stamina > 75) {
viva = 5;
}
if (stamina < 50) {
viva = 2.5;
}
if (stamina < 25) {
viva = 1;
}
}
if (score == yourRank) {
rankNum++;
randomnumber++;
if (rankNum == 1) {
blee = _root.attachMovie("rank1", "rank1" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 2) {
blee = _root.attachMovie("rank2", "rank2" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 3) {
blee = _root.attachMovie("rank3", "rank3" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 4) {
blee = _root.attachMovie("rank4", "rank4" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 5) {
blee = _root.attachMovie("rank5", "rank5" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 6) {
blee = _root.attachMovie("rank6", "rank6" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 7) {
blee = _root.attachMovie("rank7", "rank7" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 8) {
blee = _root.attachMovie("rank8", "rank8" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 9) {
blee = _root.attachMovie("rank9", "rank9" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 10) {
blee = _root.attachMovie("rank10", "rank10" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 11) {
blee = _root.attachMovie("rank11", "rank11" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
yourRank = yourRank + 3000;
}
playersHealth.playersClub._xscale = health;
powerBar._yscale = overHeat;
powerBar2._yscale = stamina;
score_mc.score.text = score;
texture.swapDepths(_root.getNextHighestDepth());
crosshair.swapDepths(_root.getNextHighestDepth());
score_mc.swapDepths(_root.getNextHighestDepth());
powerBar.swapDepths(_root.getNextHighestDepth());
boarder.swapDepths(_root.getNextHighestDepth());
powerBar2.swapDepths(_root.getNextHighestDepth());
boarder2.swapDepths(_root.getNextHighestDepth());
playersHealth.swapDepths(_root.getNextHighestDepth());
splosh.swapDepths(_root.getNextHighestDepth());
bij.swapDepths(_root.getNextHighestDepth());
tr.swapDepths(_root.getNextHighestDepth());
trans.swapDepths(_root.getNextHighestDepth());
blee.swapDepths(_root.getNextHighestDepth());
ps.swapDepths(_root.getNextHighestDepth());
bij._alpha = bij._alpha - 8;
tr._alpha = tr._alpha - 30;
if (bij._alpha < 0) {
bij._alpha = 0;
}
if (tr._alpha < 0) {
tr._alpha = 0;
}
playersHealth._alpha = playersHealth._alpha - 30;
if (playersHealth._alpha < 0) {
playersHealth._alpha = 0;
}
crosshair._x = _xmouse;
crosshair._y = _ymouse;
if (!Key.isDown(80)) {
frozenOnce = 0;
}
if (Key.isDown(80)) {
if (frozenOnce == 0) {
frozenOnce = 1;
fnum++;
}
if (fnum > 1) {
fnum = 0;
}
}
if (fnum == 1) {
if (showPause == 0) {
showPause = 1;
_root.attachMovie("ps", "ps", _root.getNextHighestDepth());
}
frozen = true;
shooting = false;
} else {
showPause = 0;
ps.removeMovieClip();
addenemy();
objectActions();
enemyActions();
frozen = false;
}
};
frameRateCounter = setInterval(countFrames, 1000);
Frame 10
function gameOver() {
if ((player._y < -70) or (player._y > 550)) {
lost = true;
viva = 0;
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
gotoAndStop ("gameOver");
}
}
}
function removeall() {
bij.removeMovieClip();
tr.removeMovieClip();
score_mc2.removeMovieClip();
powerBar.removeMovieClip();
boarder.removeMovieClip();
powerBar2.removeMovieClip();
boarder2.removeMovieClip();
playersHealth.removeMovieClip();
hitMarker.removeMovieClip();
player.removeMovieClip();
crosshair.removeMovieClip();
i = pts.length - 1;
while (i >= 0) {
pts[i].removeMovieClip();
pts.splice(i, 1);
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i].removeMovieClip();
bgObjects.splice(i, 1);
i--;
}
i = depth.length - 1;
while (i >= 0) {
depth[i].removeMovieClip();
depth.splice(i, 1);
i--;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
i--;
}
i = shot.length - 1;
while (i >= 0) {
shot[i].removeMovieClip();
shot.splice(i, 1);
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._alpha = 0;
objects[i].removeMovieClip();
objects.splice(i, 1);
i--;
}
i = objectsHealth.length - 1;
while (i >= 0) {
objectsHealth[i].removeMovieClip();
objectsHealth.splice(i, 1);
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i].removeMovieClip();
enemy.splice(i, 1);
i--;
}
i = type.length - 1;
while (i >= 0) {
type[i].removeMovieClip();
type.splice(i, 1);
i--;
}
i = hittingPlayer.length - 1;
while (i >= 0) {
hittingPlayer[i].removeMovieClip();
hittingPlayer.splice(i, 1);
i--;
}
i = enemyAttacking.length - 1;
while (i >= 0) {
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
i--;
}
i = enemyAttackingTimer.length - 1;
while (i >= 0) {
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
i--;
}
i = damagedTimer.length - 1;
while (i >= 0) {
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
i--;
}
i = hit.length - 1;
while (i >= 0) {
hit[i].removeMovieClip();
hit.splice(i, 1);
i--;
}
i = carrying.length - 1;
while (i >= 0) {
carrying[i].removeMovieClip();
carrying.splice(i, 1);
i--;
}
i = portTimer.length - 1;
while (i >= 0) {
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
i--;
}
i = where.length - 1;
while (i >= 0) {
where[i].removeMovieClip();
where.splice(i, 1);
i--;
}
i = moveAbout.length - 1;
while (i >= 0) {
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
i--;
}
i = enemyHealth.length - 1;
while (i >= 0) {
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
i--;
}
i = efacingLeftUp.length - 1;
while (i >= 0) {
efacingLeftUp[i].removeMovieClip();
efacingLeftUp.splice(i, 1);
i--;
}
i = efacingRightUp.length - 1;
while (i >= 0) {
efacingRightUp[i].removeMovieClip();
efacingRightUp.splice(i, 1);
i--;
}
i = efacingLeftDown.length - 1;
while (i >= 0) {
efacingLeftDown[i].removeMovieClip();
efacingLeftDown.splice(i, 1);
i--;
}
i = efacingRightDown.length - 1;
while (i >= 0) {
efacingRightDown[i].removeMovieClip();
efacingRightDown.splice(i, 1);
i--;
}
i = efacingLeft.length - 1;
while (i >= 0) {
efacingLeft[i].removeMovieClip();
efacingLeft.splice(i, 1);
i--;
}
i = efacingRight.length - 1;
while (i >= 0) {
efacingRight[i].removeMovieClip();
efacingRight.splice(i, 1);
i--;
}
i = efacingUp.length - 1;
while (i >= 0) {
efacingUp[i].removeMovieClip();
efacingUp.splice(i, 1);
i--;
}
i = efacingDown.length - 1;
while (i >= 0) {
efacingDown[i].removeMovieClip();
efacingDown.splice(i, 1);
i--;
}
i = directionAngle.length - 1;
while (i >= 0) {
directionAngle[i].removeMovieClip();
directionAngle.splice(i, 1);
i--;
}
i = myRadians.length - 1;
while (i >= 0) {
myRadians[i].removeMovieClip();
myRadians.splice(i, 1);
i--;
}
i = myDegrees.length - 1;
while (i >= 0) {
myDegrees[i].removeMovieClip();
myDegrees.splice(i, 1);
i--;
}
i = goingLeft.length - 1;
while (i >= 0) {
goingLeft[i].removeMovieClip();
goingLeft.splice(i, 1);
i--;
}
i = goingRight.length - 1;
while (i >= 0) {
goingRight[i].removeMovieClip();
goingRight.splice(i, 1);
i--;
}
i = goingUp.length - 1;
while (i >= 0) {
goingUp[i].removeMovieClip();
goingUp.splice(i, 1);
i--;
}
i = goingDown.length - 1;
while (i >= 0) {
goingDown[i].removeMovieClip();
goingDown.splice(i, 1);
i--;
}
i = pushSpeed.length - 1;
while (i >= 0) {
pushSpeed[i].removeMovieClip();
pushSpeed.splice(i, 1);
i--;
}
i = enemySpeed.length - 1;
while (i >= 0) {
enemySpeed[i].removeMovieClip();
enemySpeed.splice(i, 1);
i--;
}
i = chillTime.length - 1;
while (i >= 0) {
chillTime[i].removeMovieClip();
chillTime.splice(i, 1);
i--;
}
}
function addenemy() {
if (((numberReleased == 0) && (enemyNumber == 0)) && (level == 4)) {
if (youWin == 30) {
endSplashSound.start();
_root.attachMovie("survived", "survived", _root.getNextHighestDepth());
}
youWin++;
if (youWin > 70) {
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
nextFrame();
}
}
}
if (((numberReleased == 0) && (enemyNumber == 0)) && (level < 4)) {
levelEnded--;
if (levelEnded < 0) {
level++;
amountOfBlood = 0;
numberReleased = 25;
endSplashSound.start();
_root.attachMovie("levelUp", "levelUp", _root.getNextHighestDepth());
i = depth.length - 1;
while (i >= 0) {
depth.splice(i, 1);
i--;
}
depth.push(player, tree, tree2, tree3, cbox1, cbox2, cbox3, cbox4, cbox5, cbox6, cbox7, cbox8, cbox9, cbox10, cbox11, cbox12, cbox13, cbox14, cbox15, cbox16, cbox17, cbox18, cbox19, cbox20, cbox21, cbox22, cbox23, cbox24, cbox25, cbox26, cbox27, cbox28, cbox29, cbox30, cbox31, cbox32, cbox33, cbox34);
levelEnded = 50;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._alpha = misc_mc[i]._alpha - 15;
if (misc_mc[i]._alpha < 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
}
i--;
}
}
if (level < 5) {
if (numberReleased > 0) {
canAttach = true;
} else {
canAttach = false;
}
}
if ((releaseenemy + 700) < getTimer()) {
if (canAttach) {
if (level == 1) {
choice = 0;
}
if (level > 2) {
choice = Math.round(Math.random() * 3) + 2;
}
difBears = Math.round(Math.random() * 2) + 0;
numberReleased--;
enemyNumber++;
releaseenemy = getTimer();
dir = ["up", "down"];
randNum = random(2);
setDir = dir[randNum];
switch (setDir) {
case "up" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:-20});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "down" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice != 1) {
break;
}
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 280) + 200, _y:500});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
}
}
}
function pointsActions() {
i = pts.length - 1;
while (i >= 0) {
endX = _root.score_mc2._x;
endY = _root.score_mc2._y;
pts[i]._x = pts[i]._x + ((endX - pts[i]._x) / 15);
pts[i]._y = pts[i]._y + ((endY - pts[i]._y) / 15);
if (pts[i].hitTest(score_mc2)) {
pts[i].removeMovieClip();
pts.splice(i, 1);
scoreMark = scoreMark + 100;
}
i--;
}
}
function enemyDeath() {
i = enemy.length - 1;
while (i >= 0) {
if ((enemyHealth[i] < 1) && (!carrying[i])) {
ouch_sound.start();
maybeBlood = Math.round(Math.random() * 4) + 0;
if (maybeBlood == 0) {
randomnumber++;
splosh = _root.attachMovie("splatter", "splatter" + randomnumber, _root.getNextHighestDepth());
}
chanceToDrop = Math.round(Math.random() * 2) + 0;
if (chanceToDrop == 0) {
randomnumber++;
item_m = _root.attachMovie("item", "item" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(item_m);
depth.push(item_m);
}
randomnumber++;
points = _root.attachMovie("scorePlus", "scorePlus" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
pts.push(points);
enemyNumber--;
if (amountOfBlood < 30) {
randomnumber++;
puddle_m = _root.attachMovie("puddle", "puddle" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(puddle_m);
depth.push(puddle_m);
}
amountOfBlood++;
randomnumber++;
blood_splash = _root.attachMovie("blood_mc", "blood_mc" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_splash._rotation = enemy[i]._rotation;
misc_mc.push(blood_splash);
enemy[i].removeMovieClip();
enemy.splice(i, 1);
type.splice(i, 1);
enemyAttacking.splice(i, 1);
enemyAttackingTimer.splice(i, 1);
damagedTimer.splice(i, 1);
hit.splice(i, 1);
portTimer.splice(i, 1);
where.splice(i, 1);
moveAbout.splice(i, 1);
enemyHealth.splice(i, 1);
efacingLeftUp.splice(i, 1);
efacingRightUp.splice(i, 1);
efacingLeftDown.splice(i, 1);
efacingRightDown.splice(i, 1);
efacingLeft.splice(i, 1);
efacingRight.splice(i, 1);
efacingUp.splice(i, 1);
efacingDown.splice(i, 1);
directionAngle.splice(i, 1);
myRadians.splice(i, 1);
myDegrees.splice(i, 1);
goingLeft.splice(i, 1);
goingRight.splice(i, 1);
goingUp.splice(i, 1);
goingDown.splice(i, 1);
pushSpeed.splice(i, 1);
enemySpeed.splice(i, 1);
hittingPlayer.splice(i, 1);
carrying.splice(i, 1);
chillTime.splice(i, 1);
}
i--;
}
}
function depthActions() {
i = depth.length - 1;
while (i >= 0) {
depth[i].idiot_depth = Math.floor((depth[i]._y * 480) + depth[i]._x);
depth[i].swapDepths(depth[i].idiot_depth);
i--;
}
}
function enemyActions() {
i = enemy.length - 1;
while (i >= 0) {
j = shot.length - 1;
while (j >= 0) {
if (enemy[i].hitTest(shot[j]) && (!carrying[i])) {
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - thatPower;
shot[j].removeMovieClip();
shot.splice(j, 1);
}
j--;
}
if (enemy[i].hitTest(cbomb)) {
enemyHealth[i] = 0;
}
if (!enemy[i].hitTest(hitMarker)) {
hittingPlayer[i] = 0;
}
if (carrying[i]) {
playersHealth._alpha = 100;
if (safe) {
chillTime[i] = 0;
carrying[i] = false;
}
if (enemy[i].hitTest(qbase)) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
}
if (!enemy[i].hitTest(qbase)) {
if (enemy[i]._x < 340) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
} else {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("upIdleHeld");
} else {
enemy[i].gotoAndStop("upHeld");
enemy[i]._y = enemy[i]._y - 2;
}
}
}
}
if ((enemy[i].hitTest(hitMarker) && (!carrying[i])) && (!beingCarried)) {
if (type[i] == 2) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:100, bb:0};
myColor.setTransform(myColorTransform);
stuck = true;
randomnumber++;
explosion_mc = _root.attachMovie("explosion", "explosion" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(explosion_mc);
depth.push(explosion_mc);
enemyHealth[i] = 0;
}
if ((type[i] == 0) or (type[i] == 1)) {
shooting = false;
health = -1;
if (((health < 0) && (!safe)) && (!beingCarried)) {
player._alpha = 0;
carrying[i] = true;
beingCarried = true;
health = 0;
}
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightAttack");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftAttack");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftAttack");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftAttack");
}
hittingPlayer[i] = 1;
}
if (((enemyAttacking[i] == 0) && (hittingPlayer[i] == 0)) && (!carrying[i])) {
if (hit[i] == 1) {
damagedTimer[i]++;
if ((damagedTimer[i] > 0) && (damagedTimer[i] < 3)) {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightHit");
enemy[i]._x = enemy[i]._x - pushSpeed[i];
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftHit");
enemy[i]._x = enemy[i]._x + pushSpeed[i];
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
}
if (damagedTimer[i] == 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (hit[i] == 0) {
portTimer[i]++;
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 2) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 0;
portTimer[i] = 0;
}
if ((where[i] == 0) or (where[i] == 1)) {
myRadians[i] = Math.atan2(player._y - enemy[i]._y, player._x - enemy[i]._x);
myDegrees[i] = Math.round((myRadians[i] * 180) / Math.PI) - 90;
directionAngle[i] = myDegrees[i];
if ((directionAngle[i] < 20) && (directionAngle[i] > -20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = true;
}
if ((directionAngle[i] < -140) && (directionAngle[i] > -180)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = true;
efacingDown[i] = false;
}
if ((directionAngle[i] < -60) && (directionAngle[i] > -100)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = true;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 100) && (directionAngle[i] > 60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = true;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 140) && (directionAngle[i] > 100)) {
efacingLeftUp[i] = true;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -100) && (directionAngle[i] > -140)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = true;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 60) && (directionAngle[i] > 20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = true;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -20) && (directionAngle[i] > -60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = true;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - (((endX - enemy[i]._x) / enemySpeed[i]) * 1.5);
enemy[i]._y = enemy[i]._y - (((endY - enemy[i]._y) / enemySpeed[i]) * 1.5);
}
}
j--;
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("down");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRight");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("right");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRight");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("up");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeft");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("left");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeft");
}
if ((((!enemy[i].bFeet.hitTest(bottom)) && (!enemy[i].bFeet.hitTest(top))) && (!enemy[i].bFeet.hitTest(left))) && (!enemy[i].bFeet.hitTest(right))) {
goingLeft[i] = false;
goingRight[i] = false;
goingUp[i] = false;
goingDown[i] = false;
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (enemy[i].bFeet.hitTest(top) or enemy[i].bFeet.hitTest(bottom)) {
if (goingRight[i]) {
enemy[i]._x = enemy[i]._x + 2.5;
}
if (goingLeft[i]) {
enemy[i]._x = enemy[i]._x - 2.5;
}
}
if (enemy[i].bFeet.hitTest(left) or enemy[i].bFeet.hitTest(right)) {
if (goingUp[i]) {
enemy[i]._y = enemy[i]._y - 2.5;
}
if (goingDown[i]) {
enemy[i]._y = enemy[i]._y + 2.5;
}
}
if (moveAbout[i] == 0) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
if (moveAbout[i] == 1) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
} else {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downIdle");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightIdle");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightIdle");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightIdle");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upIdle");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftIdle");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftIdle");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftIdle");
}
}
}
}
i--;
}
}
function shotActions() {
i = shot.length - 1;
while (i >= 0) {
if (weapon == 3) {
if (shot[i].hitTest(player.lamb)) {
shot[i]._alpha = 0;
} else {
shot[i]._alpha = 100;
}
shot[i]._xscale = shot[i]._xscale + 25;
shot[i]._yscale = shot[i]._yscale + 25;
if (shot[i]._xscale > 500) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
}
if ((((shot[i]._x > 640) or (shot[i]._x < 0)) or (shot[i]._y > 480)) or (shot[i]._y < 0)) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
i--;
}
}
function noOverLap() {
i = enemy.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y - ((endY - enemy[i]._y) / enemySpeed[i]);
}
}
j--;
}
i--;
}
}
function objectActions() {
i = objects.length - 1;
while (i >= 0) {
objects[i].repair._alpha = objects[i].repair._alpha - 3;
objects[i].bar._xscale = objectsHealth[i];
objects[i].bar._alpha = objects[i].bar._alpha - 3;
objects[i].barb._alpha = objects[i].barb._alpha - 3;
if (objects[i].barb._alpha < 0) {
objects[i].bar._alpha = 0;
objects[i].barb._alpha = 0;
}
j = enemy.length - 1;
while (j >= 0) {
if (hittingPlayer[j] == 0) {
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (enemy[j].bFeet.hitTest(qbase))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (!inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.8;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 1.2;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (!enemy[j].bFeet.hitTest(qbase))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (!inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.8;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 1.2;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
}
j--;
}
if (hitMarker.hitTest(objects[i].area)) {
if (objectsHealth[i] < 100) {
if ((!inBase) && (!beingCarried)) {
tr._alpha = 80;
}
if (Key.isDown(32) && (!inBase)) {
cantShoot = true;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
objects[i].repair._alpha = 100;
objectsHealth[i] = objectsHealth[i] + 1.5;
if (objectsHealth[i] > 0) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] > 50) {
objects[i].gotoAndStop("normal");
}
if (objectsHealth[i] > 100) {
objectsHealth[i] = 100;
}
}
}
}
if (player.feet.hitTest(objects[i].blocker)) {
if (objectsHealth[i] > 0) {
bij._alpha = 80;
if (moving) {
jumpingOver = true;
shooting = false;
}
if (player._x < objects[i]._x) {
if (!jumpingOver) {
player._x = player._x - (playerSpeed * 1.5);
}
}
if (player._x > objects[i]._x) {
if (!jumpingOver) {
player._x = player._x + (playerSpeed * 1.5);
}
}
if (player._y < objects[i]._y) {
if (!jumpingOver) {
player._y = player._y - (playerSpeed * 1.5);
}
}
if (player._y > objects[i]._y) {
if (!jumpingOver) {
player._y = player._y + (playerSpeed * 1.5);
}
}
}
}
i--;
}
}
function bgObjectActions() {
i = bgObjects.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(bgObjects[i].bottom_mc)) {
if (enemy[j]._x < bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(bgObjects[i].bottom_mc)) {
if (player._x < bgObjects[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > bgObjects[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < bgObjects[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > bgObjects[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function miscObjectActions() {
i = misc_mc.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(misc_mc[i].bottom_mc)) {
if (enemy[j]._x < misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(misc_mc[i].bob)) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
whatUpgrade = Math.round(Math.random() * 5) + 0;
if (whatUpgrade == 0) {
weapon = 3;
_root.attachMovie("restore", "restore", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 1) {
weapon = 1;
_root.attachMovie("shotgungot", "shotgungot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 2) {
weapon = 2;
_root.attachMovie("uzigot", "uzigot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 3) {
cbomb.removeMovieClip();
_root.attachMovie("cbomb", "cbomb", _root.getNextHighestDepth());
}
if ((whatUpgrade == 4) or (whatUpgrade == 5)) {
randomnumber++;
turrent_mc = _root.attachMovie("turrent", "turrent" + randomnumber, _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
misc_mc.push(turrent_mc);
depth.push(turrent_mc);
}
pickUpSound.start();
misc_mc[i].removeMovieClip();
}
if (player.feet.hitTest(misc_mc[i].bottom_mc)) {
if (player._x < misc_mc[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > misc_mc[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < misc_mc[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > misc_mc[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
Mouse.hide();
ouch_sound = new Sound();
ouch_sound.attachSound("ouch");
flamwthrowa_sound = new Sound();
flamwthrowa_sound.attachSound("flamwthrowa");
uzi_sound = new Sound();
uzi_sound.attachSound("uzi");
shotgun_sound = new Sound();
shotgun_sound.attachSound("shotGun");
endSplashSound = new Sound();
endSplashSound.attachSound("endSplash");
pickUpSound = new Sound();
pickUpSound.attachSound("Gun_Reload");
shot_sound = new Sound();
shot_sound.attachSound("shot");
_root.attachMovie("playersHealth", "playersHealth", _root.getNextHighestDepth(), {_x:290, _y:440});
_root.attachMovie("hitMarker", "hitMarker", _root.getNextHighestDepth());
hitMarker._alpha = 0;
_root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:320, _y:250});
_root.attachMovie("crosshair", "crosshair", _root.getNextHighestDepth());
playerSpeed = 12;
floorSpeed = 7;
toGo = 0;
lost = false;
tfire = 0;
youWin = 0;
health = 0;
difBears = 0;
thatPower = 0;
overHeat = 0;
stuck = false;
stuckTimer = 0;
beingCarried = false;
level = 0;
maybeBlood = 0;
numberReleased = 15;
weapon = 0;
inBase = true;
scoreMark = score;
shotTimer = 0;
reloadTime = 500;
randomnumber = 0;
dropSpeed = 0;
bulletSpeed = 20;
whatUpgrade = 0;
chanceToDrop = 0;
releaseenemy = 0;
enemyNumber = 0;
choice = 0;
levelEnded = 50;
safe = false;
flashing = 0;
safeTimer = 0;
stamina = 100;
viva = 5;
jumpingOver = false;
jumpingOverTimer = 0;
notOverHeated = true;
canAttach = true;
leftFree = false;
rightFree = false;
topFree = false;
bottomFree = false;
shooting = false;
moving = false;
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
amountOfBlood = 0;
frozen = false;
fnum = 0;
frozenOnce = 0;
showPause = 0;
var pts = new Array();
var bgObjects = new Array();
bgObjects.push(tree, tree2, tree3, top, left, right, bottom);
var depth = new Array();
depth.push(player, tree, tree2, tree3, cbox1, cbox2, cbox3, cbox4, cbox5, cbox6, cbox7, cbox8, cbox9, cbox10, cbox11, cbox12, cbox13, cbox14, cbox15, cbox16, cbox17, cbox18, cbox19, cbox20, cbox21, cbox22, cbox23, cbox24, cbox25, cbox26, cbox27, cbox28, cbox29, cbox30, cbox31, cbox32, cbox33, cbox34);
var misc_mc = new Array();
var shot = new Array();
var objects = new Array();
objects.push(cbox1, cbox2, cbox3, cbox4, cbox5, cbox6, cbox7, cbox8, cbox9, cbox10, cbox11, cbox12, cbox13, cbox14, cbox15, cbox16, cbox17, cbox18, cbox19, cbox20, cbox21, cbox22, cbox23, cbox24, cbox25, cbox26, cbox27, cbox28, cbox29, cbox30, cbox31, cbox32, cbox33, cbox34);
var objectsHealth = new Array();
objectsHealth.push(100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
var enemy = new Array();
var type = new Array();
var hittingPlayer = new Array();
var enemyAttacking = new Array();
var enemyAttackingTimer = new Array();
var damagedTimer = new Array();
var hit = new Array();
var carrying = new Array();
var portTimer = new Array();
var where = new Array();
var moveAbout = new Array();
var enemyHealth = new Array();
var efacingLeftUp = new Array();
var efacingRightUp = new Array();
var efacingLeftDown = new Array();
var efacingRightDown = new Array();
var efacingLeft = new Array();
var efacingRight = new Array();
var efacingUp = new Array();
var efacingDown = new Array();
var directionAngle = new Array();
var myRadians = new Array();
var myDegrees = new Array();
var goingLeft = new Array();
var goingRight = new Array();
var goingUp = new Array();
var goingDown = new Array();
var pushSpeed = new Array();
var enemySpeed = new Array();
var chillTime = new Array();
onMouseUp = function () {
shooting = false;
};
onMouseDown = function () {
if (beingCarried && (!frozen)) {
health = health + viva;
}
if (((notOverHeated && (!jumpingOver)) && (!beingCarried)) && (!frozen)) {
shooting = true;
}
};
player.onEnterFrame = function () {
turrent_mc.onEnterFrame = function () {
i = enemy.length - 1;
while (i >= 0) {
if (this.tclip.hitTest(enemy[i]) && (!frozen)) {
if (tfire > 8) {
tfire = 0;
}
if (tfire == 0) {
this.gotoAndStop("shoot");
uzi_sound.start();
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - 4;
}
tfire++;
}
i--;
}
};
if (health > 100) {
safe = true;
player._alpha = 100;
beingCarried = false;
health = 100;
}
if (safe && (!frozen)) {
flashing++;
safeTimer++;
if ((flashing > 0) && (flashing < 5)) {
player._alpha = player._alpha - 25;
}
if ((flashing > 5) && (flashing < 10)) {
player._alpha = player._alpha + 25;
}
if (flashing == 10) {
flashing = 0;
}
if (safeTimer == 75) {
flashing = 0;
player._alpha = 100;
safe = false;
safeTimer = 0;
}
}
if ((!notOverHeated) && (!frozen)) {
overHeat = overHeat - dropSpeed;
shooting = false;
}
if (player.hitTest(qbase)) {
inBase = true;
} else if (!player.hitTest(qbase2)) {
inBase = false;
}
if (player.hitTest(qbase2)) {
inBase = true;
} else if (!player.hitTest(qbase)) {
inBase = false;
}
if ((!shooting) && (!frozen)) {
if (notOverHeated) {
overHeat = overHeat - dropSpeed;
dropSpeed = 1;
}
}
if (inBase && (!frozen)) {
if (!notOverHeated) {
overHeat = overHeat - (dropSpeed * 2.5);
}
}
gameOver();
bgObjectActions();
pointsActions();
miscObjectActions();
depthActions();
enemyDeath();
shotActions();
if (stuck) {
playerSpeed = 6;
floorSpeed = 3.5;
stuckTimer++;
if (stuckTimer == 80) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
playerSpeed = 12;
floorSpeed = 7;
stuckTimer = 0;
stuck = false;
}
}
if (overHeat < 0) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
}
if (shooting) {
if ((shotTimer + reloadTime) < getTimer()) {
shotTimer = getTimer();
overHeat = overHeat + 3;
if (overHeat > 100) {
dropSpeed = 0.5;
overHeat = 100;
notOverHeated = false;
boarder.gotoAndStop("hot");
powerBar.gotoAndStop("hot");
}
if (weapon == 0) {
thatPower = 4;
shot_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 1) {
thatPower = 8;
reloadTime = 1000;
shotgun_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 2) {
thatPower = 4;
uzi_sound.start();
reloadTime = 80;
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 3) {
thatPower = 4;
flamwthrowa_sound.start();
reloadTime = 10;
randomnumber++;
bullet_mc = _root.attachMovie("flames", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
angle = hitMarker._rotation - 90;
bullet_mc.dirx = Math.cos((angle * Math.PI) / 180) * 15;
bullet_mc.diry = Math.sin((angle * Math.PI) / 180) * 15;
bullet_mc.onEnterFrame = function () {
this._x = this._x - this.dirx;
this._y = this._y - this.diry;
};
}
}
hitMarker._x = player._x;
hitMarker._y = player._y - 30;
if (floor._x > 920) {
leftFree = true;
floor._x = 920;
}
if (floor._x < 350) {
rightFree = true;
floor._x = 350;
}
if (floor._y > 550) {
topFree = true;
floor._y = 550;
}
if (floor._y < 390) {
bottomFree = true;
floor._y = 390;
}
if (!topFree) {
if ((player._y < 180) && (floor._y < 550)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y + floorSpeed;
i--;
}
qbase._y = qbase._y + floorSpeed;
qbase2._y = qbase2._y + floorSpeed;
player._y = player._y + playerSpeed;
floor._y = floor._y + floorSpeed;
}
}
if (player._y > 180) {
topFree = false;
}
if (!bottomFree) {
if ((player._y > 300) && (floor._y > 390)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y - floorSpeed;
i--;
}
player._y = player._y - playerSpeed;
floor._y = floor._y - floorSpeed;
qbase._y = qbase._y - floorSpeed;
qbase2._y = qbase2._y - floorSpeed;
}
}
if (player._y < 300) {
bottomFree = false;
}
if (!leftFree) {
if ((player._x < 200) && (floor._x < 920)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x + floorSpeed;
i--;
}
player._x = player._x + playerSpeed;
floor._x = floor._x + floorSpeed;
qbase._x = qbase._x + floorSpeed;
qbase2._x = qbase2._x + floorSpeed;
}
}
if (player._x > 200) {
leftFree = false;
}
if ((!rightFree) && (floor._x > 350)) {
if (player._x > 400) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x - floorSpeed;
i--;
}
player._x = player._x - playerSpeed;
floor._x = floor._x - floorSpeed;
qbase._x = qbase._x - floorSpeed;
qbase2._x = qbase2._x - floorSpeed;
}
}
if (player._x < 400) {
rightFree = false;
}
if (player._x < 0) {
player._x = 0;
}
if (player._x > 640) {
player._x = 640;
}
if ((player._y < 50) && (!beingCarried)) {
player._y = 50;
}
if ((player._y > 480) && (!beingCarried)) {
player._y = 480;
}
if (weapon == 0) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDown");
}
if (facingRightDown) {
player.gotoAndStop("jumpRight");
}
if (facingRight) {
player.gotoAndStop("jumpRight");
}
if (facingRightUp) {
player.gotoAndStop("jumpRight");
}
if (facingUp) {
player.gotoAndStop("jumpUp");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeft");
}
if (facingLeft) {
player.gotoAndStop("jumpLeft");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeft");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("down");
}
if (facingRightDown) {
player.gotoAndStop("downRight");
}
if (facingRight) {
player.gotoAndStop("right");
}
if (facingRightUp) {
player.gotoAndStop("upRight");
}
if (facingUp) {
player.gotoAndStop("up");
}
if (facingLeftUp) {
player.gotoAndStop("upLeft");
}
if (facingLeft) {
player.gotoAndStop("left");
}
if (facingLeftDown) {
player.gotoAndStop("downLeft");
}
} else {
if (facingDown) {
player.gotoAndStop("downShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightShoot");
}
if (facingRight) {
player.gotoAndStop("rightShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightShoot");
}
if (facingUp) {
player.gotoAndStop("upShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShoot");
}
if (facingLeft) {
player.gotoAndStop("leftShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShoot");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdle");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdle");
}
if (facingRight) {
player.gotoAndStop("rightIdle");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdle");
}
if (facingUp) {
player.gotoAndStop("upIdle");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdle");
}
if (facingLeft) {
player.gotoAndStop("leftIdle");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdle");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShoot");
}
if (facingRight) {
player.gotoAndStop("rightIdleShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShoot");
}
if (facingUp) {
player.gotoAndStop("upIdleShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShoot");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShoot");
}
}
}
}
}
if (weapon == 1) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownSG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightSG");
}
if (facingRight) {
player.gotoAndStop("jumpRightSG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightSG");
}
if (facingUp) {
player.gotoAndStop("jumpUpSG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftSG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightSG");
}
if (facingRight) {
player.gotoAndStop("rightSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightSG");
}
if (facingUp) {
player.gotoAndStop("upSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftSG");
}
if (facingLeft) {
player.gotoAndStop("leftSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootSG");
}
if (facingRight) {
player.gotoAndStop("rightShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootSG");
}
if (facingUp) {
player.gotoAndStop("upShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootSG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleSG");
}
if (facingUp) {
player.gotoAndStop("upIdleSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootSG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootSG");
}
}
}
}
}
if (weapon == 2) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownMG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightMG");
}
if (facingRight) {
player.gotoAndStop("jumpRightMG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightMG");
}
if (facingUp) {
player.gotoAndStop("jumpUpMG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftMG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightMG");
}
if (facingRight) {
player.gotoAndStop("rightMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightMG");
}
if (facingUp) {
player.gotoAndStop("upMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftMG");
}
if (facingLeft) {
player.gotoAndStop("leftMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootMG");
}
if (facingRight) {
player.gotoAndStop("rightShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootMG");
}
if (facingUp) {
player.gotoAndStop("upShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootMG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleMG");
}
if (facingUp) {
player.gotoAndStop("upIdleMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootMG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootMG");
}
}
}
}
}
if (weapon == 3) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownFLAME");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRight) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingUp) {
player.gotoAndStop("jumpUpFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftFLAME");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightFLAME");
}
if (facingRight) {
player.gotoAndStop("rightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightFLAME");
}
if (facingUp) {
player.gotoAndStop("upFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootFLAME");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootFLAME");
}
}
}
}
}
if (jumpingOver) {
jumpingOverTimer++;
if (jumpingOverTimer == 5) {
jumpingOver = false;
jumpingOverTimer = 0;
}
}
if (!Key.isDown(38)) {
moving = false;
}
if (!Key.isDown(40)) {
moving = false;
}
if (!Key.isDown(37)) {
moving = false;
}
if (!Key.isDown(39)) {
moving = false;
}
myRadian = Math.atan2(_root._ymouse - player._y, _root._xmouse - player._x);
myDegree = Math.round((myRadian * 180) / Math.PI) - 90;
hitMarker._rotation = myDegree;
if ((!beingCarried) && (!frozen)) {
if (Key.isDown(87) or Key.isDown(38)) {
moving = true;
player._y = player._y - playerSpeed;
}
if (Key.isDown(83) or Key.isDown(40)) {
moving = true;
player._y = player._y + playerSpeed;
}
if (Key.isDown(68) or Key.isDown(39)) {
moving = true;
player._x = player._x + playerSpeed;
}
if (Key.isDown(65) or Key.isDown(37)) {
moving = true;
player._x = player._x - playerSpeed;
}
}
if ((hitMarker._rotation < 20) && (hitMarker._rotation > -20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
}
if ((hitMarker._rotation < -140) && (hitMarker._rotation > -180)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = true;
facingDown = false;
}
if ((hitMarker._rotation < -60) && (hitMarker._rotation > -100)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = true;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 100) && (hitMarker._rotation > 60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = true;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 140) && (hitMarker._rotation > 100)) {
facingLeftUp = true;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -100) && (hitMarker._rotation > -140)) {
facingLeftUp = false;
facingRightUp = true;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 60) && (hitMarker._rotation > 20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = true;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -20) && (hitMarker._rotation > -60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = true;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if (scoreMark > score) {
score = score + 10;
}
if (stamina > 100) {
stamina = 100;
}
if (stamina < 0) {
stamina = 0;
}
if (beingCarried && (!frozen)) {
stamina = stamina - 0.3;
powerBar2.gotoAndStop("down");
}
if (inBase && (!frozen)) {
stamina = stamina + 0.1;
powerBar2.gotoAndStop("up");
}
if (!lost) {
if (stamina > 75) {
viva = 5;
}
if (stamina < 50) {
viva = 2.5;
}
if (stamina < 25) {
viva = 1;
}
}
if (score == yourRank) {
rankNum++;
randomnumber++;
if (rankNum == 1) {
blee = _root.attachMovie("rank1", "rank1" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 2) {
blee = _root.attachMovie("rank2", "rank2" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 3) {
blee = _root.attachMovie("rank3", "rank3" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 4) {
blee = _root.attachMovie("rank4", "rank4" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 5) {
blee = _root.attachMovie("rank5", "rank5" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 6) {
blee = _root.attachMovie("rank6", "rank6" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 7) {
blee = _root.attachMovie("rank7", "rank7" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 8) {
blee = _root.attachMovie("rank8", "rank8" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 9) {
blee = _root.attachMovie("rank9", "rank9" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 10) {
blee = _root.attachMovie("rank10", "rank10" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 11) {
blee = _root.attachMovie("rank11", "rank11" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
yourRank = yourRank + 3000;
}
playersHealth.playersClub._xscale = health;
powerBar._yscale = overHeat;
powerBar2._yscale = stamina;
score_mc2.score.text = score;
texture.swapDepths(_root.getNextHighestDepth());
crosshair.swapDepths(_root.getNextHighestDepth());
score_mc2.swapDepths(_root.getNextHighestDepth());
powerBar.swapDepths(_root.getNextHighestDepth());
boarder.swapDepths(_root.getNextHighestDepth());
powerBar2.swapDepths(_root.getNextHighestDepth());
boarder2.swapDepths(_root.getNextHighestDepth());
playersHealth.swapDepths(_root.getNextHighestDepth());
splosh.swapDepths(_root.getNextHighestDepth());
bij.swapDepths(_root.getNextHighestDepth());
tr.swapDepths(_root.getNextHighestDepth());
trans.swapDepths(_root.getNextHighestDepth());
blee.swapDepths(_root.getNextHighestDepth());
ps.swapDepths(_root.getNextHighestDepth());
bij._alpha = bij._alpha - 8;
tr._alpha = tr._alpha - 30;
if (bij._alpha < 0) {
bij._alpha = 0;
}
if (tr._alpha < 0) {
tr._alpha = 0;
}
playersHealth._alpha = playersHealth._alpha - 30;
if (playersHealth._alpha < 0) {
playersHealth._alpha = 0;
}
crosshair._x = _xmouse;
crosshair._y = _ymouse;
if (!Key.isDown(80)) {
frozenOnce = 0;
}
if (Key.isDown(80)) {
if (frozenOnce == 0) {
frozenOnce = 1;
fnum++;
}
if (fnum > 1) {
fnum = 0;
}
}
if (fnum == 1) {
if (showPause == 0) {
showPause = 1;
_root.attachMovie("ps", "ps", _root.getNextHighestDepth());
}
frozen = true;
shooting = false;
} else {
showPause = 0;
ps.removeMovieClip();
addenemy();
objectActions();
enemyActions();
frozen = false;
}
};
frameRateCounter = setInterval(countFrames, 1000);
Frame 11
function gameOver() {
if ((player._y < -70) or (player._y > 550)) {
lost = true;
viva = 0;
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
gotoAndStop ("gameOver");
}
}
}
function removeall() {
bij.removeMovieClip();
tr.removeMovieClip();
score_mc3.removeMovieClip();
powerBar.removeMovieClip();
boarder.removeMovieClip();
powerBar2.removeMovieClip();
boarder2.removeMovieClip();
playersHealth.removeMovieClip();
hitMarker.removeMovieClip();
player.removeMovieClip();
crosshair.removeMovieClip();
i = pts.length - 1;
while (i >= 0) {
pts[i].removeMovieClip();
pts.splice(i, 1);
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i].removeMovieClip();
bgObjects.splice(i, 1);
i--;
}
i = depth.length - 1;
while (i >= 0) {
depth[i].removeMovieClip();
depth.splice(i, 1);
i--;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
i--;
}
i = shot.length - 1;
while (i >= 0) {
shot[i].removeMovieClip();
shot.splice(i, 1);
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i].removeMovieClip();
objects.splice(i, 1);
i--;
}
i = objectsHealth.length - 1;
while (i >= 0) {
objectsHealth[i].removeMovieClip();
objectsHealth.splice(i, 1);
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i].removeMovieClip();
enemy.splice(i, 1);
i--;
}
i = type.length - 1;
while (i >= 0) {
type[i].removeMovieClip();
type.splice(i, 1);
i--;
}
i = hittingPlayer.length - 1;
while (i >= 0) {
hittingPlayer[i].removeMovieClip();
hittingPlayer.splice(i, 1);
i--;
}
i = enemyAttacking.length - 1;
while (i >= 0) {
enemyAttacking[i].removeMovieClip();
enemyAttacking.splice(i, 1);
i--;
}
i = enemyAttackingTimer.length - 1;
while (i >= 0) {
enemyAttackingTimer[i].removeMovieClip();
enemyAttackingTimer.splice(i, 1);
i--;
}
i = damagedTimer.length - 1;
while (i >= 0) {
damagedTimer[i].removeMovieClip();
damagedTimer.splice(i, 1);
i--;
}
i = hit.length - 1;
while (i >= 0) {
hit[i].removeMovieClip();
hit.splice(i, 1);
i--;
}
i = carrying.length - 1;
while (i >= 0) {
carrying[i].removeMovieClip();
carrying.splice(i, 1);
i--;
}
i = portTimer.length - 1;
while (i >= 0) {
portTimer[i].removeMovieClip();
portTimer.splice(i, 1);
i--;
}
i = where.length - 1;
while (i >= 0) {
where[i].removeMovieClip();
where.splice(i, 1);
i--;
}
i = moveAbout.length - 1;
while (i >= 0) {
moveAbout[i].removeMovieClip();
moveAbout.splice(i, 1);
i--;
}
i = enemyHealth.length - 1;
while (i >= 0) {
enemyHealth[i].removeMovieClip();
enemyHealth.splice(i, 1);
i--;
}
i = efacingLeftUp.length - 1;
while (i >= 0) {
efacingLeftUp[i].removeMovieClip();
efacingLeftUp.splice(i, 1);
i--;
}
i = efacingRightUp.length - 1;
while (i >= 0) {
efacingRightUp[i].removeMovieClip();
efacingRightUp.splice(i, 1);
i--;
}
i = efacingLeftDown.length - 1;
while (i >= 0) {
efacingLeftDown[i].removeMovieClip();
efacingLeftDown.splice(i, 1);
i--;
}
i = efacingRightDown.length - 1;
while (i >= 0) {
efacingRightDown[i].removeMovieClip();
efacingRightDown.splice(i, 1);
i--;
}
i = efacingLeft.length - 1;
while (i >= 0) {
efacingLeft[i].removeMovieClip();
efacingLeft.splice(i, 1);
i--;
}
i = efacingRight.length - 1;
while (i >= 0) {
efacingRight[i].removeMovieClip();
efacingRight.splice(i, 1);
i--;
}
i = efacingUp.length - 1;
while (i >= 0) {
efacingUp[i].removeMovieClip();
efacingUp.splice(i, 1);
i--;
}
i = efacingDown.length - 1;
while (i >= 0) {
efacingDown[i].removeMovieClip();
efacingDown.splice(i, 1);
i--;
}
i = directionAngle.length - 1;
while (i >= 0) {
directionAngle[i].removeMovieClip();
directionAngle.splice(i, 1);
i--;
}
i = myRadians.length - 1;
while (i >= 0) {
myRadians[i].removeMovieClip();
myRadians.splice(i, 1);
i--;
}
i = myDegrees.length - 1;
while (i >= 0) {
myDegrees[i].removeMovieClip();
myDegrees.splice(i, 1);
i--;
}
i = goingLeft.length - 1;
while (i >= 0) {
goingLeft[i].removeMovieClip();
goingLeft.splice(i, 1);
i--;
}
i = goingRight.length - 1;
while (i >= 0) {
goingRight[i].removeMovieClip();
goingRight.splice(i, 1);
i--;
}
i = goingUp.length - 1;
while (i >= 0) {
goingUp[i].removeMovieClip();
goingUp.splice(i, 1);
i--;
}
i = goingDown.length - 1;
while (i >= 0) {
goingDown[i].removeMovieClip();
goingDown.splice(i, 1);
i--;
}
i = pushSpeed.length - 1;
while (i >= 0) {
pushSpeed[i].removeMovieClip();
pushSpeed.splice(i, 1);
i--;
}
i = enemySpeed.length - 1;
while (i >= 0) {
enemySpeed[i].removeMovieClip();
enemySpeed.splice(i, 1);
i--;
}
i = chillTime.length - 1;
while (i >= 0) {
chillTime[i].removeMovieClip();
chillTime.splice(i, 1);
i--;
}
}
function addenemy() {
if (((numberReleased == 0) && (enemyNumber == 0)) && (level == 6)) {
if (youWin == 30) {
endSplashSound.start();
_root.attachMovie("victory", "victory", _root.getNextHighestDepth());
}
youWin++;
if (youWin > 70) {
if (toGo == 0) {
_root.attachMovie("trans", "trans", _root.getNextHighestDepth());
}
toGo++;
if (toGo == 17) {
removeall();
stopAllSounds();
nextFrame();
}
}
}
if (((numberReleased == 0) && (enemyNumber == 0)) && (level < 6)) {
levelEnded--;
if (levelEnded < 0) {
level++;
amountOfBlood = 0;
numberReleased = 25;
endSplashSound.start();
_root.attachMovie("levelUp", "levelUp", _root.getNextHighestDepth());
i = depth.length - 1;
while (i >= 0) {
depth.splice(i, 1);
i--;
}
depth.push(player, tree, tree2, tree3, wbox1, wbox2, wbox3, wbox4, wbox5, wbox6, wbox7, wbox8, wbox9, wbox10, wbox11, wbox12, wbox13, wbox14, wbox15, wbox16, wbox17, wbox18);
levelEnded = 50;
}
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._alpha = misc_mc[i]._alpha - 15;
if (misc_mc[i]._alpha < 0) {
misc_mc[i].removeMovieClip();
misc_mc.splice(i, 1);
}
i--;
}
}
if (level < 7) {
if (numberReleased > 0) {
canAttach = true;
} else {
canAttach = false;
}
}
if ((releaseenemy + 700) < getTimer()) {
if (canAttach) {
if (level == 1) {
choice = 0;
}
if (level == 2) {
choice = Math.round(Math.random() * 3) + 2;
}
if (level > 2) {
choice = Math.round(Math.random() * 5) + 0;
}
difBears = Math.round(Math.random() * 2) + 0;
numberReleased--;
enemyNumber++;
releaseenemy = getTimer();
dir = ["left", "right", "up", "down"];
randNum = random(4);
setDir = dir[randNum];
switch (setDir) {
case "left" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(true);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "right" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_y:Math.round(Math.random() * 480) + 0, _x:660});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(true);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "up" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 1) {
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:-20});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(false);
efacingDown.push(true);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
break;
case "down" :
if ((((choice == 0) or (choice == 3)) or (choice == 4)) or (choice == 5)) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemy", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyAlt", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyOther", "enemy" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(0);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(25);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice == 2) {
randomnumber++;
if (difBears == 0) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
if (difBears == 1) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
if (difBears == 2) {
badguy = _root.attachMovie("enemyTwo", "enemyTwo" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
}
depth.push(badguy);
enemy.push(badguy);
type.push(1);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(42);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(20);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
if (choice != 1) {
break;
}
randomnumber++;
badguy = _root.attachMovie("enemyThree", "enemyThree" + randomnumber, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 440) + 200, _y:500});
depth.push(badguy);
enemy.push(badguy);
type.push(2);
enemyAttacking.push(0);
enemyAttackingTimer.push(0);
damagedTimer.push(0);
hit.push(0);
portTimer.push(0);
where.push(0);
moveAbout.push(0);
enemyHealth.push(8);
efacingLeftUp.push(false);
efacingRightUp.push(false);
efacingLeftDown.push(false);
efacingRightDown.push(false);
efacingLeft.push(false);
efacingRight.push(false);
efacingUp.push(true);
efacingDown.push(false);
directionAngle.push(0);
myRadians.push(0);
myDegrees.push(0);
goingLeft.push(false);
goingRight.push(false);
goingUp.push(false);
goingDown.push(false);
pushSpeed.push(5);
enemySpeed.push(13);
hittingPlayer.push(0);
carrying.push(false);
chillTime.push(0);
}
}
}
}
function pointsActions() {
i = pts.length - 1;
while (i >= 0) {
endX = _root.score_mc3._x;
endY = _root.score_mc3._y;
pts[i]._x = pts[i]._x + ((endX - pts[i]._x) / 15);
pts[i]._y = pts[i]._y + ((endY - pts[i]._y) / 15);
if (pts[i].hitTest(score_mc3)) {
pts[i].removeMovieClip();
pts.splice(i, 1);
scoreMark = scoreMark + 100;
}
i--;
}
}
function enemyDeath() {
i = enemy.length - 1;
while (i >= 0) {
if ((enemyHealth[i] < 1) && (!carrying[i])) {
ouch_sound.start();
maybeBlood = Math.round(Math.random() * 4) + 0;
if (maybeBlood == 0) {
randomnumber++;
splosh = _root.attachMovie("splatter", "splatter" + randomnumber, _root.getNextHighestDepth());
}
chanceToDrop = Math.round(Math.random() * 2) + 0;
if (chanceToDrop == 0) {
randomnumber++;
item_m = _root.attachMovie("item", "item" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(item_m);
depth.push(item_m);
}
randomnumber++;
points = _root.attachMovie("scorePlus", "scorePlus" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
pts.push(points);
enemyNumber--;
if (amountOfBlood < 30) {
randomnumber++;
puddle_m = _root.attachMovie("puddle", "puddle" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(puddle_m);
depth.push(puddle_m);
}
amountOfBlood++;
randomnumber++;
blood_splash = _root.attachMovie("blood_mc", "blood_mc" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_splash._rotation = enemy[i]._rotation;
misc_mc.push(blood_splash);
enemy[i].removeMovieClip();
enemy.splice(i, 1);
type.splice(i, 1);
enemyAttacking.splice(i, 1);
enemyAttackingTimer.splice(i, 1);
damagedTimer.splice(i, 1);
hit.splice(i, 1);
portTimer.splice(i, 1);
where.splice(i, 1);
moveAbout.splice(i, 1);
enemyHealth.splice(i, 1);
efacingLeftUp.splice(i, 1);
efacingRightUp.splice(i, 1);
efacingLeftDown.splice(i, 1);
efacingRightDown.splice(i, 1);
efacingLeft.splice(i, 1);
efacingRight.splice(i, 1);
efacingUp.splice(i, 1);
efacingDown.splice(i, 1);
directionAngle.splice(i, 1);
myRadians.splice(i, 1);
myDegrees.splice(i, 1);
goingLeft.splice(i, 1);
goingRight.splice(i, 1);
goingUp.splice(i, 1);
goingDown.splice(i, 1);
pushSpeed.splice(i, 1);
enemySpeed.splice(i, 1);
hittingPlayer.splice(i, 1);
carrying.splice(i, 1);
chillTime.splice(i, 1);
}
i--;
}
}
function depthActions() {
i = depth.length - 1;
while (i >= 0) {
depth[i].idiot_depth = Math.floor((depth[i]._y * 480) + depth[i]._x);
depth[i].swapDepths(depth[i].idiot_depth);
i--;
}
}
function enemyActions() {
i = enemy.length - 1;
while (i >= 0) {
j = shot.length - 1;
while (j >= 0) {
if (enemy[i].hitTest(shot[j]) && (!carrying[i])) {
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - thatPower;
shot[j].removeMovieClip();
shot.splice(j, 1);
}
j--;
}
if (enemy[i].hitTest(cbomb)) {
enemyHealth[i] = 0;
}
if (!enemy[i].hitTest(hitMarker)) {
hittingPlayer[i] = 0;
}
if (carrying[i]) {
playersHealth._alpha = 100;
if (safe) {
chillTime[i] = 0;
carrying[i] = false;
}
if (enemy[i].hitTest(ebase)) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
}
if (!enemy[i].hitTest(ebase)) {
if (enemy[i]._x < 340) {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("downIdleHeld");
} else {
enemy[i].gotoAndStop("downHeld");
enemy[i]._y = enemy[i]._y + 2;
}
} else {
chillTime[i]++;
player.gotoAndStop("held");
player._y = enemy[i]._y;
if ((chillTime[i] > 0) && (chillTime[i] < 40)) {
enemy[i].gotoAndStop("upIdleHeld");
} else {
enemy[i].gotoAndStop("upHeld");
enemy[i]._y = enemy[i]._y - 2;
}
}
}
}
if ((enemy[i].hitTest(hitMarker) && (!carrying[i])) && (!beingCarried)) {
if (type[i] == 2) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:100, bb:0};
myColor.setTransform(myColorTransform);
stuck = true;
randomnumber++;
explosion_mc = _root.attachMovie("explosion", "explosion" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
misc_mc.push(explosion_mc);
depth.push(explosion_mc);
enemyHealth[i] = 0;
}
if ((type[i] == 0) or (type[i] == 1)) {
shooting = false;
health = -1;
if (((health < 0) && (!safe)) && (!beingCarried)) {
player._alpha = 0;
carrying[i] = true;
beingCarried = true;
health = 0;
}
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightAttack");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightAttack");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftAttack");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftAttack");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftAttack");
}
hittingPlayer[i] = 1;
}
if (((enemyAttacking[i] == 0) && (hittingPlayer[i] == 0)) && (!carrying[i])) {
if (hit[i] == 1) {
damagedTimer[i]++;
if ((damagedTimer[i] > 0) && (damagedTimer[i] < 3)) {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightHit");
enemy[i]._x = enemy[i]._x - pushSpeed[i];
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x - (pushSpeed[i] / 2);
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftHit");
enemy[i]._y = enemy[i]._y + pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftHit");
enemy[i]._x = enemy[i]._x + pushSpeed[i];
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftHit");
enemy[i]._y = enemy[i]._y - pushSpeed[i];
enemy[i]._x = enemy[i]._x + (pushSpeed[i] / 2);
}
}
if (damagedTimer[i] == 8) {
hit[i] = 0;
damagedTimer[i] = 0;
}
}
if (hit[i] == 0) {
portTimer[i]++;
if (portTimer[i] > 32) {
where[i] = Math.round(Math.random() * 2) + 0;
moveAbout[i] = Math.round(Math.random() * 1) + 0;
portTimer[i] = 0;
}
if ((where[i] == 0) or (where[i] == 1)) {
myRadians[i] = Math.atan2(player._y - enemy[i]._y, player._x - enemy[i]._x);
myDegrees[i] = Math.round((myRadians[i] * 180) / Math.PI) - 90;
directionAngle[i] = myDegrees[i];
if ((directionAngle[i] < 20) && (directionAngle[i] > -20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = true;
}
if ((directionAngle[i] < -140) && (directionAngle[i] > -180)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = true;
efacingDown[i] = false;
}
if ((directionAngle[i] < -60) && (directionAngle[i] > -100)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = true;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 100) && (directionAngle[i] > 60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = true;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 140) && (directionAngle[i] > 100)) {
efacingLeftUp[i] = true;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -100) && (directionAngle[i] > -140)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = true;
efacingLeftDown[i] = false;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < 60) && (directionAngle[i] > 20)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = true;
efacingRightDown[i] = false;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
if ((directionAngle[i] < -20) && (directionAngle[i] > -60)) {
efacingLeftUp[i] = false;
efacingRightUp[i] = false;
efacingLeftDown[i] = false;
efacingRightDown[i] = true;
efacingLeft[i] = false;
efacingRight[i] = false;
efacingUp[i] = false;
efacingDown[i] = false;
}
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - (((endX - enemy[i]._x) / enemySpeed[i]) * 1.5);
enemy[i]._y = enemy[i]._y - (((endY - enemy[i]._y) / enemySpeed[i]) * 1.5);
}
}
j--;
}
if (efacingDown[i]) {
enemy[i].gotoAndStop("down");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRight");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("right");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRight");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("up");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeft");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("left");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeft");
}
if ((((!enemy[i].bFeet.hitTest(bottom)) && (!enemy[i].bFeet.hitTest(top))) && (!enemy[i].bFeet.hitTest(left))) && (!enemy[i].bFeet.hitTest(right))) {
goingLeft[i] = false;
goingRight[i] = false;
goingUp[i] = false;
goingDown[i] = false;
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (enemy[i].bFeet.hitTest(top) or enemy[i].bFeet.hitTest(bottom)) {
if (goingRight[i]) {
enemy[i]._x = enemy[i]._x + 2.5;
}
if (goingLeft[i]) {
enemy[i]._x = enemy[i]._x - 2.5;
}
}
if (enemy[i].bFeet.hitTest(left) or enemy[i].bFeet.hitTest(right)) {
if (goingUp[i]) {
enemy[i]._y = enemy[i]._y - 2.5;
}
if (goingDown[i]) {
enemy[i]._y = enemy[i]._y + 2.5;
}
}
if (moveAbout[i] == 0) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
if (moveAbout[i] == 1) {
if (inBase) {
endX = _root.hitMarker._x;
endY = _root.hitMarker._y;
enemy[i]._x = enemy[i]._x + ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y + ((endY - enemy[i]._y) / enemySpeed[i]);
}
if (((((!inBase) && (!goingRight[i])) && (!goingLeft[i])) && (!goingUp[i])) && (!goingDown[i])) {
if (enemy[i].bFeet.hitTest(top)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
if (enemy[i].bFeet.hitTest(left)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(right)) {
if (player._y > enemy[i]._y) {
goingDown[i] = true;
} else {
goingUp[i] = true;
}
}
if (enemy[i].bFeet.hitTest(bottom)) {
if (player._x > enemy[i]._x) {
goingRight[i] = true;
} else {
goingLeft[i] = true;
}
}
}
}
} else {
if (efacingDown[i]) {
enemy[i].gotoAndStop("downIdle");
}
if (efacingRightDown[i]) {
enemy[i].gotoAndStop("downRightIdle");
}
if (efacingRight[i]) {
enemy[i].gotoAndStop("rightIdle");
}
if (efacingRightUp[i]) {
enemy[i].gotoAndStop("upRightIdle");
}
if (efacingUp[i]) {
enemy[i].gotoAndStop("upIdle");
}
if (efacingLeftUp[i]) {
enemy[i].gotoAndStop("upLeftIdle");
}
if (efacingLeft[i]) {
enemy[i].gotoAndStop("leftIdle");
}
if (efacingLeftDown[i]) {
enemy[i].gotoAndStop("downLeftIdle");
}
}
}
}
i--;
}
}
function shotActions() {
i = shot.length - 1;
while (i >= 0) {
if (weapon == 3) {
if (shot[i].hitTest(player.lamb)) {
shot[i]._alpha = 0;
} else {
shot[i]._alpha = 100;
}
shot[i]._xscale = shot[i]._xscale + 25;
shot[i]._yscale = shot[i]._yscale + 25;
if (shot[i]._xscale > 500) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
}
if ((((shot[i]._x > 640) or (shot[i]._x < 0)) or (shot[i]._y > 480)) or (shot[i]._y < 0)) {
shot[i].removeMovieClip();
shot.splice(i, 1);
}
i--;
}
}
function noOverLap() {
i = enemy.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (!(enemy[i] === enemy[j])) {
if (enemy[i].hitTest(enemy[j])) {
endX = _root.enemy[j]._x;
endY = _root.enemy[j]._y;
enemy[i]._x = enemy[i]._x - ((endX - enemy[i]._x) / enemySpeed[i]);
enemy[i]._y = enemy[i]._y - ((endY - enemy[i]._y) / enemySpeed[i]);
}
}
j--;
}
i--;
}
}
function objectActions() {
i = objects.length - 1;
while (i >= 0) {
objects[i].repair._alpha = objects[i].repair._alpha - 3;
objects[i].bar._xscale = objectsHealth[i];
objects[i].bar._alpha = objects[i].bar._alpha - 3;
objects[i].barb._alpha = objects[i].barb._alpha - 3;
if (objects[i].barb._alpha < 0) {
objects[i].bar._alpha = 0;
objects[i].barb._alpha = 0;
}
j = enemy.length - 1;
while (j >= 0) {
if (hittingPlayer[j] == 0) {
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (enemy[j].bFeet.hitTest(ebase))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (!inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.8;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 1.2;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
if (enemy[j].bFeet.hitTest(objects[i].blocker) && (!enemy[j].bFeet.hitTest(ebase))) {
if (objectsHealth[i] < 50) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] < 1) {
objects[i].gotoAndStop("destroyed");
objectsHealth[i] = 0;
objects[i].barb._alpha = 0;
enemyAttacking[j] = 0;
}
if (objectsHealth[i] > 0) {
if (!inBase) {
enemyAttacking[j] = 0;
if (enemy[j]._x < objects[i]._x) {
enemy[j]._x = enemy[j]._x - 10;
}
if (enemy[j]._x > objects[i]._x) {
enemy[j]._x = enemy[j]._x + 10;
}
if (enemy[j]._y < objects[i]._y) {
enemy[j]._y = enemy[j]._y - 10;
}
if (enemy[j]._y > objects[i]._y) {
enemy[j]._y = enemy[j]._y + 10;
}
}
if (inBase) {
enemyAttacking[j] = 1;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
if ((type[j] == 0) or (type[j] == 2)) {
objectsHealth[i] = objectsHealth[i] - 0.8;
}
if (type[j] == 1) {
objectsHealth[i] = objectsHealth[i] - 1.2;
}
if (efacingDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRightDown[j]) {
enemy[j].gotoAndStop("downRightAttack");
}
if (efacingRight[j]) {
enemy[j].gotoAndStop("rightAttack");
}
if (efacingRightUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingUp[j]) {
enemy[j].gotoAndStop("upRightAttack");
}
if (efacingLeftUp[j]) {
enemy[j].gotoAndStop("upLeftAttack");
}
if (efacingLeft[j]) {
enemy[j].gotoAndStop("leftAttack");
}
if (efacingLeftDown[j]) {
enemy[j].gotoAndStop("downLeftAttack");
}
}
}
}
}
j--;
}
if (hitMarker.hitTest(objects[i].area)) {
if (objectsHealth[i] < 100) {
if ((!inBase) && (!beingCarried)) {
tr._alpha = 80;
}
if (Key.isDown(32) && (!inBase)) {
cantShoot = true;
objects[i].bar._alpha = 100;
objects[i].barb._alpha = 100;
objects[i].repair._alpha = 100;
objectsHealth[i] = objectsHealth[i] + 1.5;
if (objectsHealth[i] > 0) {
objects[i].gotoAndStop("mash");
}
if (objectsHealth[i] > 50) {
objects[i].gotoAndStop("normal");
}
if (objectsHealth[i] > 100) {
objectsHealth[i] = 100;
}
}
}
}
if (player.feet.hitTest(objects[i].blocker)) {
if (objectsHealth[i] > 0) {
bij._alpha = 80;
if (moving) {
jumpingOver = true;
shooting = false;
}
if (player._x < objects[i]._x) {
if (!jumpingOver) {
player._x = player._x - (playerSpeed * 1.5);
}
}
if (player._x > objects[i]._x) {
if (!jumpingOver) {
player._x = player._x + (playerSpeed * 1.5);
}
}
if (player._y < objects[i]._y) {
if (!jumpingOver) {
player._y = player._y - (playerSpeed * 1.5);
}
}
if (player._y > objects[i]._y) {
if (!jumpingOver) {
player._y = player._y + (playerSpeed * 1.5);
}
}
}
}
i--;
}
}
function bgObjectActions() {
i = bgObjects.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(bgObjects[i].bottom_mc)) {
if (enemy[j]._x < bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > bgObjects[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > bgObjects[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(bgObjects[i].bottom_mc)) {
if (player._x < bgObjects[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > bgObjects[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < bgObjects[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > bgObjects[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function miscObjectActions() {
i = misc_mc.length - 1;
while (i >= 0) {
j = enemy.length - 1;
while (j >= 0) {
if (enemy[j].bFeet.hitTest(misc_mc[i].bottom_mc)) {
if (enemy[j]._x < misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x - 5;
}
if (enemy[j]._x > misc_mc[i]._x) {
enemy[j]._x = enemy[j]._x + 5;
}
if (enemy[j]._y < misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y - 5;
}
if (enemy[j]._y > misc_mc[i]._y) {
enemy[j]._y = enemy[j]._y + 5;
}
}
j--;
}
if (player.feet.hitTest(misc_mc[i].bob)) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
whatUpgrade = Math.round(Math.random() * 4) + 0;
if (whatUpgrade == 0) {
weapon = 3;
_root.attachMovie("restore", "restore", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 1) {
weapon = 1;
_root.attachMovie("shotgungot", "shotgungot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 2) {
weapon = 2;
_root.attachMovie("uzigot", "uzigot", _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
}
if (whatUpgrade == 3) {
cbomb.removeMovieClip();
_root.attachMovie("cbomb", "cbomb", _root.getNextHighestDepth());
}
if (whatUpgrade == 4) {
randomnumber++;
turrent_mc = _root.attachMovie("turrent", "turrent" + randomnumber, _root.getNextHighestDepth(), {_x:misc_mc[i]._x, _y:misc_mc[i]._y});
misc_mc.push(turrent_mc);
depth.push(turrent_mc);
}
pickUpSound.start();
misc_mc[i].removeMovieClip();
}
if (player.feet.hitTest(misc_mc[i].bottom_mc)) {
if (player._x < misc_mc[i]._x) {
player._x = player._x - playerSpeed;
}
if (player._x > misc_mc[i]._x) {
player._x = player._x + playerSpeed;
}
if (player._y < misc_mc[i]._y) {
player._y = player._y - playerSpeed;
}
if (player._y > misc_mc[i]._y) {
player._y = player._y + playerSpeed;
}
}
i--;
}
}
function countFrames() {
_root.frameCount = 0;
}
stop();
Mouse.hide();
ouch_sound = new Sound();
ouch_sound.attachSound("ouch");
flamwthrowa_sound = new Sound();
flamwthrowa_sound.attachSound("flamwthrowa");
uzi_sound = new Sound();
uzi_sound.attachSound("uzi");
shotgun_sound = new Sound();
shotgun_sound.attachSound("shotGun");
endSplashSound = new Sound();
endSplashSound.attachSound("endSplash");
pickUpSound = new Sound();
pickUpSound.attachSound("Gun_Reload");
shot_sound = new Sound();
shot_sound.attachSound("shot");
_root.attachMovie("playersHealth", "playersHealth", _root.getNextHighestDepth(), {_x:290, _y:440});
_root.attachMovie("hitMarker", "hitMarker", _root.getNextHighestDepth());
hitMarker._alpha = 0;
_root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:320, _y:250});
_root.attachMovie("crosshair", "crosshair", _root.getNextHighestDepth());
playerSpeed = 12;
floorSpeed = 7;
toGo = 0;
lost = false;
tfire = 0;
youWin = 0;
health = 0;
difBears = 0;
thatPower = 0;
overHeat = 0;
stuck = false;
stuckTimer = 0;
beingCarried = false;
level = 0;
maybeBlood = 0;
numberReleased = 15;
weapon = 0;
inBase = true;
scoreMark = score;
shotTimer = 0;
reloadTime = 500;
randomnumber = 0;
dropSpeed = 0;
bulletSpeed = 20;
whatUpgrade = 0;
chanceToDrop = 0;
releaseenemy = 0;
enemyNumber = 0;
choice = 0;
levelEnded = 50;
safe = false;
flashing = 0;
safeTimer = 0;
stamina = 100;
viva = 5;
jumpingOver = false;
jumpingOverTimer = 0;
notOverHeated = true;
canAttach = true;
leftFree = false;
rightFree = false;
topFree = false;
bottomFree = false;
shooting = false;
moving = false;
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
amountOfBlood = 0;
frozen = false;
fnum = 0;
frozenOnce = 0;
showPause = 0;
var pts = new Array();
var bgObjects = new Array();
bgObjects.push(tree, tree2, tree3, top, left, right, bottom);
var depth = new Array();
depth.push(player, tree, tree2, tree3, wbox1, wbox2, wbox3, wbox4, wbox5, wbox6, wbox7, wbox8, wbox9, wbox10, wbox11, wbox12, wbox13, wbox14, wbox15, wbox16, wbox17, wbox18);
var misc_mc = new Array();
var shot = new Array();
var objects = new Array();
objects.push(wbox1, wbox2, wbox3, wbox4, wbox5, wbox6, wbox7, wbox8, wbox9, wbox10, wbox11, wbox12, wbox13, wbox14, wbox15, wbox16, wbox17, wbox18);
var objectsHealth = new Array();
objectsHealth.push(100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
var enemy = new Array();
var type = new Array();
var hittingPlayer = new Array();
var enemyAttacking = new Array();
var enemyAttackingTimer = new Array();
var damagedTimer = new Array();
var hit = new Array();
var carrying = new Array();
var portTimer = new Array();
var where = new Array();
var moveAbout = new Array();
var enemyHealth = new Array();
var efacingLeftUp = new Array();
var efacingRightUp = new Array();
var efacingLeftDown = new Array();
var efacingRightDown = new Array();
var efacingLeft = new Array();
var efacingRight = new Array();
var efacingUp = new Array();
var efacingDown = new Array();
var directionAngle = new Array();
var myRadians = new Array();
var myDegrees = new Array();
var goingLeft = new Array();
var goingRight = new Array();
var goingUp = new Array();
var goingDown = new Array();
var pushSpeed = new Array();
var enemySpeed = new Array();
var chillTime = new Array();
onMouseUp = function () {
shooting = false;
};
onMouseDown = function () {
if (beingCarried && (!frozen)) {
health = health + viva;
}
if (((notOverHeated && (!jumpingOver)) && (!beingCarried)) && (!frozen)) {
shooting = true;
}
};
player.onEnterFrame = function () {
turrent_mc.onEnterFrame = function () {
i = enemy.length - 1;
while (i >= 0) {
if (this.tclip.hitTest(enemy[i]) && (!frozen)) {
if (tfire > 8) {
tfire = 0;
}
if (tfire == 0) {
this.gotoAndStop("shoot");
uzi_sound.start();
hit[i] = 1;
randomnumber++;
blood_hit = _root.attachMovie("blood", "blood" + randomnumber, _root.getNextHighestDepth(), {_x:enemy[i]._x, _y:enemy[i]._y});
blood_hit._rotation = enemy[i]._rotation;
enemyHealth[i] = enemyHealth[i] - 4;
}
tfire++;
}
i--;
}
};
if (health > 100) {
safe = true;
player._alpha = 100;
beingCarried = false;
health = 100;
}
if (safe && (!frozen)) {
flashing++;
safeTimer++;
if ((flashing > 0) && (flashing < 5)) {
player._alpha = player._alpha - 25;
}
if ((flashing > 5) && (flashing < 10)) {
player._alpha = player._alpha + 25;
}
if (flashing == 10) {
flashing = 0;
}
if (safeTimer == 75) {
flashing = 0;
player._alpha = 100;
safe = false;
safeTimer = 0;
}
}
if ((!notOverHeated) && (!frozen)) {
overHeat = overHeat - dropSpeed;
shooting = false;
}
if (player.hitTest(ebase)) {
inBase = true;
} else if (!player.hitTest(ebase2)) {
inBase = false;
}
if (player.hitTest(ebase2)) {
inBase = true;
} else if (!player.hitTest(ebase)) {
inBase = false;
}
if ((!shooting) && (!frozen)) {
if (notOverHeated) {
overHeat = overHeat - dropSpeed;
dropSpeed = 1;
}
}
if (inBase && (!frozen)) {
if (!notOverHeated) {
overHeat = overHeat - (dropSpeed * 2.5);
}
}
gameOver();
bgObjectActions();
pointsActions();
miscObjectActions();
depthActions();
enemyDeath();
shotActions();
if (stuck && (!frozen)) {
playerSpeed = 6;
floorSpeed = 3.5;
stuckTimer++;
if (stuckTimer == 80) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
playerSpeed = 12;
floorSpeed = 7;
stuckTimer = 0;
stuck = false;
}
}
if (overHeat < 0) {
overHeat = 0;
notOverHeated = true;
boarder.gotoAndStop("normal");
powerBar.gotoAndStop("okay");
}
if (shooting) {
if ((shotTimer + reloadTime) < getTimer()) {
shotTimer = getTimer();
overHeat = overHeat + 3;
if (overHeat > 100) {
dropSpeed = 0.5;
overHeat = 100;
notOverHeated = false;
boarder.gotoAndStop("hot");
powerBar.gotoAndStop("hot");
}
if (weapon == 0) {
thatPower = 4;
shot_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 1) {
thatPower = 8;
reloadTime = 1000;
shotgun_sound.start();
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 2) {
thatPower = 4;
uzi_sound.start();
reloadTime = 80;
randomnumber++;
bullet_mc = _root.attachMovie("bullet", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
if (weapon == 3) {
thatPower = 4;
flamwthrowa_sound.start();
reloadTime = 10;
randomnumber++;
bullet_mc = _root.attachMovie("flames", "bullet" + randomnumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 30});
shot.push(bullet_mc);
bullet_mc._alpha = 0;
}
angle = hitMarker._rotation - 90;
bullet_mc.dirx = Math.cos((angle * Math.PI) / 180) * 15;
bullet_mc.diry = Math.sin((angle * Math.PI) / 180) * 15;
bullet_mc.onEnterFrame = function () {
this._x = this._x - this.dirx;
this._y = this._y - this.diry;
};
}
}
hitMarker._x = player._x;
hitMarker._y = player._y - 30;
if (floor._x > 920) {
leftFree = true;
floor._x = 920;
}
if (floor._x < 350) {
rightFree = true;
floor._x = 350;
}
if (floor._y > 550) {
topFree = true;
floor._y = 550;
}
if (floor._y < 390) {
bottomFree = true;
floor._y = 390;
}
if (!topFree) {
if ((player._y < 180) && (floor._y < 550)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y + floorSpeed;
i--;
}
ebase._y = ebase._y + floorSpeed;
player._y = player._y + playerSpeed;
floor._y = floor._y + floorSpeed;
}
}
if (player._y > 180) {
topFree = false;
}
if (!bottomFree) {
if ((player._y > 300) && (floor._y > 390)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._y = misc_mc[i]._y - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._y = bgObjects[i]._y - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._y = enemy[i]._y - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._y = objects[i]._y - floorSpeed;
i--;
}
player._y = player._y - playerSpeed;
floor._y = floor._y - floorSpeed;
ebase._y = ebase._y - floorSpeed;
}
}
if (player._y < 300) {
bottomFree = false;
}
if (!leftFree) {
if ((player._x < 200) && (floor._x < 920)) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x + floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x + floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x + floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x + floorSpeed;
i--;
}
player._x = player._x + playerSpeed;
floor._x = floor._x + floorSpeed;
ebase._x = ebase._x + floorSpeed;
}
}
if (player._x > 200) {
leftFree = false;
}
if ((!rightFree) && (floor._x > 350)) {
if (player._x > 400) {
i = misc_mc.length - 1;
while (i >= 0) {
misc_mc[i]._x = misc_mc[i]._x - floorSpeed;
i--;
}
i = enemy.length - 1;
while (i >= 0) {
enemy[i]._x = enemy[i]._x - floorSpeed;
i--;
}
i = bgObjects.length - 1;
while (i >= 0) {
bgObjects[i]._x = bgObjects[i]._x - floorSpeed;
i--;
}
i = objects.length - 1;
while (i >= 0) {
objects[i]._x = objects[i]._x - floorSpeed;
i--;
}
player._x = player._x - playerSpeed;
floor._x = floor._x - floorSpeed;
ebase._x = ebase._x - floorSpeed;
}
}
if (player._x < 400) {
rightFree = false;
}
if (player._x < 0) {
player._x = 0;
}
if (player._x > 640) {
player._x = 640;
}
if ((player._y < 50) && (!beingCarried)) {
player._y = 50;
}
if ((player._y > 480) && (!beingCarried)) {
player._y = 480;
}
if (weapon == 0) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDown");
}
if (facingRightDown) {
player.gotoAndStop("jumpRight");
}
if (facingRight) {
player.gotoAndStop("jumpRight");
}
if (facingRightUp) {
player.gotoAndStop("jumpRight");
}
if (facingUp) {
player.gotoAndStop("jumpUp");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeft");
}
if (facingLeft) {
player.gotoAndStop("jumpLeft");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeft");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("down");
}
if (facingRightDown) {
player.gotoAndStop("downRight");
}
if (facingRight) {
player.gotoAndStop("right");
}
if (facingRightUp) {
player.gotoAndStop("upRight");
}
if (facingUp) {
player.gotoAndStop("up");
}
if (facingLeftUp) {
player.gotoAndStop("upLeft");
}
if (facingLeft) {
player.gotoAndStop("left");
}
if (facingLeftDown) {
player.gotoAndStop("downLeft");
}
} else {
if (facingDown) {
player.gotoAndStop("downShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightShoot");
}
if (facingRight) {
player.gotoAndStop("rightShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightShoot");
}
if (facingUp) {
player.gotoAndStop("upShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShoot");
}
if (facingLeft) {
player.gotoAndStop("leftShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShoot");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdle");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdle");
}
if (facingRight) {
player.gotoAndStop("rightIdle");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdle");
}
if (facingUp) {
player.gotoAndStop("upIdle");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdle");
}
if (facingLeft) {
player.gotoAndStop("leftIdle");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdle");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShoot");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShoot");
}
if (facingRight) {
player.gotoAndStop("rightIdleShoot");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShoot");
}
if (facingUp) {
player.gotoAndStop("upIdleShoot");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShoot");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShoot");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShoot");
}
}
}
}
}
if (weapon == 1) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownSG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightSG");
}
if (facingRight) {
player.gotoAndStop("jumpRightSG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightSG");
}
if (facingUp) {
player.gotoAndStop("jumpUpSG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftSG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftSG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightSG");
}
if (facingRight) {
player.gotoAndStop("rightSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightSG");
}
if (facingUp) {
player.gotoAndStop("upSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftSG");
}
if (facingLeft) {
player.gotoAndStop("leftSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootSG");
}
if (facingRight) {
player.gotoAndStop("rightShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootSG");
}
if (facingUp) {
player.gotoAndStop("upShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootSG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleSG");
}
if (facingUp) {
player.gotoAndStop("upIdleSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleSG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootSG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootSG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootSG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootSG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootSG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootSG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootSG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootSG");
}
}
}
}
}
if (weapon == 2) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownMG");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightMG");
}
if (facingRight) {
player.gotoAndStop("jumpRightMG");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightMG");
}
if (facingUp) {
player.gotoAndStop("jumpUpMG");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftMG");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftMG");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightMG");
}
if (facingRight) {
player.gotoAndStop("rightMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightMG");
}
if (facingUp) {
player.gotoAndStop("upMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftMG");
}
if (facingLeft) {
player.gotoAndStop("leftMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootMG");
}
if (facingRight) {
player.gotoAndStop("rightShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootMG");
}
if (facingUp) {
player.gotoAndStop("upShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootMG");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleMG");
}
if (facingUp) {
player.gotoAndStop("upIdleMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleMG");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootMG");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootMG");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootMG");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootMG");
}
if (facingUp) {
player.gotoAndStop("upIdleShootMG");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootMG");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootMG");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootMG");
}
}
}
}
}
if (weapon == 3) {
if (jumpingOver && (!beingCarried)) {
if (facingDown) {
player.gotoAndStop("jumpDownFLAME");
}
if (facingRightDown) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRight) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("jumpRightFLAME");
}
if (facingUp) {
player.gotoAndStop("jumpUpFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("jumpLeftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("jumpLeftFLAME");
}
}
if (moving && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightFLAME");
}
if (facingRight) {
player.gotoAndStop("rightFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightFLAME");
}
if (facingUp) {
player.gotoAndStop("upFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftShootFLAME");
}
}
}
}
if ((!moving) && (!beingCarried)) {
if (!jumpingOver) {
if (!shooting) {
if (facingDown) {
player.gotoAndStop("downIdleFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleFLAME");
}
} else {
if (facingDown) {
player.gotoAndStop("downIdleShootFLAME");
}
if (facingRightDown) {
player.gotoAndStop("downRightIdleShootFLAME");
}
if (facingRight) {
player.gotoAndStop("rightIdleShootFLAME");
}
if (facingRightUp) {
player.gotoAndStop("upRightIdleShootFLAME");
}
if (facingUp) {
player.gotoAndStop("upIdleShootFLAME");
}
if (facingLeftUp) {
player.gotoAndStop("upLeftIdleShootFLAME");
}
if (facingLeft) {
player.gotoAndStop("leftIdleShootFLAME");
}
if (facingLeftDown) {
player.gotoAndStop("downLeftIdleShootFLAME");
}
}
}
}
}
if (jumpingOver) {
jumpingOverTimer++;
if (jumpingOverTimer == 5) {
jumpingOver = false;
jumpingOverTimer = 0;
}
}
if (!Key.isDown(38)) {
moving = false;
}
if (!Key.isDown(40)) {
moving = false;
}
if (!Key.isDown(37)) {
moving = false;
}
if (!Key.isDown(39)) {
moving = false;
}
myRadian = Math.atan2(_root._ymouse - player._y, _root._xmouse - player._x);
myDegree = Math.round((myRadian * 180) / Math.PI) - 90;
hitMarker._rotation = myDegree;
if ((!beingCarried) && (!frozenS)) {
if (Key.isDown(87) or Key.isDown(38)) {
moving = true;
player._y = player._y - playerSpeed;
}
if (Key.isDown(83) or Key.isDown(40)) {
moving = true;
player._y = player._y + playerSpeed;
}
if (Key.isDown(68) or Key.isDown(39)) {
moving = true;
player._x = player._x + playerSpeed;
}
if (Key.isDown(65) or Key.isDown(37)) {
moving = true;
player._x = player._x - playerSpeed;
}
}
if ((hitMarker._rotation < 20) && (hitMarker._rotation > -20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = true;
}
if ((hitMarker._rotation < -140) && (hitMarker._rotation > -180)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = true;
facingDown = false;
}
if ((hitMarker._rotation < -60) && (hitMarker._rotation > -100)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = true;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 100) && (hitMarker._rotation > 60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = true;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 140) && (hitMarker._rotation > 100)) {
facingLeftUp = true;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -100) && (hitMarker._rotation > -140)) {
facingLeftUp = false;
facingRightUp = true;
facingLeftDown = false;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < 60) && (hitMarker._rotation > 20)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = true;
facingRightDown = false;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if ((hitMarker._rotation < -20) && (hitMarker._rotation > -60)) {
facingLeftUp = false;
facingRightUp = false;
facingLeftDown = false;
facingRightDown = true;
facingLeft = false;
facingRight = false;
facingUp = false;
facingDown = false;
}
if (scoreMark > score) {
score = score + 10;
}
if (stamina > 100) {
stamina = 100;
}
if (stamina < 0) {
stamina = 0;
}
if (beingCarried && (!frozen)) {
stamina = stamina - 0.3;
powerBar2.gotoAndStop("down");
}
if (inBase && (!frozen)) {
stamina = stamina + 0.1;
powerBar2.gotoAndStop("up");
}
if (!lost) {
if (stamina > 75) {
viva = 5;
}
if (stamina < 50) {
viva = 2.5;
}
if (stamina < 25) {
viva = 1;
}
}
if (score == yourRank) {
rankNum++;
randomnumber++;
if (rankNum == 1) {
blee = _root.attachMovie("rank1", "rank1" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 2) {
blee = _root.attachMovie("rank2", "rank2" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 3) {
blee = _root.attachMovie("rank3", "rank3" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 4) {
blee = _root.attachMovie("rank4", "rank4" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 5) {
blee = _root.attachMovie("rank5", "rank5" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 6) {
blee = _root.attachMovie("rank6", "rank6" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 7) {
blee = _root.attachMovie("rank7", "rank7" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 8) {
blee = _root.attachMovie("rank8", "rank8" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 9) {
blee = _root.attachMovie("rank9", "rank9" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 10) {
blee = _root.attachMovie("rank10", "rank10" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
if (rankNum == 11) {
blee = _root.attachMovie("rank11", "rank11" + randomnumber, _root.getNextHighestDepth(), {_x:330, _y:235});
}
yourRank = yourRank + 3000;
}
playersHealth.playersClub._xscale = health;
powerBar._yscale = overHeat;
powerBar2._yscale = stamina;
score_mc3.score.text = score;
texture.swapDepths(_root.getNextHighestDepth());
crosshair.swapDepths(_root.getNextHighestDepth());
score_mc3.swapDepths(_root.getNextHighestDepth());
powerBar.swapDepths(_root.getNextHighestDepth());
boarder.swapDepths(_root.getNextHighestDepth());
powerBar2.swapDepths(_root.getNextHighestDepth());
boarder2.swapDepths(_root.getNextHighestDepth());
playersHealth.swapDepths(_root.getNextHighestDepth());
splosh.swapDepths(_root.getNextHighestDepth());
bij.swapDepths(_root.getNextHighestDepth());
tr.swapDepths(_root.getNextHighestDepth());
trans.swapDepths(_root.getNextHighestDepth());
blee.swapDepths(_root.getNextHighestDepth());
ps.swapDepths(_root.getNextHighestDepth());
bij._alpha = bij._alpha - 8;
tr._alpha = tr._alpha - 30;
if (bij._alpha < 0) {
bij._alpha = 0;
}
if (tr._alpha < 0) {
tr._alpha = 0;
}
playersHealth._alpha = playersHealth._alpha - 30;
if (playersHealth._alpha < 0) {
playersHealth._alpha = 0;
}
crosshair._x = _xmouse;
crosshair._y = _ymouse;
if (!Key.isDown(80)) {
frozenOnce = 0;
}
if (Key.isDown(80)) {
if (frozenOnce == 0) {
frozenOnce = 1;
fnum++;
}
if (fnum > 1) {
fnum = 0;
}
}
if (fnum == 1) {
if (showPause == 0) {
showPause = 1;
_root.attachMovie("ps", "ps", _root.getNextHighestDepth());
}
frozen = true;
shooting = false;
} else {
showPause = 0;
ps.removeMovieClip();
addenemy();
objectActions();
enemyActions();
frozen = false;
}
};
frameRateCounter = setInterval(countFrames, 1000);
Frame 12
stop();
gamename = "zombears";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
function onSubmitterFailure() {
trace("Can not use submitter");
}
function onSubmitterSuccess(target) {
trace("Submitter loaded, intialised and available for use");
submitter.submitScore(score);
}
stop();
Mouse.show();
rankBar.onEnterFrame = function () {
if ((rankNum == 1) or (rankNum == 0)) {
rankBar.gotoAndStop("rank1");
}
if (rankNum == 2) {
rankBar.gotoAndStop("rank2");
}
if (rankNum == 3) {
rankBar.gotoAndStop("rank3");
}
if (rankNum == 4) {
rankBar.gotoAndStop("rank4");
}
if (rankNum == 5) {
rankBar.gotoAndStop("rank5");
}
if (rankNum == 6) {
rankBar.gotoAndStop("rank6");
}
if (rankNum == 7) {
rankBar.gotoAndStop("rank7");
}
if (rankNum == 8) {
rankBar.gotoAndStop("rank8");
}
if (rankNum == 9) {
rankBar.gotoAndStop("rank9");
}
if (rankNum == 10) {
rankBar.gotoAndStop("rank10");
}
if (rankNum == 11) {
rankBar.gotoAndStop("rank11");
}
};
var submitter = new SubmitterProxy();
submitter = attachMovie("submitterProxy", submitter, getNextHighestDepth());
submitter._y = -100000000;
submitter.addEventListener("LoadingFailed", mx.utils.Delegate.create(this, onSubmitterFailure));
submitter.addEventListener("SubmitterLoadedSuccesfull", mx.utils.Delegate.create(this, onSubmitterSuccess));
submitter.setLoader(_root, "zombears", "zombears.html", 0, "normal", "", 0, 0, 1, false, 1);
Instance of Symbol 1687 MovieClip in Frame 12
on (release) {
_root.gotoAndStop("title");
}
Frame 13
stop();
gamename = "zombears";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
function onSubmitterFailure() {
trace("Can not use submitter");
}
function onSubmitterSuccess(target) {
trace("Submitter loaded, intialised and available for use");
submitter.submitScore(score);
}
stop();
Mouse.show();
rankBar.onEnterFrame = function () {
if ((rankNum == 1) or (rankNum == 0)) {
rankBar.gotoAndStop("rank1");
}
if (rankNum == 2) {
rankBar.gotoAndStop("rank2");
}
if (rankNum == 3) {
rankBar.gotoAndStop("rank3");
}
if (rankNum == 4) {
rankBar.gotoAndStop("rank4");
}
if (rankNum == 5) {
rankBar.gotoAndStop("rank5");
}
if (rankNum == 6) {
rankBar.gotoAndStop("rank6");
}
if (rankNum == 7) {
rankBar.gotoAndStop("rank7");
}
if (rankNum == 8) {
rankBar.gotoAndStop("rank8");
}
if (rankNum == 9) {
rankBar.gotoAndStop("rank9");
}
if (rankNum == 10) {
rankBar.gotoAndStop("rank10");
}
if (rankNum == 11) {
rankBar.gotoAndStop("rank11");
}
};
var submitter = new SubmitterProxy();
submitter = attachMovie("submitterProxy", submitter, getNextHighestDepth());
submitter._y = -100000000;
submitter.addEventListener("LoadingFailed", mx.utils.Delegate.create(this, onSubmitterFailure));
submitter.addEventListener("SubmitterLoadedSuccesfull", mx.utils.Delegate.create(this, onSubmitterSuccess));
submitter.setLoader(_root, "zombears", "zombears.html", 0, "normal", "", 0, 0, 1, false, 1);
Symbol 1 MovieClip [SubmitterProxy] Frame 1
#initclip 5
Object.registerClass("SubmitterProxy", SubmitterProxy);
#endinitclip
Symbol 132 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 137 MovieClip Frame 1
_root.stop();
Symbol 137 MovieClip Frame 91
_root.play();
Symbol 140 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 140 MovieClip Frame 90
stop();
Symbol 146 MovieClip Frame 1
_root.stop();
Symbol 146 MovieClip Frame 90
_root.play();
Symbol 154 MovieClip Frame 1
_root.stop();
Symbol 154 MovieClip Frame 89
_root.play();
Symbol 157 MovieClip Frame 1
_root.stop();
Symbol 157 MovieClip Frame 89
_root.play();
Symbol 158 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
Symbol 1718 MovieClip [__Packages.SubmitterProxy] Frame 0
class SubmitterProxy extends MovieClip
{
var parentObj, _parent, m_scoreType, m_scoreOrder, gameName, htmlName, locale, iconData, pagesize, pagenr, requestStackInvalidUser, gameid, siteid, channelid, swfURL, delegateOnIoError, delegateOnLoadDone, createEmptyMovieClip, getNextHighestDepth, content, delegateHyscoreSubmitterReady, dispatchEvent, m_scoreXMLData, m_scoreServerTimeXMLData, m_achievXMLData;
function SubmitterProxy () {
super();
System.security.allowDomain("*");
parentObj = _parent;
mx.events.EventDispatcher.initialize(this);
}
function setLoader(_container, _gameName, _htmlName, _order, _scoreType, _locale, _iconData, _pagesize, _pagenr, _bTest, _serverSelect) {
bTestModeOn = _bTest;
m_scoreType = _scoreType;
m_scoreOrder = _order;
gameName = _gameName;
if (_htmlName == "") {
htmlName = gameName;
} else {
htmlName = _htmlName;
}
locale = _locale;
iconData = _iconData;
pagesize = _pagesize;
pagenr = _pagenr;
serverSelect = _serverSelect;
requestStackInvalidUser = new Array();
if (_container != null) {
userName = _container.username;
userHash = _container.hash;
gameid = _container.id;
siteid = _container.s;
channelid = _container.c;
trace("servicesLoc: " + _container.servicesLoc);
if ((_container.servicesLoc != "") && (_container.servicesLoc != undefined)) {
swfURL = _container.servicesLoc;
} else {
var _local3 = new Date();
swfURL = (("http://www8.agame.com/games/flash/highscore/SubmitterAS2.swf?nocache=" + (_local3.getYear() * 12)) + _local3.getMonth()) + 1;
}
getSwf();
} else {
SubmitterFailedToLoad();
}
}
function getSwf() {
var _local2 = new Object();
delegateOnIoError = mx.utils.Delegate.create(this, onLoadDone);
_local2.onLoadInit = delegateOnIoError;
delegateOnLoadDone = mx.utils.Delegate.create(this, onIoError);
_local2.onLoadError = delegateOnLoadDone;
var _local4 = new MovieClipLoader();
_local4.addListener(_local2);
var _local3 = createEmptyMovieClip("loadedComp", getNextHighestDepth());
trace("swfURL:" + swfURL);
_local4.loadClip(swfURL, _local3);
_local3._x = 10;
_local3._y = 10;
}
function isSWFReady() {
return(content != null);
}
function isDomainAllowed(value) {
if (content) {
return(content.isDomainValid(value));
}
return(false);
}
function hasUserData() {
return((userName != null) && (userHash != null));
}
function doCommTest() {
if (content) {
return(content.m_get_TEST());
}
return("Error: Failed to communicatie with: " + content);
}
function getScoreServerTime() {
if (content) {
content.m_getLatestScoreServerTime();
}
}
function submitScore(score) {
trace("submitScore: " + score);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_SCORE", value:score});
}
content.m_submitScore(score, userName, userHash, "", 0);
}
}
function requestHighscoreList() {
if (content) {
content.m_submitHighscoreListRequest();
}
}
function requestUserHighscoreList(target_username) {
if (content) {
content.m_submitUserHighscoreListRequest(target_username);
}
}
function submitGrantAward(tag) {
trace("submitGrantAward: " + tag);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_AWARD", value:tag});
}
content.m_submitAward(tag, userName, userHash);
}
}
function requestAwardList() {
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"REQUEST_AWARDLIST"});
}
content.m_getUserAwardList(userName, userHash);
}
}
function requestAwardInfo(awardID) {
if (content) {
content.m_getAwardInfo(awardID);
}
}
function SubmitterIsLoaded() {
delegateHyscoreSubmitterReady = mx.utils.Delegate.create(this, onHyScorSubmitterReady);
content.addEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
content.addEventListener("ScoreLoadError", this);
content.addEventListener("ScoreLoadTimeComplete", this);
content.addEventListener("ScoreLoadSubmitComplete", this);
content.addEventListener("ScoreLoadListComplete", this);
content.addEventListener("ScoreLoadUserListComplete", this);
content.addEventListener("AchievLoadError", this);
content.addEventListener("AchievLoadTimeComplete", this);
content.addEventListener("AchievLoadListComplete", this);
content.addEventListener("AchievLoadInfoComplete", this);
content.addEventListener("AchievLoadGrantComplete", this);
}
function SubmitterFailedToLoad() {
dispatchEvent({target:this, type:"LoadingFailed", elapsedTime:getTimer()});
}
function onLoadDone(target_mc) {
content = target_mc.SubmitterInstance;
content.gotoAndPlay(1);
if (isDomainAllowed(bTestModeOn)) {
trace("Submitter component downloaded.");
SubmitterIsLoaded();
content.init(siteid, 1, gameid, channelid, m_scoreOrder, locale, iconData, pagesize, pagenr, userName, userHash, serverSelect);
initJStoSWFListeners();
} else {
trace("Error: Could not init submitter...played on an invalid domain.");
SubmitterFailedToLoad();
}
}
function onIoError(target_mc, errorCode, httpStatus) {
trace((("Error: loadListener.onLoadError() errorCode: " + errorCode) + " httpStatus: ") + httpStatus);
SubmitterFailedToLoad();
}
function onHyScorSubmitterReady(target_mc) {
if (content) {
content.removeEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
}
dispatchEvent({target:this, type:"SubmitterLoadedSuccesfull", elapsedTime:getTimer()});
}
function handleEvent(e) {
if (((e.type == "ScoreLoadSubmitComplete") || (e.type == "ScoreLoadListComplete")) || (e.type == "ScoreLoadUserListComplete")) {
m_scoreXMLData = content.m_getLastestHighscoreData();
} else if (e.type == "ScoreLoadTimeComplete") {
m_scoreServerTimeXMLData = content.m_getLatestScoreServerTime();
} else if (((e.type == "AchievLoadListComplete") || (e.type == "AchievLoadInfoComplete")) || (e.type == "AchievLoadGrantComplete")) {
m_achievXMLData = content.m_getLastestAchievementData();
} else if (e.type == "AchievLoadTimeComplete") {
} else if (e.type == "ScoreLoadError") {
m_scoreXMLData = content.m_getLatestHighscoreError();
} else if (e.type == "AchievLoadError") {
m_achievXMLData = content.m_getLatestAchievError();
}
dispatchEvent({target:this, type:e.type, elapsedTime:getTimer()});
}
function initJStoSWFListeners() {
if (flash.external.ExternalInterface.available) {
try {
flash.external.ExternalInterface.addCallback("JStoSWF", com.spilgames.external.JStoSWF.instance().parse);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_USER", updateUser);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_AVATAR", updateAvatar);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_GALLERY", updateGallery);
} catch(e:Error) {
trace("Error: Failed init enternal interface.. is the swf played locally?");
}
}
}
function updateUser(params) {
var _local3 = params.username;
var _local2 = params.hash;
var _local4 = params.id;
userName = _local3;
userHash = _local2;
var _local6 = (((("UPDATE_USER|-|" + _local3) + "|-|") + _local2) + "|-|") + _local4;
processInvalidUserList();
}
function updateAvatar(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_AVATAR|-|" + _local1) + "|-|") + _local2;
}
function updateGallery(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_GALLERY|-|" + _local1) + "|-|") + _local2;
}
function processInvalidUserList() {
while (requestStackInvalidUser.length > 0) {
var _local2 = requestStackInvalidUser.pop();
if (_local2.type == "SUBMIT_SCORE") {
submitScore(_local2.value);
} else if (_local2.type == "SUBMIT_AWARD") {
submitGrantAward(_local2.value);
} else if (_local2.type == "REQUEST_AWARDLIST") {
requestAwardList();
}
}
}
function destroy() {
parentObj = null;
content.removeMovieClip();
content = null;
siteid = null;
channelid = null;
gameid = null;
userName = null;
userHash = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
var userName = null;
var userHash = null;
var serverSelect = 1;
var bTestModeOn = false;
}
Symbol 1719 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions.eventObj.type == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1720 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1721 MovieClip [__Packages.com.spilgames.external.JStoSWF] Frame 0
class com.spilgames.external.JStoSWF
{
static var m_oJStoSWF;
var m_oCallFuntions;
function JStoSWF () {
m_oCallFuntions = new Object();
}
function addCallFunction(p_sName, p_fFunction) {
if (!m_oCallFuntions[p_sName]) {
m_oCallFuntions[p_sName] = p_fFunction;
}
}
function parse(p_oCallObject) {
if (p_oCallObject.call) {
switch (p_oCallObject.call) {
case "MULTI" :
var _local2 = 0;
while (_local2 < p_oCallObject.calls.length) {
instance().parse(p_oCallObject.calls[_local2]);
_local2++;
}
break;
default :
if (m_oCallFuntions[p_oCallObject.call]) {
if (!p_oCallObject.params) {
p_oCallObject.params = {};
}
m_oCallFuntions[p_oCallObject.call](p_oCallObject.params);
} else {
trace(("call: " + p_oCallObject.call) + " not found in call functions!");
}
}
} else {
trace("call attribute not found in CallObject!");
}
}
static function instance() {
if (m_oJStoSWF == null) {
m_oJStoSWF = new com.spilgames.external.JStoSWF();
}
return(m_oJStoSWF);
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
Instance of Symbol 180 MovieClip in Symbol 193 MovieClip Frame 35
on (release) {
_root.nextFrame();
}
Symbol 193 MovieClip Frame 70
stop();
Symbol 205 MovieClip [rank1] Frame 41
this.removeMovieClip();
Symbol 213 MovieClip [levelUp] Frame 55
this.removeMovieClip();
Symbol 480 MovieClip [player] Frame 1
stop();
Symbol 480 MovieClip [player] Frame 2
stop();
Symbol 480 MovieClip [player] Frame 3
stop();
Symbol 480 MovieClip [player] Frame 4
stop();
Symbol 480 MovieClip [player] Frame 5
stop();
Symbol 480 MovieClip [player] Frame 6
stop();
Symbol 480 MovieClip [player] Frame 7
stop();
Symbol 480 MovieClip [player] Frame 8
stop();
Symbol 480 MovieClip [player] Frame 9
stop();
Symbol 480 MovieClip [player] Frame 10
stop();
Symbol 480 MovieClip [player] Frame 11
stop();
Symbol 480 MovieClip [player] Frame 12
stop();
Symbol 480 MovieClip [player] Frame 13
stop();
Symbol 480 MovieClip [player] Frame 14
stop();
Symbol 480 MovieClip [player] Frame 15
stop();
Symbol 480 MovieClip [player] Frame 16
stop();
Symbol 480 MovieClip [player] Frame 17
stop();
Symbol 480 MovieClip [player] Frame 18
stop();
Symbol 480 MovieClip [player] Frame 19
stop();
Symbol 480 MovieClip [player] Frame 20
stop();
Symbol 480 MovieClip [player] Frame 21
stop();
Symbol 480 MovieClip [player] Frame 22
stop();
Symbol 480 MovieClip [player] Frame 23
stop();
Symbol 480 MovieClip [player] Frame 24
stop();
Symbol 480 MovieClip [player] Frame 25
stop();
Symbol 480 MovieClip [player] Frame 26
stop();
Symbol 480 MovieClip [player] Frame 27
stop();
Symbol 480 MovieClip [player] Frame 28
stop();
Symbol 480 MovieClip [player] Frame 29
stop();
Symbol 480 MovieClip [player] Frame 30
stop();
Symbol 480 MovieClip [player] Frame 31
stop();
Symbol 480 MovieClip [player] Frame 32
stop();
Symbol 480 MovieClip [player] Frame 33
stop();
Symbol 480 MovieClip [player] Frame 34
stop();
Symbol 480 MovieClip [player] Frame 35
stop();
Symbol 480 MovieClip [player] Frame 36
stop();
Symbol 480 MovieClip [player] Frame 37
stop();
Symbol 480 MovieClip [player] Frame 38
stop();
Symbol 480 MovieClip [player] Frame 39
stop();
Symbol 480 MovieClip [player] Frame 40
stop();
Symbol 480 MovieClip [player] Frame 41
stop();
Symbol 480 MovieClip [player] Frame 42
stop();
Symbol 480 MovieClip [player] Frame 43
stop();
Symbol 480 MovieClip [player] Frame 44
stop();
Symbol 480 MovieClip [player] Frame 45
stop();
Symbol 480 MovieClip [player] Frame 46
stop();
Symbol 480 MovieClip [player] Frame 47
stop();
Symbol 480 MovieClip [player] Frame 48
stop();
Symbol 480 MovieClip [player] Frame 49
stop();
Symbol 480 MovieClip [player] Frame 50
stop();
Symbol 480 MovieClip [player] Frame 51
stop();
Symbol 480 MovieClip [player] Frame 52
stop();
Symbol 480 MovieClip [player] Frame 53
stop();
Symbol 480 MovieClip [player] Frame 54
stop();
Symbol 480 MovieClip [player] Frame 55
stop();
Symbol 480 MovieClip [player] Frame 56
stop();
Symbol 480 MovieClip [player] Frame 57
stop();
Symbol 480 MovieClip [player] Frame 58
stop();
Symbol 480 MovieClip [player] Frame 59
stop();
Symbol 480 MovieClip [player] Frame 60
stop();
Symbol 480 MovieClip [player] Frame 61
stop();
Symbol 480 MovieClip [player] Frame 62
stop();
Symbol 480 MovieClip [player] Frame 63
stop();
Symbol 480 MovieClip [player] Frame 64
stop();
Symbol 480 MovieClip [player] Frame 65
stop();
Symbol 480 MovieClip [player] Frame 66
stop();
Symbol 480 MovieClip [player] Frame 67
stop();
Symbol 480 MovieClip [player] Frame 68
stop();
Symbol 480 MovieClip [player] Frame 69
stop();
Symbol 480 MovieClip [player] Frame 70
stop();
Symbol 480 MovieClip [player] Frame 71
stop();
Symbol 480 MovieClip [player] Frame 72
stop();
Symbol 480 MovieClip [player] Frame 73
stop();
Symbol 480 MovieClip [player] Frame 74
stop();
Symbol 480 MovieClip [player] Frame 75
stop();
Symbol 480 MovieClip [player] Frame 76
stop();
Symbol 480 MovieClip [player] Frame 77
stop();
Symbol 480 MovieClip [player] Frame 78
stop();
Symbol 480 MovieClip [player] Frame 79
stop();
Symbol 480 MovieClip [player] Frame 80
stop();
Symbol 480 MovieClip [player] Frame 81
stop();
Symbol 480 MovieClip [player] Frame 82
stop();
Symbol 480 MovieClip [player] Frame 83
stop();
Symbol 480 MovieClip [player] Frame 84
stop();
Symbol 480 MovieClip [player] Frame 85
stop();
Symbol 480 MovieClip [player] Frame 86
stop();
Symbol 480 MovieClip [player] Frame 87
stop();
Symbol 480 MovieClip [player] Frame 88
stop();
Symbol 480 MovieClip [player] Frame 89
stop();
Symbol 480 MovieClip [player] Frame 90
stop();
Symbol 480 MovieClip [player] Frame 91
stop();
Symbol 480 MovieClip [player] Frame 92
stop();
Symbol 480 MovieClip [player] Frame 93
stop();
Symbol 480 MovieClip [player] Frame 94
stop();
Symbol 480 MovieClip [player] Frame 95
stop();
Symbol 480 MovieClip [player] Frame 96
stop();
Symbol 480 MovieClip [player] Frame 97
stop();
Symbol 480 MovieClip [player] Frame 98
stop();
Symbol 480 MovieClip [player] Frame 99
stop();
Symbol 480 MovieClip [player] Frame 100
stop();
Symbol 480 MovieClip [player] Frame 101
stop();
Symbol 480 MovieClip [player] Frame 102
stop();
Symbol 480 MovieClip [player] Frame 103
stop();
Symbol 480 MovieClip [player] Frame 104
stop();
Symbol 480 MovieClip [player] Frame 105
stop();
Symbol 480 MovieClip [player] Frame 106
stop();
Symbol 480 MovieClip [player] Frame 107
stop();
Symbol 480 MovieClip [player] Frame 108
stop();
Symbol 480 MovieClip [player] Frame 109
stop();
Symbol 480 MovieClip [player] Frame 110
stop();
Symbol 480 MovieClip [player] Frame 111
stop();
Symbol 480 MovieClip [player] Frame 112
stop();
Symbol 480 MovieClip [player] Frame 113
stop();
Symbol 480 MovieClip [player] Frame 114
stop();
Symbol 480 MovieClip [player] Frame 115
stop();
Symbol 480 MovieClip [player] Frame 116
stop();
Symbol 480 MovieClip [player] Frame 117
stop();
Symbol 480 MovieClip [player] Frame 118
stop();
Symbol 480 MovieClip [player] Frame 119
stop();
Symbol 480 MovieClip [player] Frame 120
stop();
Symbol 480 MovieClip [player] Frame 121
stop();
Symbol 480 MovieClip [player] Frame 122
stop();
Symbol 480 MovieClip [player] Frame 123
stop();
Symbol 480 MovieClip [player] Frame 124
stop();
Symbol 480 MovieClip [player] Frame 125
stop();
Symbol 480 MovieClip [player] Frame 126
stop();
Symbol 480 MovieClip [player] Frame 127
stop();
Symbol 480 MovieClip [player] Frame 128
stop();
Symbol 480 MovieClip [player] Frame 129
stop();
Symbol 480 MovieClip [player] Frame 130
stop();
Symbol 480 MovieClip [player] Frame 131
stop();
Symbol 480 MovieClip [player] Frame 132
stop();
Symbol 480 MovieClip [player] Frame 133
stop();
Symbol 480 MovieClip [player] Frame 134
stop();
Symbol 480 MovieClip [player] Frame 135
stop();
Symbol 480 MovieClip [player] Frame 136
stop();
Symbol 480 MovieClip [player] Frame 137
stop();
Symbol 480 MovieClip [player] Frame 138
stop();
Symbol 480 MovieClip [player] Frame 139
stop();
Symbol 480 MovieClip [player] Frame 140
stop();
Symbol 480 MovieClip [player] Frame 141
stop();
Symbol 480 MovieClip [player] Frame 142
stop();
Symbol 480 MovieClip [player] Frame 143
stop();
Symbol 480 MovieClip [player] Frame 144
stop();
Symbol 480 MovieClip [player] Frame 145
stop();
Symbol 480 MovieClip [player] Frame 146
stop();
Symbol 480 MovieClip [player] Frame 147
stop();
Symbol 480 MovieClip [player] Frame 148
stop();
Symbol 489 MovieClip [blood] Frame 11
this.removeMovieClip();
Symbol 500 MovieClip [blood_mc] Frame 22
this.removeMovieClip();
Symbol 595 MovieClip [enemyTwo] Frame 1
stop();
Symbol 595 MovieClip [enemyTwo] Frame 2
stop();
Symbol 595 MovieClip [enemyTwo] Frame 3
stop();
Symbol 595 MovieClip [enemyTwo] Frame 4
stop();
Symbol 595 MovieClip [enemyTwo] Frame 5
stop();
Symbol 595 MovieClip [enemyTwo] Frame 6
stop();
Symbol 595 MovieClip [enemyTwo] Frame 7
stop();
Symbol 595 MovieClip [enemyTwo] Frame 8
stop();
Symbol 595 MovieClip [enemyTwo] Frame 9
stop();
Symbol 595 MovieClip [enemyTwo] Frame 10
stop();
Symbol 595 MovieClip [enemyTwo] Frame 11
stop();
Symbol 595 MovieClip [enemyTwo] Frame 12
stop();
Symbol 595 MovieClip [enemyTwo] Frame 13
stop();
Symbol 595 MovieClip [enemyTwo] Frame 14
stop();
Symbol 595 MovieClip [enemyTwo] Frame 15
stop();
Symbol 595 MovieClip [enemyTwo] Frame 16
stop();
Symbol 595 MovieClip [enemyTwo] Frame 17
stop();
Symbol 595 MovieClip [enemyTwo] Frame 18
stop();
Symbol 595 MovieClip [enemyTwo] Frame 19
stop();
Symbol 595 MovieClip [enemyTwo] Frame 20
stop();
Symbol 595 MovieClip [enemyTwo] Frame 21
stop();
Symbol 595 MovieClip [enemyTwo] Frame 22
stop();
Symbol 595 MovieClip [enemyTwo] Frame 23
stop();
Symbol 595 MovieClip [enemyTwo] Frame 24
stop();
Symbol 595 MovieClip [enemyTwo] Frame 25
stop();
Symbol 595 MovieClip [enemyTwo] Frame 26
stop();
Symbol 595 MovieClip [enemyTwo] Frame 27
stop();
Symbol 595 MovieClip [enemyTwo] Frame 28
stop();
Symbol 595 MovieClip [enemyTwo] Frame 29
stop();
Symbol 595 MovieClip [enemyTwo] Frame 30
stop();
Symbol 595 MovieClip [enemyTwo] Frame 31
stop();
Symbol 595 MovieClip [enemyTwo] Frame 32
stop();
Symbol 595 MovieClip [enemyTwo] Frame 33
stop();
Symbol 595 MovieClip [enemyTwo] Frame 34
stop();
Symbol 654 MovieClip [enemyThree] Frame 1
stop();
Symbol 654 MovieClip [enemyThree] Frame 2
stop();
Symbol 654 MovieClip [enemyThree] Frame 3
stop();
Symbol 654 MovieClip [enemyThree] Frame 4
stop();
Symbol 654 MovieClip [enemyThree] Frame 5
stop();
Symbol 654 MovieClip [enemyThree] Frame 6
stop();
Symbol 654 MovieClip [enemyThree] Frame 7
stop();
Symbol 654 MovieClip [enemyThree] Frame 8
stop();
Symbol 654 MovieClip [enemyThree] Frame 9
stop();
Symbol 654 MovieClip [enemyThree] Frame 10
stop();
Symbol 654 MovieClip [enemyThree] Frame 11
stop();
Symbol 654 MovieClip [enemyThree] Frame 12
stop();
Symbol 654 MovieClip [enemyThree] Frame 13
stop();
Symbol 654 MovieClip [enemyThree] Frame 14
stop();
Symbol 654 MovieClip [enemyThree] Frame 15
stop();
Symbol 654 MovieClip [enemyThree] Frame 16
stop();
Symbol 654 MovieClip [enemyThree] Frame 17
stop();
Symbol 654 MovieClip [enemyThree] Frame 18
stop();
Symbol 654 MovieClip [enemyThree] Frame 19
stop();
Symbol 654 MovieClip [enemyThree] Frame 20
stop();
Symbol 654 MovieClip [enemyThree] Frame 21
stop();
Symbol 654 MovieClip [enemyThree] Frame 22
stop();
Symbol 654 MovieClip [enemyThree] Frame 23
stop();
Symbol 654 MovieClip [enemyThree] Frame 24
stop();
Symbol 654 MovieClip [enemyThree] Frame 25
stop();
Symbol 654 MovieClip [enemyThree] Frame 26
stop();
Symbol 654 MovieClip [enemyThree] Frame 27
stop();
Symbol 654 MovieClip [enemyThree] Frame 28
stop();
Symbol 654 MovieClip [enemyThree] Frame 29
stop();
Symbol 654 MovieClip [enemyThree] Frame 30
stop();
Symbol 660 MovieClip [item] Frame 20
stop();
Symbol 669 MovieClip [restore] Frame 26
this.removeMovieClip();
Symbol 672 MovieClip [uzigot] Frame 26
this.removeMovieClip();
Symbol 675 MovieClip [shotgungot] Frame 26
this.removeMovieClip();
Symbol 702 MovieClip Frame 62
stop();
Symbol 703 MovieClip [explosion] Frame 62
this.removeMovieClip();
Symbol 716 MovieClip [cbomb] Frame 32
this.removeMovieClip();
Symbol 737 MovieClip Frame 63
stop();
Symbol 746 MovieClip Frame 7
stop();
Symbol 752 MovieClip Frame 5
stop();
Symbol 768 MovieClip Frame 15
stop();
Symbol 771 MovieClip [splatter] Frame 81
this.removeMovieClip();
Symbol 791 MovieClip [turrent] Frame 1
stop();
Symbol 791 MovieClip [turrent] Frame 2
play();
Symbol 800 MovieClip [trans] Frame 34
this.removeMovieClip();
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 2
stop();
Symbol 896 MovieClip [enemyAlt] Frame 1
stop();
Symbol 896 MovieClip [enemyAlt] Frame 2
stop();
Symbol 896 MovieClip [enemyAlt] Frame 3
stop();
Symbol 896 MovieClip [enemyAlt] Frame 4
stop();
Symbol 896 MovieClip [enemyAlt] Frame 5
stop();
Symbol 896 MovieClip [enemyAlt] Frame 6
stop();
Symbol 896 MovieClip [enemyAlt] Frame 7
stop();
Symbol 896 MovieClip [enemyAlt] Frame 8
stop();
Symbol 896 MovieClip [enemyAlt] Frame 9
stop();
Symbol 896 MovieClip [enemyAlt] Frame 10
stop();
Symbol 896 MovieClip [enemyAlt] Frame 11
stop();
Symbol 896 MovieClip [enemyAlt] Frame 12
stop();
Symbol 896 MovieClip [enemyAlt] Frame 13
stop();
Symbol 896 MovieClip [enemyAlt] Frame 14
stop();
Symbol 896 MovieClip [enemyAlt] Frame 15
stop();
Symbol 896 MovieClip [enemyAlt] Frame 16
stop();
Symbol 896 MovieClip [enemyAlt] Frame 17
stop();
Symbol 896 MovieClip [enemyAlt] Frame 18
stop();
Symbol 896 MovieClip [enemyAlt] Frame 19
stop();
Symbol 896 MovieClip [enemyAlt] Frame 20
stop();
Symbol 896 MovieClip [enemyAlt] Frame 21
stop();
Symbol 896 MovieClip [enemyAlt] Frame 22
stop();
Symbol 896 MovieClip [enemyAlt] Frame 23
stop();
Symbol 896 MovieClip [enemyAlt] Frame 24
stop();
Symbol 896 MovieClip [enemyAlt] Frame 25
stop();
Symbol 896 MovieClip [enemyAlt] Frame 26
stop();
Symbol 896 MovieClip [enemyAlt] Frame 27
stop();
Symbol 896 MovieClip [enemyAlt] Frame 28
stop();
Symbol 896 MovieClip [enemyAlt] Frame 29
stop();
Symbol 896 MovieClip [enemyAlt] Frame 30
stop();
Symbol 896 MovieClip [enemyAlt] Frame 31
stop();
Symbol 896 MovieClip [enemyAlt] Frame 32
stop();
Symbol 896 MovieClip [enemyAlt] Frame 33
stop();
Symbol 896 MovieClip [enemyAlt] Frame 34
stop();
Symbol 955 MovieClip [enemyOther] Frame 1
stop();
Symbol 955 MovieClip [enemyOther] Frame 2
stop();
Symbol 955 MovieClip [enemyOther] Frame 3
stop();
Symbol 955 MovieClip [enemyOther] Frame 4
stop();
Symbol 955 MovieClip [enemyOther] Frame 5
stop();
Symbol 955 MovieClip [enemyOther] Frame 6
stop();
Symbol 955 MovieClip [enemyOther] Frame 7
stop();
Symbol 955 MovieClip [enemyOther] Frame 8
stop();
Symbol 955 MovieClip [enemyOther] Frame 9
stop();
Symbol 955 MovieClip [enemyOther] Frame 10
stop();
Symbol 955 MovieClip [enemyOther] Frame 11
stop();
Symbol 955 MovieClip [enemyOther] Frame 12
stop();
Symbol 955 MovieClip [enemyOther] Frame 13
stop();
Symbol 955 MovieClip [enemyOther] Frame 14
stop();
Symbol 955 MovieClip [enemyOther] Frame 15
stop();
Symbol 955 MovieClip [enemyOther] Frame 16
stop();
Symbol 955 MovieClip [enemyOther] Frame 17
stop();
Symbol 955 MovieClip [enemyOther] Frame 18
stop();
Symbol 955 MovieClip [enemyOther] Frame 19
stop();
Symbol 955 MovieClip [enemyOther] Frame 20
stop();
Symbol 955 MovieClip [enemyOther] Frame 21
stop();
Symbol 955 MovieClip [enemyOther] Frame 22
stop();
Symbol 955 MovieClip [enemyOther] Frame 23
stop();
Symbol 955 MovieClip [enemyOther] Frame 24
stop();
Symbol 955 MovieClip [enemyOther] Frame 25
stop();
Symbol 955 MovieClip [enemyOther] Frame 26
stop();
Symbol 955 MovieClip [enemyOther] Frame 27
stop();
Symbol 955 MovieClip [enemyOther] Frame 28
stop();
Symbol 955 MovieClip [enemyOther] Frame 29
stop();
Symbol 955 MovieClip [enemyOther] Frame 30
stop();
Symbol 955 MovieClip [enemyOther] Frame 31
stop();
Symbol 955 MovieClip [enemyOther] Frame 32
stop();
Symbol 955 MovieClip [enemyOther] Frame 33
stop();
Symbol 955 MovieClip [enemyOther] Frame 34
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 1
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 2
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 3
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 4
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 5
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 6
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 7
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 8
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 9
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 10
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 11
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 12
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 13
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 14
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 15
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 16
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 17
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 18
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 19
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 20
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 21
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 22
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 23
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 24
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 25
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 26
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 27
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 28
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 29
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 30
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 31
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 32
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 33
stop();
Symbol 1014 MovieClip [enemyBigAlt] Frame 34
stop();
Symbol 1066 MovieClip [enemy] Frame 1
stop();
Symbol 1066 MovieClip [enemy] Frame 2
stop();
Symbol 1066 MovieClip [enemy] Frame 3
stop();
Symbol 1066 MovieClip [enemy] Frame 4
stop();
Symbol 1066 MovieClip [enemy] Frame 5
stop();
Symbol 1066 MovieClip [enemy] Frame 6
stop();
Symbol 1066 MovieClip [enemy] Frame 7
stop();
Symbol 1066 MovieClip [enemy] Frame 8
stop();
Symbol 1066 MovieClip [enemy] Frame 9
stop();
Symbol 1066 MovieClip [enemy] Frame 10
stop();
Symbol 1066 MovieClip [enemy] Frame 11
stop();
Symbol 1066 MovieClip [enemy] Frame 12
stop();
Symbol 1066 MovieClip [enemy] Frame 13
stop();
Symbol 1066 MovieClip [enemy] Frame 14
stop();
Symbol 1066 MovieClip [enemy] Frame 15
stop();
Symbol 1066 MovieClip [enemy] Frame 16
stop();
Symbol 1066 MovieClip [enemy] Frame 17
stop();
Symbol 1066 MovieClip [enemy] Frame 18
stop();
Symbol 1066 MovieClip [enemy] Frame 19
stop();
Symbol 1066 MovieClip [enemy] Frame 20
stop();
Symbol 1066 MovieClip [enemy] Frame 21
stop();
Symbol 1066 MovieClip [enemy] Frame 22
stop();
Symbol 1066 MovieClip [enemy] Frame 23
stop();
Symbol 1066 MovieClip [enemy] Frame 24
stop();
Symbol 1066 MovieClip [enemy] Frame 25
stop();
Symbol 1066 MovieClip [enemy] Frame 26
stop();
Symbol 1066 MovieClip [enemy] Frame 27
stop();
Symbol 1066 MovieClip [enemy] Frame 28
stop();
Symbol 1066 MovieClip [enemy] Frame 29
stop();
Symbol 1066 MovieClip [enemy] Frame 30
stop();
Symbol 1066 MovieClip [enemy] Frame 31
stop();
Symbol 1066 MovieClip [enemy] Frame 32
stop();
Symbol 1066 MovieClip [enemy] Frame 33
stop();
Symbol 1066 MovieClip [enemy] Frame 34
stop();
Symbol 1140 MovieClip Frame 1
stop();
Symbol 1140 MovieClip Frame 2
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 1
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 2
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 3
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 4
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 5
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 6
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 7
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 8
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 9
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 10
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 11
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 12
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 13
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 14
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 15
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 16
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 17
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 18
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 19
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 20
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 21
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 22
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 23
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 24
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 25
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 26
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 27
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 28
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 29
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 30
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 31
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 32
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 33
stop();
Symbol 1155 MovieClip [enemyBigOther] Frame 34
stop();
Symbol 1159 MovieClip [survived] Frame 55
this.removeMovieClip();
Symbol 1167 MovieClip Frame 14
stop();
Symbol 1173 MovieClip Frame 14
stop();
Symbol 1179 MovieClip Frame 14
stop();
Symbol 1181 MovieClip [ttfw] Frame 50
this.removeMovieClip();
Symbol 1185 MovieClip Frame 14
stop();
Symbol 1187 MovieClip [ttfwblue] Frame 50
this.removeMovieClip();
Symbol 1191 MovieClip Frame 14
stop();
Symbol 1193 MovieClip [ttfwgreen] Frame 50
this.removeMovieClip();
Symbol 1194 MovieClip [victory] Frame 41
this.removeMovieClip();
Symbol 1197 MovieClip [rank2] Frame 41
this.removeMovieClip();
Symbol 1200 MovieClip [rank3] Frame 41
this.removeMovieClip();
Symbol 1203 MovieClip [rank4] Frame 41
this.removeMovieClip();
Symbol 1206 MovieClip [rank5] Frame 41
this.removeMovieClip();
Symbol 1209 MovieClip [rank6] Frame 41
this.removeMovieClip();
Symbol 1212 MovieClip [rank7] Frame 41
this.removeMovieClip();
Symbol 1215 MovieClip [rank8] Frame 41
this.removeMovieClip();
Symbol 1218 MovieClip [rank9] Frame 41
this.removeMovieClip();
Symbol 1221 MovieClip [rank10] Frame 41
this.removeMovieClip();
Symbol 1224 MovieClip [rank11] Frame 41
this.removeMovieClip();
Symbol 1237 MovieClip Frame 5
stop();
Symbol 1242 MovieClip Frame 10
stop();
Symbol 1245 MovieClip Frame 5
stop();
Symbol 1254 MovieClip Frame 30
stop();
Symbol 1255 MovieClip Frame 1
_root.stop();
Symbol 1255 MovieClip Frame 69
_root.play();
stopAllSounds();
Symbol 1262 MovieClip Frame 12
stop();
Symbol 1266 Button
on (release) {
gotoAndPlay (2);
_root.soundstatus = "off";
}
Symbol 1267 MovieClip Frame 11
stop();
Symbol 1269 Button
on (release) {
gotoAndPlay (1);
_root.soundstatus = "on";
}
Symbol 1270 MovieClip Frame 1
stop();
Symbol 1270 MovieClip Frame 2
stop();
Instance of Symbol 1274 MovieClip in Symbol 1275 MovieClip [sound_contr] Frame 1
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 = 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);
}
Symbol 1294 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1322 MovieClip Frame 1
_root.stop();
Symbol 1322 MovieClip Frame 104
_root.play();
Symbol 1339 MovieClip Frame 1
_root.frameCount++;
Symbol 1339 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1353 MovieClip Frame 1
stop();
Symbol 1353 MovieClip Frame 2
stop();
Symbol 1353 MovieClip Frame 3
stop();
Symbol 1357 MovieClip Frame 1
stop();
Symbol 1357 MovieClip Frame 2
stop();
Symbol 1366 MovieClip Frame 1
stop();
Symbol 1366 MovieClip Frame 2
stop();
Symbol 1372 MovieClip Frame 1
stop();
Symbol 1372 MovieClip Frame 2
stop();
Symbol 1382 MovieClip Frame 1
stop();
Symbol 1382 MovieClip Frame 2
stop();
Symbol 1382 MovieClip Frame 3
stop();
Symbol 1386 MovieClip Frame 1
stop();
Symbol 1386 MovieClip Frame 2
stop();
Symbol 1386 MovieClip Frame 3
stop();
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 2
stop();
Symbol 1390 MovieClip Frame 3
stop();
Symbol 1394 MovieClip Frame 1
stop();
Symbol 1394 MovieClip Frame 2
stop();
Symbol 1394 MovieClip Frame 3
stop();
Symbol 1398 MovieClip Frame 1
stop();
Symbol 1398 MovieClip Frame 2
stop();
Symbol 1398 MovieClip Frame 3
stop();
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 3
stop();
Symbol 1408 MovieClip Frame 1
stop();
Symbol 1408 MovieClip Frame 2
stop();
Symbol 1408 MovieClip Frame 3
stop();
Symbol 1412 MovieClip Frame 1
stop();
Symbol 1412 MovieClip Frame 2
stop();
Symbol 1412 MovieClip Frame 3
stop();
Symbol 1416 MovieClip Frame 1
stop();
Symbol 1416 MovieClip Frame 2
stop();
Symbol 1416 MovieClip Frame 3
stop();
Symbol 1420 MovieClip Frame 1
stop();
Symbol 1420 MovieClip Frame 2
stop();
Symbol 1420 MovieClip Frame 3
stop();
Symbol 1424 MovieClip Frame 1
stop();
Symbol 1424 MovieClip Frame 2
stop();
Symbol 1424 MovieClip Frame 3
stop();
Symbol 1428 MovieClip Frame 1
stop();
Symbol 1428 MovieClip Frame 2
stop();
Symbol 1428 MovieClip Frame 3
stop();
Symbol 1432 MovieClip Frame 1
stop();
Symbol 1432 MovieClip Frame 2
stop();
Symbol 1432 MovieClip Frame 3
stop();
Symbol 1436 MovieClip Frame 1
stop();
Symbol 1436 MovieClip Frame 2
stop();
Symbol 1436 MovieClip Frame 3
stop();
Symbol 1445 MovieClip Frame 1
stop();
Symbol 1445 MovieClip Frame 2
stop();
Symbol 1445 MovieClip Frame 3
stop();
Symbol 1449 MovieClip Frame 1
stop();
Symbol 1449 MovieClip Frame 2
stop();
Symbol 1449 MovieClip Frame 3
stop();
Symbol 1453 MovieClip Frame 1
stop();
Symbol 1453 MovieClip Frame 2
stop();
Symbol 1453 MovieClip Frame 3
stop();
Symbol 1457 MovieClip Frame 1
stop();
Symbol 1457 MovieClip Frame 2
stop();
Symbol 1457 MovieClip Frame 3
stop();
Symbol 1461 MovieClip Frame 1
stop();
Symbol 1461 MovieClip Frame 2
stop();
Symbol 1461 MovieClip Frame 3
stop();
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1465 MovieClip Frame 2
stop();
Symbol 1465 MovieClip Frame 3
stop();
Symbol 1469 MovieClip Frame 1
stop();
Symbol 1469 MovieClip Frame 2
stop();
Symbol 1469 MovieClip Frame 3
stop();
Symbol 1473 MovieClip Frame 1
stop();
Symbol 1473 MovieClip Frame 2
stop();
Symbol 1473 MovieClip Frame 3
stop();
Symbol 1477 MovieClip Frame 1
stop();
Symbol 1477 MovieClip Frame 2
stop();
Symbol 1477 MovieClip Frame 3
stop();
Symbol 1481 MovieClip Frame 1
stop();
Symbol 1481 MovieClip Frame 2
stop();
Symbol 1481 MovieClip Frame 3
stop();
Symbol 1485 MovieClip Frame 1
stop();
Symbol 1485 MovieClip Frame 2
stop();
Symbol 1485 MovieClip Frame 3
stop();
Symbol 1489 MovieClip Frame 1
stop();
Symbol 1489 MovieClip Frame 2
stop();
Symbol 1489 MovieClip Frame 3
stop();
Symbol 1493 MovieClip Frame 1
stop();
Symbol 1493 MovieClip Frame 2
stop();
Symbol 1493 MovieClip Frame 3
stop();
Symbol 1497 MovieClip Frame 1
stop();
Symbol 1497 MovieClip Frame 2
stop();
Symbol 1497 MovieClip Frame 3
stop();
Symbol 1501 MovieClip Frame 1
stop();
Symbol 1501 MovieClip Frame 2
stop();
Symbol 1501 MovieClip Frame 3
stop();
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1505 MovieClip Frame 2
stop();
Symbol 1505 MovieClip Frame 3
stop();
Symbol 1509 MovieClip Frame 1
stop();
Symbol 1509 MovieClip Frame 2
stop();
Symbol 1509 MovieClip Frame 3
stop();
Symbol 1513 MovieClip Frame 1
stop();
Symbol 1513 MovieClip Frame 2
stop();
Symbol 1513 MovieClip Frame 3
stop();
Symbol 1517 MovieClip Frame 1
stop();
Symbol 1517 MovieClip Frame 2
stop();
Symbol 1517 MovieClip Frame 3
stop();
Symbol 1521 MovieClip Frame 1
stop();
Symbol 1521 MovieClip Frame 2
stop();
Symbol 1521 MovieClip Frame 3
stop();
Symbol 1525 MovieClip Frame 1
stop();
Symbol 1525 MovieClip Frame 2
stop();
Symbol 1525 MovieClip Frame 3
stop();
Symbol 1529 MovieClip Frame 1
stop();
Symbol 1529 MovieClip Frame 2
stop();
Symbol 1529 MovieClip Frame 3
stop();
Symbol 1533 MovieClip Frame 1
stop();
Symbol 1533 MovieClip Frame 2
stop();
Symbol 1533 MovieClip Frame 3
stop();
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1537 MovieClip Frame 2
stop();
Symbol 1537 MovieClip Frame 3
stop();
Symbol 1541 MovieClip Frame 1
stop();
Symbol 1541 MovieClip Frame 2
stop();
Symbol 1541 MovieClip Frame 3
stop();
Symbol 1545 MovieClip Frame 1
stop();
Symbol 1545 MovieClip Frame 2
stop();
Symbol 1545 MovieClip Frame 3
stop();
Symbol 1549 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 2
stop();
Symbol 1549 MovieClip Frame 3
stop();
Symbol 1553 MovieClip Frame 1
stop();
Symbol 1553 MovieClip Frame 2
stop();
Symbol 1553 MovieClip Frame 3
stop();
Symbol 1557 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 2
stop();
Symbol 1557 MovieClip Frame 3
stop();
Symbol 1561 MovieClip Frame 1
stop();
Symbol 1561 MovieClip Frame 2
stop();
Symbol 1561 MovieClip Frame 3
stop();
Symbol 1562 MovieClip Frame 1
stop();
Symbol 1562 MovieClip Frame 2
stop();
Symbol 1563 MovieClip Frame 1
stop();
Symbol 1563 MovieClip Frame 2
stop();
Symbol 1564 MovieClip Frame 1
stop();
Symbol 1564 MovieClip Frame 2
stop();
Symbol 1577 MovieClip Frame 1
stop();
Symbol 1577 MovieClip Frame 2
stop();
Symbol 1577 MovieClip Frame 3
stop();
Symbol 1581 MovieClip Frame 1
stop();
Symbol 1581 MovieClip Frame 2
stop();
Symbol 1581 MovieClip Frame 3
stop();
Symbol 1585 MovieClip Frame 1
stop();
Symbol 1585 MovieClip Frame 2
stop();
Symbol 1585 MovieClip Frame 3
stop();
Symbol 1589 MovieClip Frame 1
stop();
Symbol 1589 MovieClip Frame 2
stop();
Symbol 1589 MovieClip Frame 3
stop();
Symbol 1597 MovieClip Frame 1
stop();
Symbol 1597 MovieClip Frame 2
stop();
Symbol 1597 MovieClip Frame 3
stop();
Symbol 1601 MovieClip Frame 1
stop();
Symbol 1601 MovieClip Frame 2
stop();
Symbol 1601 MovieClip Frame 3
stop();
Symbol 1605 MovieClip Frame 1
stop();
Symbol 1605 MovieClip Frame 2
stop();
Symbol 1605 MovieClip Frame 3
stop();
Symbol 1609 MovieClip Frame 1
stop();
Symbol 1609 MovieClip Frame 2
stop();
Symbol 1609 MovieClip Frame 3
stop();
Symbol 1613 MovieClip Frame 1
stop();
Symbol 1613 MovieClip Frame 2
stop();
Symbol 1613 MovieClip Frame 3
stop();
Symbol 1617 MovieClip Frame 1
stop();
Symbol 1617 MovieClip Frame 2
stop();
Symbol 1617 MovieClip Frame 3
stop();
Symbol 1621 MovieClip Frame 1
stop();
Symbol 1621 MovieClip Frame 2
stop();
Symbol 1621 MovieClip Frame 3
stop();
Symbol 1625 MovieClip Frame 1
stop();
Symbol 1625 MovieClip Frame 2
stop();
Symbol 1625 MovieClip Frame 3
stop();
Symbol 1629 MovieClip Frame 1
stop();
Symbol 1629 MovieClip Frame 2
stop();
Symbol 1629 MovieClip Frame 3
stop();
Symbol 1633 MovieClip Frame 1
stop();
Symbol 1633 MovieClip Frame 2
stop();
Symbol 1633 MovieClip Frame 3
stop();
Symbol 1637 MovieClip Frame 1
stop();
Symbol 1637 MovieClip Frame 2
stop();
Symbol 1637 MovieClip Frame 3
stop();
Symbol 1641 MovieClip Frame 1
stop();
Symbol 1641 MovieClip Frame 2
stop();
Symbol 1641 MovieClip Frame 3
stop();
Symbol 1645 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 2
stop();
Symbol 1645 MovieClip Frame 3
stop();
Symbol 1649 MovieClip Frame 1
stop();
Symbol 1649 MovieClip Frame 2
stop();
Symbol 1649 MovieClip Frame 3
stop();
Symbol 1653 MovieClip Frame 1
stop();
Symbol 1653 MovieClip Frame 2
stop();
Symbol 1653 MovieClip Frame 3
stop();
Symbol 1657 MovieClip Frame 1
stop();
Symbol 1657 MovieClip Frame 2
stop();
Symbol 1657 MovieClip Frame 3
stop();
Symbol 1661 MovieClip Frame 1
stop();
Symbol 1661 MovieClip Frame 2
stop();
Symbol 1661 MovieClip Frame 3
stop();
Symbol 1665 MovieClip Frame 1
stop();
Symbol 1665 MovieClip Frame 2
stop();
Symbol 1665 MovieClip Frame 3
stop();
Symbol 1670 MovieClip Frame 1
stop();
Symbol 1670 MovieClip Frame 2
stop();
Symbol 1671 MovieClip Frame 1
stop();
Symbol 1671 MovieClip Frame 2
stop();
Symbol 1672 MovieClip Frame 1
stop();
Symbol 1672 MovieClip Frame 2
stop();
Symbol 1694 MovieClip Frame 5
stop();
Symbol 1697 MovieClip Frame 30
stop();
Symbol 1700 MovieClip Frame 30
stop();
Symbol 1701 MovieClip Frame 30
stop();
Symbol 1704 MovieClip Frame 30
stop();
Symbol 1707 MovieClip Frame 30
stop();
Symbol 1708 MovieClip Frame 30
stop();
Symbol 1709 MovieClip Frame 30
stop();
Symbol 1710 MovieClip Frame 30
stop();
Symbol 1711 MovieClip Frame 30
stop();
Symbol 1712 MovieClip Frame 1
stop();
Symbol 1712 MovieClip Frame 2
stop();
Symbol 1712 MovieClip Frame 3
stop();
Symbol 1712 MovieClip Frame 4
stop();
Symbol 1712 MovieClip Frame 5
stop();
Symbol 1712 MovieClip Frame 6
stop();
Symbol 1712 MovieClip Frame 7
stop();
Symbol 1712 MovieClip Frame 8
stop();
Symbol 1712 MovieClip Frame 9
stop();
Symbol 1712 MovieClip Frame 10
stop();
Symbol 1712 MovieClip Frame 11
stop();