Frame 1
stop();
soundon = 1;
Instance of Symbol 155 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
_xscale = (100 - PercentLoaded);
} else {
_root.gotoAndStop("menu");
}
}
Frame 2
stop();
started = 0;
health = 100;
collect = new Sound();
collect.attachSound("collect");
crash = new Sound();
crash.attachSound("crash");
smash = new Sound();
smash.attachSound("smash");
land = new Sound();
land.attachSound("land");
pistol = new Sound();
pistol.attachSound("pistol");
uzi = new Sound();
uzi.attachSound("uzi");
shotgun = new Sound();
shotgun.attachSound("shotgun");
ak = new Sound();
ak.attachSound("ak");
minigun = new Sound();
minigun.attachSound("minigun");
bazooka = new Sound();
bazooka.attachSound("bazooka");
hit = new Sound();
hit.attachSound("hit");
owl = new Sound();
owl.attachSound("owl");
wolf = new Sound();
wolf.attachSound("wolf");
oomf = new Sound();
oomf.attachSound("oomf");
reloadsound = new Sound();
reloadsound.attachSound("reload");
roll = new Sound();
roll.attachSound("click");
pressed = new Sound();
pressed.attachSound("press");
music = new Sound();
music.attachSound("music");
music.start(0, 999);
Instance of Symbol 263 MovieClip "black" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.started == 1) {
_alpha = (_alpha + 5);
if (_root.soundon == 1) {
_root.hit.setVolume(_root.hit.getVolume() - 5);
}
if (this._alpha > 99) {
_root.gotoAndStop("game");
}
} else {
_alpha = 0;
}
}
Frame 3
if (soundon == 1) {
hit.setVolume(100);
}
section1 = [7, 4, 12];
section2 = [3, 1, 11, 13];
section3 = [2, 11, 16];
section4 = [10];
section5 = [6];
section7 = [5, 1];
section8 = [5, 6];
section9 = [1, 4, 7];
section10 = [14, 1, 7];
section13 = [2, 14, 15, 1, 7, 8];
section14 = [10, 15, 1, 7, 19];
section15 = [13, 14, 1, 7, 19];
section16 = [17];
section17 = [11];
section19 = [8];
music.stop();
speedlevel = 0;
reloadlevel = 0;
strengthlevel = 0;
turretfirerate = 0;
turretaccuracy = 0;
turretdamage = 0;
turretnumber = 0;
grav = 0.5;
yspeed = 0;
xspeed = 0;
right = 39;
left = 37;
up = 38;
reload = 40;
jump = 88;
pickup = 90;
shoot = 67;
speed = 1.5;
dir = 1;
section = 0;
air = 0;
shoottimer = 0;
jumpheight = 7;
weapon = 0;
released = 1;
level = 2;
ammo = 0;
enemyarray = [];
reloadtimer++;
gunsarray = [[1, 10, 7, 1, 40, 50, "Pistol", pistol], [1, 3, 30, 15, 10, 50, "Uzi", uzi], [0.9, 15, 1, 1, 100, 50, "Shotgun", shotgun], [0.85, 15, 2, 1, 100, 50, "Double Barrel Shotgun", shotgun], [0.85, 3, 50, 5, 40, 50, "AK-47", ak], [0.8, 1, 200, 20, 10, 100, "Minigun", minigun], [0.8, 1, 1, 1, 1, 20, "Bazooka", bazooka]];
itemarray = [[430, 296, 1], [40, 570, 2], [560, 525, 3], [565, 525, 3], [570, 525, 3]];
levelarray = [[0, 1, 1], [5, 2, 2], [15, 3, 3], [25, 4, 4], [40, 5, 5], [50, 5, 6], [60, 6, 7], [100, 7, 7]];
onlevel = 0;
health = 100;
bonustimer = 1000;
bonustime = 1000;
killcount = 0;
enemycount = 0;
money = 0;
gamepause = 0;
pauserelease = 1;
placingturret = 0;
score = 0;
i = 0;
while (i < itemarray.length) {
attachMovie("item", "item" + level, level);
_root["item" + level]._x = itemarray[i][0];
_root["item" + level]._y = itemarray[i][1];
_root["item" + level].item.gotoAndStop(itemarray[i][2] + 1);
level++;
i++;
}
Mouse.hide();
onEnterFrame = function () {
if (_currentframe == 3) {
if (health <= 0) {
gotoAndStop ("gameover");
}
healthbar.health._xscale = healthbar.health._xscale + ((health - healthbar.health._xscale) / 10);
if (Key.isDown(80)) {
if (pauserelease == 1) {
if (gamepause == 0) {
Mouse.show();
gamepause = 1;
i = 1;
while (i <= 9) {
_root["spawn" + i].stop();
i++;
}
attachMovie("buymenu", "buymenu", level);
buymenu._x = 400;
buymenu._y = 300;
level++;
} else if (placingturret == 0) {
i = 1;
while (i <= 9) {
if (_root["spawn" + i]._currentframe != 1) {
_root["spawn" + i].play();
}
i++;
}
Mouse.hide();
gamepause = 0;
}
pauserelease = 0;
}
} else {
pauserelease = 1;
}
moneybox.text = "Money: $" + money;
if (gamepause == 0) {
if (int(random(500)) == 50) {
owl.start();
} else if (int(random(500)) == 50) {
wolf.start();
}
i = 1;
while (i <= 3) {
if (backimage["cloud" + i]._x > 600) {
backimage["cloud" + i].xspeed = -1 - random(1);
backimage["cloud" + i]._y = -300 + random(400);
backimage["cloud" + i].gotoAndStop(1 + int(random(6)));
} else if (backimage["cloud" + i]._x < -600) {
backimage["cloud" + i].xspeed = 1 + random(1);
backimage["cloud" + i]._y = -300 + random(400);
backimage["cloud" + i].gotoAndStop(1 + int(random(6)));
}
backimage["cloud" + i]._x = backimage["cloud" + i]._x + backimage["cloud" + i].xspeed;
i++;
}
if (enemycount < levelarray[onlevel][1]) {
if (random(20) == 1) {
_root["spawn" + (1 + random(9))].play();
}
}
killcountbox.text = "Kills: " + killcount;
bonustimer++;
if (bonustimer > bonustime) {
bonustimer = 0;
attachMovie("parcel", "parcel" + level, level);
_root["parcel" + level]._x = random(800);
level++;
}
if (Key.isDown(reload)) {
ammo = 0;
}
ammobox.text = "";
_root.createEmptyMovieClip("lines", 1);
yspeed = yspeed + grav;
guy._y = guy._y + yspeed;
guy._x = guy._x + xspeed;
xspeed = xspeed * 0.7;
if (Key.isDown(right)) {
xspeed = xspeed + (speed + (speedlevel / 5));
dir = 1;
if (air == 0) {
guy.guy.gotoAndStop(2);
}
if (weapon == 0) {
guy.guy.guy.arms.arms.play();
}
} else if (Key.isDown(left)) {
xspeed = xspeed - (speed + (speedlevel / 5));
dir = 2;
if (air == 0) {
guy.guy.gotoAndStop(2);
}
if (weapon == 0) {
guy.guy.guy.arms.arms.play();
}
} else if (air == 0) {
guy.guy.gotoAndStop(1);
}
if (dir == 1) {
guy.gotoAndStop(1);
} else {
guy.gotoAndStop(2);
}
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(guy._x, guy._y, true)) {
section = i;
break;
}
i++;
}
if (back.hitTest(guy._x, guy._y + 10, true)) {
yspeed = 0;
if (air == 1) {
land.start();
}
air = 0;
if (Key.isDown(jump)) {
if (released == 1) {
yspeed = -jumpheight;
guy.guy.gotoAndStop(3);
air = 1;
released = 0;
}
} else {
released = 1;
}
i = 0;
while (i < 100) {
guy._y = guy._y - grav;
if (!back.hitTest(guy._x, guy._y + 9, true)) {
break;
}
i++;
}
} else {
air = 1;
}
if (back.hitTest(guy._x, guy._y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
guy._y = guy._y + grav;
if (!back.hitTest(guy._x, guy._y - 11, true)) {
break;
}
i++;
}
}
if ((back.hitTest(guy._x + 5, guy._y + 6, true) or back.hitTest(guy._x + 5, guy._y - 6, true)) or back.hitTest(guy._x + 5, guy._y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
guy._x = guy._x - speed;
if (!((back.hitTest(guy._x + 4, guy._y + 6, true) or back.hitTest(guy._x + 6, guy._y - 6, true)) or back.hitTest(guy._x + 4, guy._y, true))) {
break;
}
i++;
}
}
if ((back.hitTest(guy._x - 5, guy._y + 6, true) or back.hitTest(guy._x - 5, guy._y - 6, true)) or back.hitTest(guy._x - 5, guy._y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
guy._x = guy._x + speed;
if (!((back.hitTest(guy._x - 4, guy._y + 6, true) or back.hitTest(guy._x - 4, guy._y - 6, true)) or back.hitTest(guy._x - 4, guy._y, true))) {
break;
}
i++;
}
}
if (guy._x < 0) {
guy._x = 800;
} else if (guy._x > 800) {
guy._x = 0;
}
if (guy._y > 600) {
guy._y = 0;
}
if (weapon > 0) {
guy.guy.guy.arms.gotoAndStop(2);
guy.guy.guy.arms.arms.weapon.weapon.gotoAndStop(weapon);
gunimage.gotoAndStop(weapon);
if (weapon > 1) {
ammobox.text = (gunsarray[weapon - 2][6] + "\nAmmo: ") + ((ammo + "/") + gunsarray[weapon - 2][2]);
if (ammo > 0) {
reloadtimer = 0;
if (Key.isDown(shoot)) {
shoottimer++;
if (shoottimer > gunsarray[weapon - 2][1]) {
shoottimer = 0;
if (weapon == 8) {
attachMovie("item", "item" + level, level);
_root["item" + level].item.gotoAndStop(5);
_root["item" + level].thrown = 1;
_root["item" + level].holding = 0;
if (Key.isDown(up)) {
_root["item" + level]._y = guy._y - 10;
_root["item" + level].yspeed = -10;
if (dir == 1) {
_root["item" + level].xspeed = 1;
_root["item" + level]._x = guy._x - 1;
} else {
_root["item" + level].xspeed = -1;
_root["item" + level]._x = guy._x + 1;
}
} else if (dir == 1) {
_root["item" + level].yspeed = -1;
_root["item" + level].xspeed = 15;
_root["item" + level]._x = guy._x + 10;
_root["item" + level]._y = guy._y - 6;
} else {
_root["item" + level].yspeed = -1;
_root["item" + level].xspeed = -15;
_root["item" + level]._x = guy._x - 10;
_root["item" + level]._y = guy._y - 6;
}
level++;
ammo--;
} else if (Key.isDown(up)) {
i = 0;
while (i <= 600) {
j = 0;
while (j <= enemyarray.length) {
if ((((guy._x > (enemyarray[j][0] - 5)) and (guy._x < (enemyarray[j][0] + 5))) and ((guy._y - i) > (enemyarray[j][1] - 11))) and ((guy._y - i) < (enemyarray[j][1] + 11))) {
enemyhit = enemyarray[j][2];
break;
}
enemyhit = 0;
j++;
}
if ((enemyhit != 0) and (enemyhit.alive == 1)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x - 5, enemyhit._y);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + 0, enemyhit._y);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + 5, enemyhit._y);
} else {
lineStyle(1, 0, 50);
lineStyle(1, 0, 50);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])), enemyhit._y - i);
}
}
bloodfunc(guy._x, enemyhit._y, 1);
enemyhit.dir = dir;
enemyhit.health = enemyhit.health - gunsarray[weapon - 2][4];
enemyhit.yspeed = enemyhit.yspeed - 5;
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
hit.start();
break;
}
if (back.hitTest(guy._x, guy._y - i, true) or (i == 600)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x - 5, guy._y - i);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + 0, guy._y - i);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + 5, guy._y - i);
} else {
lineStyle(1, 0, 50);
moveTo(guy._x, guy._y - 20);
lineTo(guy._x + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])), guy._y - i);
}
}
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
break;
}
enemyhit = 0;
i = i + 5;
}
} else if (dir == 1) {
i = 0;
while (i <= 600) {
j = 0;
while (j <= enemyarray.length) {
if (((((guy._x + i) > (enemyarray[j][0] - 5)) and ((guy._x + i) < (enemyarray[j][0] + 5))) and ((guy._y - 6) > (enemyarray[j][1] - 11))) and ((guy._y - 6) < (enemyarray[j][1] + 11))) {
enemyhit = enemyarray[j][2];
break;
}
enemyhit = 0;
j++;
}
if ((enemyhit != 0) and (enemyhit.alive == 1)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x + 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 11);
moveTo(guy._x + 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 6);
moveTo(guy._x + 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 1);
} else {
lineStyle(1, 0, 50);
moveTo(guy._x + 20, guy._y - 6);
lineTo(enemyhit._x, (guy._y - 6) + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])));
}
}
bloodfunc(enemyhit._x, guy._y - 6, 1);
enemyhit.dir = 2;
enemyhit.health = enemyhit.health - gunsarray[weapon - 2][4];
enemyhit.xspeed = 5;
hit.start();
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
break;
}
if (back.hitTest(guy._x + i, guy._y - 5, true) or (i == 600)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x + 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 11);
moveTo(guy._x + 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 6);
moveTo(guy._x + 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 1);
} else {
lineStyle(1, 0, 50);
moveTo(guy._x + 20, guy._y - 6);
lineTo(guy._x + i, (guy._y - 6) + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])));
}
}
if (back.trapdoor._currentframe == 1) {
if (((((guy._x + i) > (back.trapdoor._x + 280)) and ((guy._x + i) < (back.trapdoor._x + 320))) and ((guy._y - 6) < (back.trapdoor._y + 320))) and ((guy._y - 6) > (back.trapdoor._y + 280))) {
back.trapdoor.play();
}
} else if (back.wall._currentframe != 5) {
if (((((guy._x + i) > (back.wall._x + 280)) and ((guy._x + i) < (back.wall._x + 320))) and ((guy._y - 6) < (back.wall._y + 320))) and ((guy._y - 6) > (back.wall._y + 280))) {
back.wall.play();
}
}
if (back.softwall._currentframe != 6) {
if (((((guy._x + i) > (back.softwall._x + 280)) and ((guy._x + i) < (back.softwall._x + 320))) and ((guy._y - 6) < (back.softwall._y + 320))) and ((guy._y - 6) > (back.softwall._y + 280))) {
back.softwall.play();
}
}
if (back.softwall4._currentframe != 4) {
if (((((guy._x + i) > (back.softwall4._x + 280)) and ((guy._x + i) < (back.softwall4._x + 320))) and ((guy._y - 6) < (back.softwall4._y + 320))) and ((guy._y - 6) > (back.softwall4._y + 280))) {
back.softwall4.play();
}
}
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
break;
}
enemyhit = 0;
i = i + 5;
}
} else if (dir == 2) {
i = 0;
while (i >= -600) {
j = 0;
while (j <= enemyarray.length) {
if (((((guy._x + i) > (enemyarray[j][0] - 5)) and ((guy._x + i) < (enemyarray[j][0] + 5))) and ((guy._y - 6) > (enemyarray[j][1] - 11))) and ((guy._y - 6) < (enemyarray[j][1] + 11))) {
enemyhit = enemyarray[j][2];
break;
}
enemyhit = 0;
j++;
}
if ((enemyhit != 0) and (enemyhit.alive == 1)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x - 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 11);
moveTo(guy._x - 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 6);
moveTo(guy._x - 20, guy._y - 6);
lineTo(enemyhit._x, guy._y - 1);
} else {
lineStyle(1, 0, 50);
moveTo(guy._x - 20, guy._y - 6);
lineTo(enemyhit._x, (guy._y - 6) + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])));
}
}
bloodfunc(enemyhit._x, guy._y - 6, 2);
enemyhit.dir = 1;
enemyhit.health = enemyhit.health - gunsarray[weapon - 2][4];
enemyhit.xspeed = -5;
hit.start();
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
break;
}
if (back.hitTest(guy._x + i, guy._y - 5, true) or (i == -600)) {
with (lines) {
if ((weapon == 4) or (weapon == 5)) {
lineStyle(1, 0, 15);
moveTo(guy._x - 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 11);
moveTo(guy._x - 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 6);
moveTo(guy._x - 20, guy._y - 6);
lineTo(guy._x + i, guy._y - 1);
} else {
lineStyle(1, 0, 50);
moveTo(guy._x - 20, guy._y - 6);
lineTo(guy._x + i, (guy._y - 6) + ((-(gunsarray[weapon - 2][3] / 2)) + random(gunsarray[weapon - 2][3])));
}
}
if (back.softwall2._currentframe != 6) {
if (((((guy._x + i) > (back.softwall2._x + 280)) and ((guy._x + i) < (back.softwall2._x + 320))) and ((guy._y - 6) < (back.softwall2._y + 320))) and ((guy._y - 6) > (back.softwall2._y + 280))) {
back.softwall2.play();
}
}
if (back.softwall3._currentframe != 6) {
if (((((guy._x + i) > (back.softwall3._x + 280)) and ((guy._x + i) < (back.softwall3._x + 320))) and ((guy._y - 6) < (back.softwall3._y + 320))) and ((guy._y - 6) > (back.softwall3._y + 280))) {
back.softwall3.play();
}
}
if (back.softcorner._currentframe != 5) {
if (((((guy._x + i) > (back.softcorner._x + 280)) and ((guy._x + i) < (back.softcorner._x + 320))) and ((guy._y - 6) < (back.softcorner._y + 320))) and ((guy._y - 6) > (back.softcorner._y + 280))) {
back.softcorner.play();
}
}
ammo--;
guy.guy.guy.arms.arms.gotoAndPlay(1);
break;
}
enemyhit = 0;
i = i - 5;
}
}
gunsarray[weapon - 2][7].start();
}
} else {
shoottimer = gunsarray[weapon - 2][1];
}
} else {
reloadtimer = reloadtimer + (1 + (reloadlevel / 1.5));
if (reloadtimer > gunsarray[weapon - 2][5]) {
reloadsound.start();
reloadtimer = 0;
ammo = gunsarray[weapon - 2][2];
}
}
xspeed = xspeed * gunsarray[weapon - 2][0];
if (Key.isDown(up)) {
guy.guy.guy.arms.arms._rotation = -90;
} else {
guy.guy.guy.arms.arms._rotation = 0;
}
if (Key.isDown(pickup)) {
if (pickupreleased == 1) {
pickupreleased = 0;
guy.guy.guy.arms.gotoAndStop(1);
attachMovie("item", "item" + level, level);
_root["item" + level].item.weapon.gotoAndStop(weapon);
_root["item" + level]._x = guy._x;
_root["item" + level]._y = guy._y;
_root["item" + level].thrown = 1;
_root["item" + level].holding = 0;
if (Key.isDown(up)) {
_root["item" + level].yspeed = -10;
if (dir == 1) {
_root["item" + level].xspeed = 3;
} else {
_root["item" + level].xspeed = -3;
}
} else if (dir == 1) {
_root["item" + level].yspeed = -3;
_root["item" + level].xspeed = 10;
} else {
_root["item" + level].yspeed = -3;
_root["item" + level].xspeed = -10;
}
level++;
weapon = 0;
}
}
} else {
xspeed = xspeed * 0.8;
}
} else {
gunimage.gotoAndStop(1);
}
if (Key.isDown(pickup)) {
} else {
pickupreleased = 1;
}
} else {
guy.guy.guy.stop();
}
}
};
bloodfunc = function (xpos, ypos, blooddir) {
attachMovie("blood2", "blood" + level, level);
_root["blood" + level]._x = xpos;
_root["blood" + level]._y = ypos;
_root["blood" + level].dir = blooddir;
level++;
};
stop();
Frame 4
stop();
Mouse.show();
scorebox.text = score;
while (level > 0) {
level--;
_root["item" + level].removeMovieClip();
_root["blood" + level].removeMovieClip();
_root["parcel" + level].removeMovieClip();
_root["enemy" + level].removeMovieClip();
_root["piece" + level].removeMovieClip();
_root["weapon" + level].removeMovieClip();
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip [item] Frame 1
if (!((thrown == 1) or (thrown == 0))) {
yspeed = 0;
xspeed = 0;
thrown = 0;
holding = 0;
}
onEnterFrame = function () {
if (_root.gamepause == 0) {
if (Key.isDown(_root.pickup)) {
if (_root.guy.hitTest(this)) {
if (thrown == 0) {
if (_root.weapon == 0) {
if (released == 1) {
if (_root.pickupreleased == 1) {
_root.pickupreleased = 0;
released = 0;
holding = 1;
_root.collect.start();
_root.weapon = 1;
}
}
}
}
}
} else {
released = 1;
}
if (holding == 1) {
if (_root.dir == 1) {
_x = (_root.guy._x + 5);
} else {
_x = (_root.guy._x - 5);
}
_y = (_root.guy._y - 5);
if (Key.isDown(_root.pickup)) {
if (released == 1) {
if (_root.pickupreleased == 1) {
_root.pickupreleased = 0;
_root.weapon = 0;
thrown = 1;
holding = 0;
if (Key.isDown(_root.up)) {
if (_root.dir == 1) {
xspeed = 3;
} else {
xspeed = -3;
}
yspeed = -10;
} else {
if (_root.dir == 1) {
xspeed = 10;
} else {
xspeed = -10;
}
yspeed = -3;
}
}
}
}
} else if (thrown == 1) {
yspeed = yspeed + _root.grav;
_rotation = (_rotation + xspeed);
k = 0;
while (k < Math.sqrt(xspeed * xspeed)) {
if (xspeed > 0) {
_x = (_x + 1);
} else {
_x = (_x - 1);
}
_y = (_y + (yspeed / Math.sqrt(xspeed * xspeed)));
l = 0;
while (l < _root.enemyarray.length) {
if (_root.enemyarray[l][2].alive == 1) {
if ((((_x > (_root.enemyarray[l][0] - 5)) and (_x < (_root.enemyarray[l][0] + 5))) and (_y > (_root.enemyarray[l][1] - 11))) and (_y < (_root.enemyarray[l][1] + 11))) {
i = -2;
while (i <= 2) {
if (i != 0) {
_root.attachMovie("piece", "piece" + _root.level, _root.level);
_root["piece" + _root.level]._x = _x;
_root["piece" + _root.level]._y = _y;
_root["piece" + _root.level]._height = _height / 2;
_root["piece" + _root.level]._width = _width / 2;
if (xspeed < 0) {
_root["piece" + _root.level].xspeed = 4 - i;
} else {
_root["piece" + _root.level].xspeed = -4 + i;
}
_root["piece" + _root.level].yspeed = -2 + i;
_root.level++;
}
i++;
}
if (xspeed > 0) {
_root.enemyarray[l][2].dir = 1;
_root.enemyarray[l][2].xspeed = 5;
_root.bloodfunc(_x, _y, 1);
} else {
_root.enemyarray[l][2].dir = 2;
_root.enemyarray[l][2].xspeed = -5;
_root.bloodfunc(_x, _y, 2);
}
_root.enemyarray[l][2].health = 0;
if (_root["piece" + _root.level].yspeed < 0) {
_root["piece" + _root.level].yspeed = 0;
}
_root.hit.start();
_root.smash.start();
this.removeMovieClip();
}
}
l++;
}
if (_root.back.hitTest(this._x, this._y, true)) {
i = -2;
while (i <= 2) {
if (i != 0) {
_root.attachMovie("piece", "piece" + _root.level, _root.level);
_root["piece" + _root.level]._x = _x;
_root["piece" + _root.level]._y = _y;
_root["piece" + _root.level]._height = _height / 2;
_root["piece" + _root.level]._width = _width / 2;
if (xspeed < 0) {
_root["piece" + _root.level].xspeed = 4 - i;
} else {
_root["piece" + _root.level].xspeed = -4 + i;
}
_root["piece" + _root.level].yspeed = -2 + i;
_root.level++;
}
i++;
}
_root.smash.start();
this.removeMovieClip();
}
k++;
}
}
if (_x < 0) {
_x = 800;
} else if (_x > 800) {
_x = 0;
}
if (_y > 600) {
_y = 0;
}
}
};
Symbol 35 MovieClip [piece] Frame 1
onEnterFrame = function () {
if (_root.gamepause == 0) {
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
_alpha = (_alpha - 6);
_rotation = (_rotation + xspeed);
if (_alpha < 10) {
this.removeMovieClip();
}
}
};
Symbol 41 MovieClip [weapon] Frame 1
landed = 0;
yspeed = 0;
timer = 0;
time = 500;
onEnterFrame = function () {
if (_root.gamepause == 0) {
point.play();
if (landed == 0) {
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
if (_root.back.hitTest(_x, _y + 1, true)) {
landed = 1;
i = 0;
while (i < 100) {
_y = (_y-1);
if (!_root.back.hitTest(_x, _y, true)) {
break;
}
i++;
}
}
} else {
timer++;
if (timer > time) {
_alpha = (_alpha-1);
}
if (_alpha < 1) {
this.removeMovieClip();
}
if (_root.weapon == 0) {
if (_root.guy.hitTest(this)) {
if (Key.isDown(_root.pickup)) {
if (_root.pickupreleased == 1) {
_root.pickupreleased = 0;
_root.collect.start();
_root.weapon = weapon._currentframe;
_root.ammo = _root.gunsarray[weapon._currentframe - 2][2];
this.removeMovieClip();
}
}
}
}
}
} else {
point.stop();
}
};
Symbol 48 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 13
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip [skeleton] Frame 1
if (varsset == 1) {
} else {
stop();
grav = 0.5;
yspeed = 0;
xspeed = 0;
dir = 1;
air = 0;
varsset = 1;
jump = 0;
alive = 1;
health = 100;
time = 100;
timer = 0;
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
section = i;
break;
}
i++;
}
point = _root["point" + section];
pos = _root.enemyarray.length;
_root.enemyarray.push([_x, _y, this]);
}
onEnterFrame = function () {
if (_root.gamepause == 0) {
if (alive == 1) {
xspeed = xspeed * 0.9;
if ((((point._x < (_x + 10)) and (point._x > (_x - 10))) and (point._y < (_y + 10))) and (point._y > (_y - 10))) {
section = _root["section" + section][int(random(_root["section" + section].length))];
point = _root["point" + section];
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
currentsection = i;
}
i++;
}
}
if (currentsection == _root.section) {
point = _root.guy;
} else {
point = _root["point" + section];
}
jump = 0;
i = 0;
while (i < _root.enemyarray.length) {
if (_root.enemyarray[i][2].alive == 1) {
if (this != _root.enemyarray[i][2]) {
if ((((_root.enemyarray[i][0] < (_x + 5)) and (_root.enemyarray[i][0] > (_x - 5))) and (_root.enemyarray[i][1] < (_y + 11))) and (_root.enemyarray[i][1] > (_y - 11))) {
if (_root.enemyarray[i][0] > _x) {
_root.enemyarray[i][2].xspeed = _root.enemyarray[i][2].xspeed + 2;
xspeed = xspeed - 2;
jump = 1;
}
}
}
}
i++;
}
_root.enemyarray[pos][0] = _x;
_root.enemyarray[pos][1] = _y;
if (_root.guy.hitTest(this)) {
if (_x > _root.guy._x) {
_root.xspeed = _root.xspeed - 2;
xspeed = xspeed + 2;
} else {
_root.xspeed = _root.xspeed + 2;
xspeed = xspeed - 2;
}
_root.oomf.start();
_root.health = _root.health - (1.5 - (_root.strengthlevel / 7));
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.6;
if ((point._x - 10) > _x) {
xspeed = xspeed + _root.speed;
dir = 1;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if ((point._x + 10) < _x) {
xspeed = xspeed - _root.speed;
dir = 2;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if (air == 0) {
guy.gotoAndStop(1);
if (point._y < _y) {
if ((_y - point._y) < 100) {
jump = 1;
}
}
}
if (dir == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
air = 0;
if (jumpfunc() == true) {
yspeed = -_root.jumpheight;
guy.gotoAndStop(3);
air = 1;
}
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
} else {
air = 1;
}
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_x < 0) {
if (section == 12) {
point = _root.point16;
section = 16;
}
_x = 800;
} else if (_x > 800) {
_x = 0;
if (section == 6) {
point = _root.point9;
section = 9;
} else if (section == 11) {
point = _root.point1;
section = 1;
}
}
if (_y > 600) {
_y = 0;
if (section == 9) {
point = _root.point1;
section = 1;
}
}
if (health < 5) {
_root.score++;
_root.money = _root.money + 100;
guy.gotoAndStop(4);
alive = 0;
_root.killcount++;
_root.enemycount--;
i = _root.levelarray.length - 1;
while (i >= 0) {
if (_root.killcount >= _root.levelarray[i][0]) {
_root.onlevel = i;
break;
}
i--;
}
}
} else {
timer++;
if (timer > time) {
_alpha = (_alpha-1);
}
if (_alpha < 10) {
_root.enemyarray.splice(pos, 1);
i = pos;
while (i < _root.enemyarray.length) {
_root.enemyarray[i][2].pos--;
i++;
}
this.removeMovieClip();
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.7;
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
}
}
} else {
guy.guy.stop();
}
};
jumpfunc = function () {
if (_root.back.hitTest(_x + 6, _y + 4, true)) {
return(true);
}
if (_root.back.hitTest(_x - 6, _y + 4, true)) {
return(true);
}
if (jump == 1) {
return(true);
}
};
onMouseDown = function () {
if ((((_root._xmouse > (_x - 5)) and (_root._xmouse < (_x + 5))) and (_root._ymouse > (_y - 11))) and (_root._ymouse < (_y + 11))) {
trace(section);
}
};
Symbol 62 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 13
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 MovieClip [zombie] Frame 1
if (varsset == 1) {
} else {
stop();
grav = 0.5;
yspeed = 0;
xspeed = 0;
dir = 1;
air = 0;
varsset = 1;
jump = 0;
alive = 1;
health = 150;
time = 100;
timer = 0;
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
section = i;
break;
}
i++;
}
point = _root["point" + section];
pos = _root.enemyarray.length;
_root.enemyarray.push([_x, _y, this]);
}
onEnterFrame = function () {
if (_root.gamepause == 0) {
if (alive == 1) {
if ((((point._x < (_x + 10)) and (point._x > (_x - 10))) and (point._y < (_y + 10))) and (point._y > (_y - 10))) {
section = _root["section" + section][int(random(_root["section" + section].length))];
point = _root["point" + section];
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
currentsection = i;
}
i++;
}
}
if (currentsection == _root.section) {
point = _root.guy;
} else {
point = _root["point" + section];
}
jump = 0;
i = 0;
while (i < _root.enemyarray.length) {
if (_root.enemyarray[i][2].alive == 1) {
if (this != _root.enemyarray[i][2]) {
if ((((_root.enemyarray[i][0] < (_x + 5)) and (_root.enemyarray[i][0] > (_x - 5))) and (_root.enemyarray[i][1] < (_y + 11))) and (_root.enemyarray[i][1] > (_y - 11))) {
if (_root.enemyarray[i][0] > _x) {
_root.enemyarray[i][2].xspeed = _root.enemyarray[i][2].xspeed + 2;
xspeed = xspeed - 2;
jump = 1;
}
}
}
}
i++;
}
_root.enemyarray[pos][0] = _x;
_root.enemyarray[pos][1] = _y;
if (_root.guy.hitTest(this)) {
if (_x > _root.guy._x) {
_root.xspeed = _root.xspeed - 2;
xspeed = xspeed + 2;
} else {
_root.xspeed = _root.xspeed + 2;
xspeed = xspeed - 2;
}
_root.oomf.start();
_root.health = _root.health - (1 - (_root.strengthlevel / 7));
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.5;
if ((point._x - 10) > _x) {
xspeed = xspeed + _root.speed;
dir = 1;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if ((point._x + 10) < _x) {
xspeed = xspeed - _root.speed;
dir = 2;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if (air == 0) {
guy.gotoAndStop(1);
if (point._y < _y) {
if ((_y - point._y) < 100) {
jump = 1;
}
}
}
if (dir == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
air = 0;
if (jumpfunc() == true) {
yspeed = -_root.jumpheight;
guy.gotoAndStop(3);
air = 1;
}
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
} else {
air = 1;
}
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_x < 0) {
if (section == 12) {
point = _root.point16;
section = 16;
}
_x = 800;
} else if (_x > 800) {
_x = 0;
if (section == 6) {
point = _root.point9;
section = 9;
} else if (section == 11) {
point = _root.point1;
section = 1;
}
}
if (_y > 600) {
_y = 0;
if (section == 9) {
point = _root.point1;
section = 1;
}
}
if (health < 5) {
_root.score++;
_root.money = _root.money + 100;
guy.gotoAndStop(4);
alive = 0;
_root.killcount++;
_root.enemycount--;
i = _root.levelarray.length - 1;
while (i >= 0) {
if (_root.killcount >= _root.levelarray[i][0]) {
_root.onlevel = i;
break;
}
i--;
}
}
} else {
timer++;
if (timer > time) {
_alpha = (_alpha-1);
}
if (_alpha < 10) {
_root.enemyarray.splice(pos, 1);
i = pos;
while (i < _root.enemyarray.length) {
_root.enemyarray[i][2].pos--;
i++;
}
this.removeMovieClip();
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.7;
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
}
}
} else {
guy.guy.stop();
}
};
jumpfunc = function () {
if (_root.back.hitTest(_x + 6, _y + 4, true)) {
return(true);
}
if (_root.back.hitTest(_x - 6, _y + 4, true)) {
return(true);
}
if (jump == 1) {
return(true);
}
};
onMouseDown = function () {
if ((((_root._xmouse > (_x - 5)) and (_root._xmouse < (_x + 5))) and (_root._ymouse > (_y - 11))) and (_root._ymouse < (_y + 11))) {
trace(section);
}
};
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 13
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 88 MovieClip [vampire] Frame 1
if (varsset == 1) {
} else {
stop();
grav = 0.5;
yspeed = 0;
xspeed = 0;
dir = 1;
air = 0;
varsset = 1;
jump = 0;
alive = 1;
health = 100;
time = 100;
timer = 0;
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
section = i;
break;
}
i++;
}
point = _root["point" + section];
pos = _root.enemyarray.length;
_root.enemyarray.push([_x, _y, this]);
}
onEnterFrame = function () {
if (_root.gamepause == 0) {
if (alive == 1) {
if (dir == 1) {
guy.cape.gotoAndStop(int(xspeed) + 1);
} else {
guy.cape.gotoAndStop(int(-xspeed) + 1);
}
if ((((point._x < (_x + 10)) and (point._x > (_x - 10))) and (point._y < (_y + 10))) and (point._y > (_y - 10))) {
section = _root["section" + section][int(random(_root["section" + section].length))];
point = _root["point" + section];
i = 1;
while (i <= 17) {
if (_root["point" + i].hitTest(_x, _y, true)) {
currentsection = i;
}
i++;
}
}
if (currentsection == _root.section) {
point = _root.guy;
} else {
point = _root["point" + section];
}
jump = 0;
i = 0;
while (i < _root.enemyarray.length) {
if (_root.enemyarray[i][2].alive == 1) {
if (this != _root.enemyarray[i][2]) {
if ((((_root.enemyarray[i][0] < (_x + 5)) and (_root.enemyarray[i][0] > (_x - 5))) and (_root.enemyarray[i][1] < (_y + 11))) and (_root.enemyarray[i][1] > (_y - 11))) {
if (_root.enemyarray[i][0] > _x) {
_root.enemyarray[i][2].xspeed = _root.enemyarray[i][2].xspeed + 2;
xspeed = xspeed - 2;
jump = 1;
}
}
}
}
i++;
}
_root.enemyarray[pos][0] = _x;
_root.enemyarray[pos][1] = _y;
if (_root.guy.hitTest(this)) {
if (_x > _root.guy._x) {
_root.xspeed = _root.xspeed - 2;
xspeed = xspeed + 2;
} else {
_root.xspeed = _root.xspeed + 2;
xspeed = xspeed - 2;
}
_root.oomf.start();
_root.health = _root.health - (1 - (_root.strengthlevel / 7));
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.7;
if ((point._x - 10) > _x) {
xspeed = xspeed + _root.speed;
dir = 1;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if ((point._x + 10) < _x) {
xspeed = xspeed - _root.speed;
dir = 2;
if (air == 0) {
guy.gotoAndStop(2);
}
guy.guy.arms.arms.play();
} else if (air == 0) {
guy.gotoAndStop(1);
if (point._y < _y) {
if ((_y - point._y) < 100) {
jump = 1;
}
}
}
if (dir == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
air = 0;
if (jumpfunc() == true) {
yspeed = -_root.jumpheight;
guy.gotoAndStop(3);
air = 1;
}
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
} else {
air = 1;
}
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_x < 0) {
if (section == 12) {
point = _root.point16;
section = 16;
}
_x = 800;
} else if (_x > 800) {
_x = 0;
if (section == 6) {
point = _root.point9;
section = 9;
} else if (section == 11) {
point = _root.point1;
section = 1;
}
}
if (_y > 600) {
_y = 0;
if (section == 9) {
point = _root.point1;
section = 1;
}
}
if (health < 5) {
_root.score++;
_root.money = _root.money + 100;
guy.gotoAndStop(4);
alive = 0;
_root.killcount++;
_root.enemycount--;
i = _root.levelarray.length - 1;
while (i >= 0) {
if (_root.killcount >= _root.levelarray[i][0]) {
_root.onlevel = i;
break;
}
i--;
}
}
} else {
timer++;
if (timer > time) {
_alpha = (_alpha-1);
}
if (_alpha < 10) {
_root.enemyarray.splice(pos, 1);
i = pos;
while (i < _root.enemyarray.length) {
_root.enemyarray[i][2].pos--;
i++;
}
this.removeMovieClip();
}
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed * 0.7;
if (_root.back.hitTest(_x, _y - 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y + _root.grav);
if (!_root.back.hitTest(_x, _y - 11, true)) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x + 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y - 6, true)) or _root.back.hitTest(_x + 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x - _root.speed);
if (!((_root.back.hitTest(_x + 4, _y + 6, true) or _root.back.hitTest(_x + 6, _y - 6, true)) or _root.back.hitTest(_x + 4, _y, true))) {
break;
}
i++;
}
}
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x - 5, _y - 6, true)) or _root.back.hitTest(_x - 5, _y, true)) {
xspeed = 0;
i = 0;
while (i < 100) {
_x = (_x + _root.speed);
if (!((_root.back.hitTest(_x - 4, _y + 6, true) or _root.back.hitTest(_x - 4, _y - 6, true)) or _root.back.hitTest(_x - 4, _y, true))) {
break;
}
i++;
}
}
if (_root.back.hitTest(_x, _y + 10, true)) {
yspeed = 0;
i = 0;
while (i < 100) {
_y = (_y - _root.grav);
if (!_root.back.hitTest(_x, _y + 9, true)) {
break;
}
i++;
}
}
}
} else {
guy.guy.stop();
}
};
jumpfunc = function () {
if (_root.back.hitTest(_x + 6, _y + 4, true)) {
return(true);
}
if (_root.back.hitTest(_x - 6, _y + 4, true)) {
return(true);
}
if (jump == 1) {
return(true);
}
};
onMouseDown = function () {
if ((((_root._xmouse > (_x - 5)) and (_root._xmouse < (_x + 5))) and (_root._ymouse > (_y - 11))) and (_root._ymouse < (_y + 11))) {
trace(section);
}
};
Symbol 90 MovieClip [blood] Frame 1
onEnterFrame = function () {
if (_root.gamepause == 0) {
_rotation = (_rotation + xspeed);
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
_x = (_x + xspeed);
_alpha = (_alpha - 5);
if (_alpha < 10) {
this.removeMovieClip();
}
}
};
Symbol 91 MovieClip [blood2] Frame 1
i = 1;
while (i < 5) {
_root.attachMovie("blood", "blood" + _root.level, _root.level);
_root["blood" + _root.level].bitsize = random(100);
_root["blood" + _root.level]._xscale = _root["blood" + _root.level].bitsize;
_root["blood" + _root.level]._yscale = _root["blood" + _root.level].bitsize;
_root["blood" + _root.level].yspeed = -i;
_root["blood" + _root.level]._x = _x;
_root["blood" + _root.level]._y = _y;
if (dir == 1) {
_root["blood" + _root.level].xspeed = i;
} else {
_root["blood" + _root.level].xspeed = -i;
}
_root.level++;
i++;
}
this.removeMovieClip();
Symbol 93 MovieClip [parcel] Frame 1
yspeed = 0;
onEnterFrame = function () {
if (_root.gamepause == 0) {
yspeed++;
j = 0;
while (j <= yspeed) {
_y = (_y + _root.grav);
if (_root.back.hitTest(_x + 6, _y + 6, true)) {
i = -2;
while (i <= 2) {
if (i != 0) {
_root.attachMovie("piece", "piece" + _root.level, _root.level);
_root["piece" + _root.level]._x = _x;
_root["piece" + _root.level]._y = _y;
_root["piece" + _root.level]._height = _height / 2;
_root["piece" + _root.level]._width = _width / 2;
_root["piece" + _root.level].xspeed = i;
_root["piece" + _root.level].yspeed = -6 + Math.sqrt(i * i);
_root.level++;
}
i++;
}
_root.attachMovie("weapon", "weapon" + _root.level, _root.level);
_root["weapon" + _root.level]._x = _x;
_root["weapon" + _root.level]._y = _y;
_root["weapon" + _root.level].weapon.gotoAndStop(2 + random(_root.levelarray[_root.onlevel][2]));
_root.level++;
_root.crash.start();
this.removeMovieClip();
}
j++;
}
}
};
Symbol 97 MovieClip [turret] Frame 1
landed = 0;
yspeed = 0;
target = 0;
accuracy = 10;
firerate = 10;
timer = 0;
damage = 10;
enemyhit = 0;
_root.turretnumber++;
onEnterFrame = function () {
if (_root.gamepause == 0) {
firerate = 10 - _root.turretfirerate;
accuracy = 10 - _root.turretaccuracy;
damage = 10 + (_root.turretdamage * 5);
if (landed == 0) {
yspeed = yspeed + _root.grav;
_y = (_y + yspeed);
if ((_root.back.hitTest(_x - 5, _y + 6, true) or _root.back.hitTest(_x + 5, _y + 6, true)) or _root.back.hitTest(_x, _y + 6, true)) {
landed = 1;
i = 0;
while (i < 100) {
_y = (_y-1);
if (!((_root.back.hitTest(_x - 5, _y + 5, true) or _root.back.hitTest(_x + 5, _y + 5, true)) or _root.back.hitTest(_x, _y + 5, true))) {
break;
}
i++;
}
}
} else {
_root.createEmptyMovieClip("lines" + linelevel, linelevel);
i = 0;
while (i <= _root.enemyarray.length) {
if (_root.enemyarray.length == i) {
target = 0;
break;
}
if ((((_root.enemyarray[i][2]._x < (_x + (100 + (_root.turretaccuracy * 20)))) and (_root.enemyarray[i][2]._x > (_x - (100 + (_root.turretaccuracy * 20))))) and (_root.enemyarray[i][2]._y < (_y + (100 + (_root.turretaccuracy * 20))))) and (_root.enemyarray[i][2]._y > (_y - (100 + (_root.turretaccuracy * 20))))) {
if (_root.enemyarray[i][2].alive == 1) {
target = _root.enemyarray[i][2];
break;
}
}
i++;
}
if (target != 0) {
timer++;
if (timer > firerate) {
enemyhit = 0;
timer = 0;
if (target._x < _x) {
gun._rotation = ((Math.atan((target._y - _y) / (target._x - _x)) * 57.2957795130823) + ((-accuracy) + random(accuracy * 2))) - 4;
} else {
gun._rotation = (((Math.atan((target._y - _y) / (target._x - _x)) * 57.2957795130823) + 180) + ((-accuracy) + random(accuracy * 2))) + 4;
}
_root.pistol.start();
i = 0;
while (i <= 600) {
o = 0;
while (o < _root.enemyarray.length) {
if (_root.enemyarray[o][2].alive == 1) {
if (((((_root.enemyarray[o][0] - 5) < (_x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i))) and ((_root.enemyarray[o][0] + 5) > (_x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i)))) and ((_root.enemyarray[o][1] + 11) > ((_y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i)))) and ((_root.enemyarray[o][1] - 11) < ((_y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i)))) {
with (_root["lines" + linelevel]) {
lineStyle(1, 0, 100);
moveTo(this._x, this._y - 10);
lineTo(this._x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (this._y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i));
}
_root.enemyarray[o][2].health = _root.enemyarray[o][2].health - 10;
_root.hit.start();
if (_x > _root.enemyarray[o][2]._x) {
_root.bloodfunc(_root.enemyarray[o][2]._x, _root.enemyarray[o][2]._y, 2);
_root.enemyarray[o][2].xspeed = _root.enemyarray[o][2].xspeed - 2;
} else {
_root.bloodfunc(_root.enemyarray[o][2]._x, _root.enemyarray[o][2]._y, 1);
_root.enemyarray[o][2].xspeed = _root.enemyarray[o][2].xspeed + 2;
}
enemyhit = 1;
break;
}
}
o++;
}
if (enemyhit == 0) {
if (_root.back.hitTest(_x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (_y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i), true)) {
with (_root["lines" + linelevel]) {
lineStyle(1, 0, 100);
moveTo(this._x, this._y - 10);
lineTo(this._x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (this._y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i));
}
return;
}
if (i == 600) {
with (_root["lines" + linelevel]) {
lineStyle(1, 0, 100);
moveTo(this._x, this._y - 10);
lineTo(this._x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (this._y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i));
}
} else if (_root.guy.hitTest(_x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (_y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i), true)) {
with (_root["lines" + linelevel]) {
lineStyle(1, 0, 100);
moveTo(this._x, this._y - 10);
lineTo(this._x + (Math.sin(((gun._rotation - 90) * Math.PI) / 180) * i), (this._y - 10) - (Math.cos(((gun._rotation - 90) * Math.PI) / 180) * i));
}
_root.health = _root.health - 10;
_root.hit.start();
if (_x > _root.guy._x) {
_root.bloodfunc(_root.guy._x, _root.guy._y, 2);
_root.xspeed = _root.xspeed - 2;
} else {
_root.bloodfunc(_root.guy._x, _root.guy._y, 1);
_root.xspeed = _root.xspeed + 2;
}
return;
}
}
i = i + 5;
}
}
}
}
}
};
Symbol 104 Button
on (rollOver) {
if (_root.speedlevel < 5) {
price.text = "$" + ((_root.speedlevel + 1) * 1000);
}
_root.roll.start();
}
on (press) {
if (_root.speedlevel < 5) {
if (_root.money >= ((_root.speedlevel + 1) * 1000)) {
_root.money = _root.money - ((_root.speedlevel + 1) * 1000);
_root.speedlevel++;
price.text = "$" + ((_root.speedlevel + 1) * 1000);
speedindicator.gotoAndStop(_root.speedlevel + 1);
_root.pressed.start();
if (_root.speedlevel >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 105 Button
on (rollOver) {
price.text = "$50";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.attachMovie("item", "item" + _root.level, _root.level);
_root.pressed.start();
_root["item" + _root.level]._x = -10;
_root["item" + _root.level]._y = -10;
_root["item" + _root.level].item.gotoAndStop(3);
_root["item" + _root.level].holding = 1;
_root["item" + _root.level].thrown = 0;
_root.weapon = 1;
_root.level++;
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 106 Button
on (rollOver) {
price.text = "$200";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 200) {
_root.money = _root.money - 200;
_root.weapon = 2;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 107 Button
on (rollOver) {
price.text = "$500";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 500) {
_root.money = _root.money - 500;
_root.weapon = 3;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 109 Button
on (rollOver) {
if (_root.reloadlevel < 5) {
price.text = "$" + ((_root.reloadlevel + 1) * 1000);
}
_root.roll.start();
}
on (press) {
if (_root.reloadlevel < 5) {
if (_root.money >= ((_root.reloadlevel + 1) * 1000)) {
_root.money = _root.money - ((_root.reloadlevel + 1) * 1000);
_root.reloadlevel++;
price.text = "$" + ((_root.reloadlevel + 1) * 1000);
reloadindicator.gotoAndStop(_root.reloadlevel + 1);
_root.pressed.start();
if (_root.reloadlevel >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 110 Button
on (rollOver) {
if (_root.strengthlevel < 5) {
price.text = "$" + ((_root.strengthlevel + 1) * 1000);
}
_root.roll.start();
}
on (press) {
if (_root.strengthlevel < 5) {
if (_root.money >= ((_root.strengthlevel + 1) * 1000)) {
_root.money = _root.money - ((_root.strengthlevel + 1) * 1000);
_root.strengthlevel++;
price.text = "$" + ((_root.strengthlevel + 1) * 1000);
strengthindicator.gotoAndStop(_root.strengthlevel + 1);
_root.pressed.start();
if (_root.strengthlevel >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 120 Button
on (rollOver) {
price.text = "$600";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 600) {
_root.money = _root.money - 600;
_root.weapon = 4;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 121 Button
on (rollOver) {
price.text = "$1100";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 1100) {
_root.money = _root.money - 1100;
_root.weapon = 6;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 122 Button
on (rollOver) {
price.text = "$900";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 900) {
_root.money = _root.money - 900;
_root.weapon = 5;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 123 Button
on (rollOver) {
price.text = "$1600";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 1600) {
_root.money = _root.money - 1600;
_root.weapon = 8;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 124 Button
on (rollOver) {
price.text = "$1500";
_root.roll.start();
}
on (press) {
if (_root.weapon == 0) {
if (_root.money >= 1500) {
_root.money = _root.money - 1500;
_root.weapon = 7;
_root.ammo = _root.gunsarray[_root.weapon - 2][2];
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 134 Button
on (rollOver) {
price.text = "$2000";
_root.roll.start();
}
on (press) {
if (_root.turretnumber < 5) {
if (_root.money >= 2000) {
_root.money = _root.money - 2000;
_root.placingturret = 1;
Mouse.hide();
_root.attachMovie("placingarrow", "placingarrow", _root.level);
_root.level++;
turretindicator.gotoAndStop(_root.turretnumber + 1);
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 136 Button
on (rollOver) {
if (_root.turretfirerate < 5) {
price.text = "$" + ((_root.turretfirerate + 1) * 2000);
}
_root.roll.start();
}
on (press) {
if (_root.turretfirerate < 5) {
if (_root.money >= ((_root.turretfirerate + 1) * 2000)) {
_root.money = _root.money - ((_root.turretfirerate + 1) * 2000);
_root.turretfirerate++;
price.text = "$" + ((_root.turretfirerate + 1) * 2000);
turretfirerateindicator.gotoAndStop(_root.turretfirerate + 1);
_root.pressed.start();
if (_root.turretfirerate >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 138 Button
on (rollOver) {
if (_root.turretaccuracy < 5) {
price.text = "$" + ((_root.turretaccuracy + 1) * 2000);
}
_root.roll.start();
}
on (press) {
if (_root.turretaccuracy < 5) {
if (_root.money >= ((_root.turretaccuracy + 1) * 2000)) {
_root.money = _root.money - ((_root.turretaccuracy + 1) * 2000);
_root.turretaccuracy++;
price.text = "$" + ((_root.turretaccuracy + 1) * 2000);
turretaccuracyindicator.gotoAndStop(_root.turretaccuracy + 1);
_root.pressed.start();
if (_root.turretaccuracy >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 139 Button
on (rollOver) {
if (_root.turretdamage < 5) {
price.text = "$" + ((_root.turretdamage + 1) * 2000);
}
_root.roll.start();
}
on (press) {
if (_root.turretdamage < 5) {
if (_root.money >= ((_root.turretdamage + 1) * 2000)) {
_root.money = _root.money - ((_root.turretdamage + 1) * 2000);
_root.turretdamage++;
price.text = "$" + ((_root.turretdamage + 1) * 2000);
turretdamageindicator.gotoAndStop(_root.turretdamage + 1);
_root.pressed.start();
if (_root.turretdamage >= 5) {
price.text = "";
}
}
} else {
price.text = "";
}
}
on (rollOut) {
price.text = "";
}
Symbol 142 Button
on (rollOver) {
price.text = "$500";
_root.roll.start();
}
on (press) {
if (_root.health < 100) {
if (_root.money >= 500) {
_root.money = _root.money - 500;
_root.health = _root.health + 20;
_root.pressed.start();
if (_root.health > 100) {
_root.health = 100;
}
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 143 Button
on (rollOver) {
price.text = "$1500";
_root.roll.start();
}
on (press) {
if (_root.health < 100) {
if (_root.money >= 1500) {
_root.money = _root.money - 1500;
_root.health = 100;
_root.pressed.start();
}
}
}
on (rollOut) {
price.text = "";
}
Symbol 148 MovieClip [buymenu] Frame 1
_alpha = 0;
speedindicator.gotoAndStop(_root.speedlevel + 1);
reloadindicator.gotoAndStop(_root.reloadlevel + 1);
strengthindicator.gotoAndStop(_root.strengthlevel + 1);
turretfirerateindicator.gotoAndStop(_root.turretfirerate + 1);
turretaccuracyindicator.gotoAndStop(_root.turretaccuracy + 1);
turretdamageindicator.gotoAndStop(_root.turretdamage + 1);
turretindicator.gotoAndStop(_root.turretnumber + 1);
onEnterFrame = function () {
money.text = "Money: $" + _root.money;
if (_root.placingturret == 1) {
this.removeMovieClip();
}
if (_root.gamepause == 1) {
if (_alpha < 80) {
_alpha = (_alpha + 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 150 MovieClip [placingarrow] Frame 1
_y = 50;
onEnterFrame = function () {
_x = _root._xmouse;
};
onMouseDown = function () {
_root.gamepause = 0;
i = 1;
while (i <= 9) {
if (_root["spawn" + i]._currentframe != 1) {
_root["spawn" + i].play();
}
i++;
}
_root.placingturret = 0;
_root.attachMovie("turret", "turret" + _root.level, _root.level);
_root["turret" + _root.level].linelevel = _root.level + 1;
_root["turret" + _root.level]._x = _x;
_root["turret" + _root.level]._y = -20;
_root.level = _root.level + 2;
this.removeMovieClip();
};
Symbol 166 Button
on (release) {
gotoAndStop (2);
}
Symbol 171 Button
on (release) {
gotoAndStop (3);
}
Symbol 176 Button
on (release) {
gotoAndStop (5);
}
Symbol 181 Button
on (release) {
_root.started = 1;
}
Symbol 188 Button
on (release) {
gotoAndStop (1);
}
Symbol 203 Button
on (release) {
_root._quality = "LOW";
}
Symbol 222 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 232 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 242 Button
on (release) {
_root._quality = "BEST";
}
Symbol 252 Button
on (release) {
_root.hit.setVolume(100);
_root.soundon = 1;
}
Symbol 256 Button
on (release) {
_root.hit.setVolume(0);
_root.soundon = 0;
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
gotoAndStop(1 + int(random(6)));
_y = (-300 + random(400));
xspeed = 1 + random(1);
Symbol 280 MovieClip Frame 1
stop();
action = function () {
this.play();
};
Symbol 280 MovieClip Frame 5
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 3
stop();
Symbol 286 MovieClip Frame 4
stop();
Symbol 286 MovieClip Frame 5
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 3
stop();
Symbol 293 MovieClip Frame 4
stop();
Symbol 293 MovieClip Frame 5
stop();
Symbol 293 MovieClip Frame 6
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
stop();
Symbol 299 MovieClip Frame 3
stop();
Symbol 299 MovieClip Frame 4
stop();
Symbol 299 MovieClip Frame 5
stop();
Symbol 301 MovieClip Frame 13
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
_root.enemycount++;
Symbol 342 MovieClip Frame 45
_root.attachMovie("zombie", "enemy" + _root.level, _root.level);
_root["enemy" + _root.level]._y = _y - 11;
_root["enemy" + _root.level]._x = _x;
_root.level++;
Symbol 358 MovieClip Frame 1
onEnterFrame = function () {
if (_root.gamepause == 1) {
stop();
} else {
play();
}
};
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
_root.enemycount++;
Symbol 372 MovieClip Frame 200
_root.attachMovie("vampire", "enemy" + _root.level, _root.level);
_root["enemy" + _root.level]._y = _y - 5;
_root["enemy" + _root.level]._x = _x;
_root.level++;
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
_root.enemycount++;
Symbol 374 MovieClip Frame 35
_root.attachMovie("skeleton", "enemy" + _root.level, _root.level);
_root["enemy" + _root.level]._y = _y;
_root["enemy" + _root.level]._x = _x;
_root.level++;
Symbol 383 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
_visible = false;
Symbol 391 MovieClip Frame 1
_visible = false;
Symbol 394 MovieClip Frame 1
_visible = false;
Symbol 397 MovieClip Frame 1
_visible = false;
Symbol 399 MovieClip Frame 1
_visible = false;
Symbol 402 MovieClip Frame 1
_visible = false;
Symbol 405 MovieClip Frame 1
_visible = false;
Symbol 408 MovieClip Frame 1
_visible = false;
Symbol 411 MovieClip Frame 1
_visible = false;
Symbol 414 MovieClip Frame 1
_visible = false;
Symbol 416 MovieClip Frame 1
_visible = false;
Symbol 418 MovieClip Frame 1
_visible = false;
Symbol 421 MovieClip Frame 1
_visible = false;
Symbol 424 MovieClip Frame 1
_visible = false;
Symbol 427 MovieClip Frame 1
_visible = false;
Symbol 430 MovieClip Frame 1
_visible = false;
Symbol 433 MovieClip Frame 1
_visible = false;
Symbol 436 MovieClip Frame 1
_visible = false;
Symbol 439 Button
on (release) {
gotoAndStop ("menu");
}