Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 6 MovieClip "bar" in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 2
Frame 371
stopAllSounds();
Instance of Symbol 77 MovieClip in Frame 372
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "blank");
}
Frame 373
stop();
Frame 374
stop();
Frame 375
_root.level = 1;
_root.score = 0;
_quality = "medium";
_root.scaler = 40;
_root.fade = 10;
_root.damage = 0;
_root.bulletspeed = 10;
_root.cloneincrease = 0;
_root.clonestart = 0;
Frame 376
stop();
Instance of Symbol 254 MovieClip "game" in Frame 376
onClipEvent (load) {
remainingtime = 1800;
keydown = false;
guntimer = 10;
_root.ii = 0;
_root.bulletspeed = 15;
fixedangle = "free";
_root.xmove = 0;
movespeed = 0;
maxmovespeed = 10;
accel = 2;
maxmovepos = 350;
movepos = 0;
rumblesound = false;
damage = 0;
}
onClipEvent (enterFrame) {
remainingtime--;
_root.remainingtime = Math.floor(remainingtime / 30);
if (remainingtime == 0) {
stopAllSounds();
_root.gotoAndStop("levelend");
}
if (_root.damage > 0) {
if (rumblesound == false) {
rumblesound = true;
_root.sound.gotoAndStop("rumble");
_root.sound.gotoAndStop("blank");
}
_root.damage = _root.damage - 0.5;
damage = damage + 2;
building._y = building._y + 2;
building._rotation = random(4) - 2;
building.smoke._y = building.smoke._y - 1.3;
building.smoke._visible = true;
gun._y = gun._y + 2;
} else {
rumblesound = false;
building._rotation = 0;
building.smoke._visible = false;
if (damage > 200) {
stopAllSounds();
_root.gotoAndStop("gameover");
}
}
gunpoint = {x:gun._x, y:gun._y};
localToGlobal(gunpoint);
gun.barrel._rotation = -1 * (Math.round((Math.atan2(-1 * (_root.mouse._y - gunpoint.y), _root.mouse._x - gunpoint.x) / Math.PI) * 180) - 90);
if (gun.barrel._rotation < -90) {
gun.barrel._rotation = -90;
fixedangle = "LEFT";
} else if (gun.barrel._rotation > 90) {
gun.barrel._rotation = 90;
fixedangle = "RIGHT";
} else {
fixedangle = "free";
}
if ((Key.isDown(39) and (movespeed < maxmovespeed)) and (movepos < maxmovepos)) {
movespeed = movespeed + accel;
_root.game.gun.man.nextFrame();
} else if ((Key.isDown(37) and (movespeed > (-maxmovespeed))) and (movepos > (-maxmovepos))) {
movespeed = movespeed - accel;
_root.game.gun.man.prevFrame();
} else if (movespeed > 0) {
movespeed = movespeed - accel;
} else if (movespeed < 0) {
movespeed = movespeed + accel;
}
this._x = this._x - movespeed;
_root.xmove = _root.xmove - movespeed;
movepos = movepos + movespeed;
_root.bg._x = _root.bg._x - (movespeed / 5);
landingzone.duplicateMovieClip("clone" + _root.ii, _root.ii + 2000, _root.ii + 2000);
this["clone" + _root.ii].angle = Math.atan2(_root.mouse._y - gunpoint.y, _root.mouse._x - gunpoint.x);
this["clone" + _root.ii]._x = gunpoint.x - _root.xmove;
this["clone" + _root.ii]._y = gunpoint.y;
if (guntimer > 0) {
guntimer--;
}
}
onClipEvent (keyDown) {
if (Key.isDown(32) and (keydown == false)) {
if (guntimer == 0) {
keydown = true;
guntimer = 8;
_root.fire = false;
_root.ii++;
_root.game.gun.tom.play();
_root.game.gun.barrel.play();
ball.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
this["clone" + _root.ii].angle = Math.atan2(_root.mouse._y - gunpoint.y, (_root.mouse._x + (random(30) - 15)) - gunpoint.x);
this["clone" + _root.ii]._x = gunpoint.x - _root.xmove;
this["clone" + _root.ii]._y = gunpoint.y;
_root.ii++;
}
}
}
onClipEvent (keyUp) {
if (Key.isDown(32) == false) {
keydown = false;
}
}
Instance of Symbol 256 MovieClip "blam" in Frame 376
onClipEvent (load) {
active = false;
}
onClipEvent (enterFrame) {
if (active == true) {
this._y = -3000;
this._x = -3000;
active = false;
}
if (this._y != -3000) {
this._rotation = random(60) - 30;
active = true;
this._yscale = 100;
this._xscale = 100;
}
}
Instance of Symbol 289 MovieClip in Frame 377
onClipEvent (load) {
_root.background._visible = false;
this._xscale = 0;
this._yscale = 0;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + 4);
_yscale = (_yscale + 4);
_rotation = (_rotation + 14.4);
} else {
_root.background._visible = true;
}
}
Instance of Symbol 287 MovieClip "background" in Frame 379
on (release) {
}
Instance of Symbol 289 MovieClip in Frame 379
on (release) {
}
Frame 380
_root.level = 1;
_root.score = 0;
_quality = "medium";
_root.scaler = 40;
_root.fade = 10;
_root.damage = 0;
_root.bulletspeed = 10;
_root.cloneincrease = 0;
_root.clonestart = 0;
Frame 381
stop();
Instance of Symbol 332 MovieClip "game" in Frame 381
onClipEvent (load) {
keydown = false;
guntimer = 10;
_root.ii = 0;
_root.bulletspeed = 15;
fixedangle = "free";
_root.xmove = 0;
movespeed = 0;
maxmovespeed = 10;
accel = 2;
maxmovepos = 350;
movepos = 0;
rumblesound = false;
}
onClipEvent (enterFrame) {
if (_root.destroy == true) {
if (_root.destroyskipframe == true) {
_root.destroyskipframe = false;
} else {
_root.destroy = false;
}
}
gunpoint = {x:gun._x, y:gun._y};
localToGlobal(gunpoint);
gun.barrel._rotation = -1 * (Math.round((Math.atan2(-1 * (_root.mouse._y - gunpoint.y), _root.mouse._x - gunpoint.x) / Math.PI) * 180) - 90);
if (gun.barrel._rotation < -90) {
gun.barrel._rotation = -90;
fixedangle = "LEFT";
} else if (gun.barrel._rotation > 90) {
gun.barrel._rotation = 90;
fixedangle = "RIGHT";
} else {
fixedangle = "free";
}
if ((Key.isDown(39) and (movespeed < maxmovespeed)) and (movepos < maxmovepos)) {
movespeed = movespeed + accel;
_root.game.gun.man.nextFrame();
} else if ((Key.isDown(37) and (movespeed > (-maxmovespeed))) and (movepos > (-maxmovepos))) {
movespeed = movespeed - accel;
_root.game.gun.man.prevFrame();
} else if (movespeed > 0) {
movespeed = movespeed - accel;
} else if (movespeed < 0) {
movespeed = movespeed + accel;
}
this._x = this._x - movespeed;
_root.xmove = _root.xmove - movespeed;
movepos = movepos + movespeed;
_root.bg._x = _root.bg._x - (movespeed / 5);
landingzone.duplicateMovieClip("clone" + _root.ii, _root.ii + 2000, _root.ii + 2000);
this["clone" + _root.ii].angle = Math.atan2(_root.mouse._y - gunpoint.y, _root.mouse._x - gunpoint.x);
this["clone" + _root.ii]._x = gunpoint.x - _root.xmove;
this["clone" + _root.ii]._y = gunpoint.y;
if (guntimer > 0) {
guntimer--;
}
}
onClipEvent (keyDown) {
if (Key.isDown(32) and (keydown == false)) {
if (guntimer == 0) {
keydown = true;
guntimer = 8;
_root.fire = false;
_root.ii++;
_root.game.gun.tom.play();
_root.game.gun.barrel.play();
ball.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
this["clone" + _root.ii].angle = Math.atan2(_root.mouse._y - gunpoint.y, (_root.mouse._x + (random(30) - 15)) - gunpoint.x);
this["clone" + _root.ii]._x = gunpoint.x - _root.xmove;
this["clone" + _root.ii]._y = gunpoint.y;
_root.ii++;
}
}
}
onClipEvent (keyUp) {
if (Key.isDown(32) == false) {
keydown = false;
}
}
Instance of Symbol 256 MovieClip "blam" in Frame 381
onClipEvent (load) {
active = false;
}
onClipEvent (enterFrame) {
if (active == true) {
this._y = -3000;
this._x = -3000;
active = false;
}
if (this._y != -3000) {
this._rotation = random(60) - 30;
active = true;
this._yscale = 100;
this._xscale = 100;
}
}
Symbol 17 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 22 Button
on (release) {
_root.play();
}
Symbol 23 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 23 MovieClip Frame 2
gotoAndPlay (1);
Symbol 333 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 80 MovieClip Frame 20
stop();
Symbol 86 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 88 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 90 Button
on (release) {
getURL ("http://www.the-exp.com", "blank");
}
Symbol 97 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("survival");
}
Symbol 99 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("destruction");
}
Symbol 105 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("title");
}
Symbol 107 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=441", "blank");
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
function reload() {
this._x = random(200) + 1000;
this._y = random(300);
this._rotation = random(2) + 180;
scale = random(200) + 50;
this._xscale = scale;
this._yscale = scale;
speed = scale / 200;
}
reload();
this._x = random(800);
this._y = random(300);
}
onClipEvent (enterFrame) {
if (this._x < -1000) {
reload();
} else {
this._x = this._x - speed;
}
}
Instance of Symbol 115 MovieClip "hit" in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 129 MovieClip "smoke" in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 133 MovieClip Frame 2
if (_name != "explosion") {
_root.sound.gotoAndStop("bang");
_root.sound.gotoAndStop("blank");
}
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 6
Symbol 162 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
gotoAndStop (7);
Symbol 186 MovieClip Frame 8
gotoAndStop (2);
Symbol 203 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
_root.sound.gotoAndStop("zombiedead");
_root.sound.gotoAndStop("blank");
Instance of Symbol 220 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 15
_parent.zstate = "alive";
Instance of Symbol 203 MovieClip "_sheep" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function blam() {
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10) - 5;
}
if ((zstate == "dead") or (zstate == "twitcher")) {
zstate = "dead";
drop = random(20) + 10;
} else if (zstate == "alive") {
_root.score = _root.score + 5;
zstate = "dead";
drop = random(20) + 10;
}
spin = random(50) - 25;
}
}
speed = (random(5) + 3) / 4;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "alive";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
drop = -10;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.stagehit) == false) {
this.removeMovieClip();
}
if (_name != "_sheep") {
gotoAndStop(zstate);
if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + drop);
drop++;
_x = (_x - speed);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
drop = -10;
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 3, _y - 10, true) and (speed < 0)) {
speed = -speed;
dir = -dir;
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 3, _y - 10, true) and (speed > 0)) {
speed = -speed;
dir = -dir;
}
if (this.hitTest(_root.game.building.hit) and (zstate == "alive")) {
zstate = "dead";
_root.damage = _root.damage + 20;
_root.ii++;
_parent._parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
_parent._parent["clone" + _root.ii]._x = 270;
_parent._parent["clone" + _root.ii]._y = 300;
_root.blam._xscale = 500;
_root.blam._yscale = 500;
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - (weight / 2);
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / 2;
spin = spin / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
}
}
Instance of Symbol 217 MovieClip "_zombie" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function ragdoll() {
headrot = random(6) - 3;
leg_rrot = random(10) - 5;
leg_lrot = random(10) - 5;
arm_rrot = random(10) - 5;
arm_lrot = random(10) - 5;
body.head._rotation = 0;
body.leg_r._rotation = random(90) - 45;
body.leg_l._rotation = random(90) - 45;
body.arm_r._rotation = random(360);
body.arm_l._rotation = random(360);
}
function blam() {
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10) - 5;
}
if ((zstate == "dead") or (zstate == "twitcher")) {
zstate = "dead";
drop = random(20) + 10;
} else if (zstate == "alive") {
_root.score = _root.score + 3;
zstate = "dead";
drop = random(20) + 10;
}
if (zstate != "twitcher") {
ragdoll();
}
spin = random(50) - 25;
}
}
speed = (random(5) + 1) / 5;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "alive";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
headrot = 0;
leg_rrot = 0;
leg_lrot = 0;
arm_rrot = 0;
arm_lrot = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.stagehit) == false) {
this.removeMovieClip();
}
if (_name != "_zombie") {
gotoAndStop(zstate);
if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + 5);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_x = (_x - speed);
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 3, _y - 10, true) and (speed < 0)) {
speed = -speed;
dir = -dir;
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 3, _y - 10, true) and (speed > 0)) {
speed = -speed;
dir = -dir;
}
if (this.hitTest(_root.game.building.hit) and (zstate == "alive")) {
zstate = "dead";
_root.damage = _root.damage + 20;
_root.ii++;
_root.blam._xscale = 500;
_root.blam._yscale = 500;
_parent._parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
_parent._parent["clone" + _root.ii]._x = 270;
_parent._parent["clone" + _root.ii]._y = 300;
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - (weight / 2);
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
body.leg_r._rotation = body.leg_r._rotation + leg_rrot;
body.head._rotation = body.head._rotation + headrot;
body.leg_l._rotation = body.leg_l._rotation + leglrot;
body.arm_r._rotation = body.arm_r._rotation + arm_rrot;
body.arm_l._rotation = body.arm_l._rotation + arm_lrot;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / 2;
spin = (-spin) / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
} else if (_name == "_zombie") {
}
}
Instance of Symbol 115 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
timerstore = 150;
clonespercycle = 2 + _root.clonestart;
timer = 0;
sheepchance = 3;
minimumsheep = 3;
copterchance = 5;
minimumcopter = 3.5;
parachance = 5;
minimumpara = 5;
digchance = 5;
minimumdig = 6;
}
onClipEvent (enterFrame) {
if (timer < 0) {
ii = 0;
while (ii < clonespercycle) {
_root.ii++;
dircopter = random(copterchance);
dirsheep = random(sheepchance);
if ((clonespercycle >= minimumcopter) and (dircopter == 0)) {
if (copterchance > 3) {
copterchance--;
}
_parent._copter.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
} else if ((clonespercycle >= minimumsheep) and (dir == 0)) {
if (sheepchance > 3) {
sheepchance--;
}
_parent._sheep.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
} else {
_parent._zombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
}
dir = random(2);
if (dir == 0) {
_parent["clone" + _root.ii]._x = 1000;
} else {
_parent["clone" + _root.ii]._x = -500;
}
_parent["clone" + _root.ii]._y = 100;
dirpara = random(parachance);
if ((clonespercycle > minimumpara) and (dirpara == 0)) {
_root.ii++;
_parent._parazombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
_parent["clone" + _root.ii]._y = -100;
dirpara = random(2);
if (dirpara == 0) {
_parent["clone" + _root.ii]._x = -random(100);
} else {
_parent["clone" + _root.ii]._x = 550 + random(100);
}
if (parachance > 5) {
parachance--;
}
}
dirpara = random(digchance);
if ((clonespercycle > minimumdig) and (dirpara == 0)) {
_root.ii++;
_parent._digzombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
_parent["clone" + _root.ii]._y = 350;
dirpara = random(2);
if (dirpara == 0) {
_parent["clone" + _root.ii]._x = -random(100);
} else {
_parent["clone" + _root.ii]._x = 550 + random(100);
}
if (digchance > 5) {
digchance--;
}
}
ii++;
}
clonespercycle = clonespercycle + (0.2 + _root.cloneincrease);
timer = timerstore;
} else {
timer--;
}
}
Instance of Symbol 222 MovieClip "_copter" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function ragdoll() {
headrot = random(6) - 3;
leg_rrot = random(10) - 5;
leg_lrot = random(10) - 5;
arm_rrot = random(10) - 5;
arm_lrot = random(10) - 5;
body.head._rotation = 0;
body.leg_r._rotation = random(90) - 45;
body.leg_l._rotation = random(90) - 45;
body.arm_r._rotation = random(360);
body.arm_l._rotation = random(360);
}
function blam() {
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10) - 5;
}
if ((zstate == "dead") or (zstate == "twitcher")) {
zstate = "dead";
drop = random(20) + 10;
} else if (zstate == "alive") {
_root.score = _root.score + 10;
zstate = "dead";
drop = random(20) + 10;
}
if (zstate != "twitcher") {
ragdoll();
}
spin = random(50) - 25;
}
}
fheight = random(100) + 150;
fheightstore = fheight;
speed = (random(5) + 3) / 4;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "alive";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
headrot = 0;
leg_rrot = 0;
leg_lrot = 0;
arm_rrot = 0;
arm_lrot = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.stagehit) == false) {
this.removeMovieClip();
}
if (_name != "_copter") {
gotoAndStop(zstate);
if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + 5);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + fheight, true)) {
_x = (_x - speed);
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + fheight, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 10, true) and (speed < 0)) {
if (fheight > 0) {
fheight = fheight - 20;
}
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 10, true) and (speed > 0)) {
if (fheight > 0) {
fheight = fheight - 20;
}
} else if ((((fheight < fheightstore) and (_parent._parent.ground.hitTest((_x + _root.xmove) + 10, _y - 10, true) == false)) and (_parent._parent.ground.hitTest((_x + _root.xmove) - 10, _y - 10, true) == false)) and (this.hitTest(_root.game.building.hit) == false)) {
fheight = fheight + 5;
}
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (this.hitTest(_root.game.building.hit) and (zstate == "alive")) {
if (_parent._parent.ground.hitTest(_x, _y + 30, true) == false) {
fheight = fheight - 3;
} else {
zstate = "dead";
_root.damage = _root.damage + 20;
_root.ii++;
_root.blam._xscale = 500;
_root.blam._yscale = 500;
_parent._parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
_parent._parent["clone" + _root.ii]._x = 270;
_parent._parent["clone" + _root.ii]._y = 300;
}
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - (weight / 2);
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
body.leg_r._rotation = body.leg_r._rotation + leg_rrot;
body.head._rotation = body.head._rotation + headrot;
body.leg_l._rotation = body.leg_l._rotation + leglrot;
body.arm_r._rotation = body.arm_r._rotation + arm_rrot;
body.arm_l._rotation = body.arm_l._rotation + arm_lrot;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / 2;
spin = (-spin) / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
} else if (_name == "_zombie") {
}
}
Instance of Symbol 226 MovieClip "_parazombie" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function ragdoll() {
headrot = random(6) - 3;
leg_rrot = random(10) - 5;
leg_lrot = random(10) - 5;
arm_rrot = random(10) - 5;
arm_lrot = random(10) - 5;
body.head._rotation = 0;
body.leg_r._rotation = random(90) - 45;
body.leg_l._rotation = random(90) - 45;
body.arm_r._rotation = random(360);
body.arm_l._rotation = random(360);
}
function blam() {
if (this.hitTest(_root.game.stagehit) == false) {
this.removeMovieClip();
}
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10) / 2;
}
if (((zstate == "dead") or (zstate == "twitcher")) or (zstate == "fall")) {
zstate = "dead";
drop = random(20) + 10;
} else if (zstate == "alive") {
_root.score = _root.score + 8;
zstate = "dead";
drop = random(20) + 10;
}
if (zstate != "twitcher") {
ragdoll();
}
spin = random(50) - 25;
}
}
speed = (random(5) + 1) / 5;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "fall";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
headrot = 0;
leg_rrot = 0;
leg_lrot = 0;
arm_rrot = 0;
arm_lrot = 0;
}
onClipEvent (enterFrame) {
if (_name != "_parazombie") {
gotoAndStop(zstate);
if (zstate == "fall") {
_xscale = dir;
this._y = this._y + 2;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
zstate = "alive";
}
blam();
} else if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + 5);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_x = (_x - speed);
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 3, _y - 10, true) and (speed < 0)) {
speed = -speed;
dir = -dir;
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 3, _y - 10, true) and (speed > 0)) {
speed = -speed;
dir = -dir;
}
if (this.hitTest(_root.game.building.hit) and (zstate == "alive")) {
zstate = "dead";
_root.damage = _root.damage + 20;
_root.ii++;
_root.blam._xscale = 500;
_root.blam._yscale = 500;
_parent._parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
_parent._parent["clone" + _root.ii]._x = 270;
_parent._parent["clone" + _root.ii]._y = 300;
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - (weight / 2);
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
body.leg_r._rotation = body.leg_r._rotation + leg_rrot;
body.head._rotation = body.head._rotation + headrot;
body.leg_l._rotation = body.leg_l._rotation + leglrot;
body.arm_r._rotation = body.arm_r._rotation + arm_rrot;
body.arm_l._rotation = body.arm_l._rotation + arm_lrot;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 50, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / 2;
spin = (-spin) / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
} else if (_name == "_zombie") {
}
}
Instance of Symbol 242 MovieClip "_digzombie" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function ragdoll() {
headrot = random(6) - 3;
leg_rrot = random(10) - 5;
leg_lrot = random(10) - 5;
arm_rrot = random(10) - 5;
arm_lrot = random(10) - 5;
body.head._rotation = 0;
body.leg_r._rotation = random(90) - 45;
body.leg_l._rotation = random(90) - 45;
body.arm_r._rotation = random(360);
body.arm_l._rotation = random(360);
}
function blam() {
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10);
}
if (((zstate == "dead") or (zstate == "twitcher")) or (zstate == "fall")) {
zstate = "dead";
if (_root.blam._y >= (point.y - 50)) {
drop = random(20) + 10;
} else {
drop = random(20) + 10;
}
} else if (zstate == "alive") {
_root.score = _root.score + 10;
zstate = "dead";
drop = random(20) + 10;
}
if (zstate != "twitcher") {
ragdoll();
}
spin = random(50) - 25;
}
}
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y - 1);
}
speed = (random(5) + 1) / 5;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "fall";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
headrot = 0;
leg_rrot = 0;
leg_lrot = 0;
arm_rrot = 0;
arm_lrot = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.stagehit) == false) {
this.removeMovieClip();
}
if (_name != "_digzombie") {
gotoAndStop(zstate);
if (zstate == "fall") {
_xscale = dir;
blam();
} else if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + 5);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_x = (_x - speed);
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 3, _y - 10, true) and (speed < 0)) {
speed = -speed;
dir = -dir;
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 3, _y - 10, true) and (speed > 0)) {
speed = -speed;
dir = -dir;
}
if (this.hitTest(_root.game.building.hit) and (zstate == "alive")) {
zstate = "dead";
_root.damage = _root.damage + 20;
_root.ii++;
_root.blam._xscale = 500;
_root.blam._yscale = 500;
_parent._parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii, _root.ii);
_parent._parent["clone" + _root.ii]._x = 270;
_parent._parent["clone" + _root.ii]._y = 300;
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - weight;
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
body.leg_r._rotation = body.leg_r._rotation + leg_rrot;
body.head._rotation = body.head._rotation + headrot;
body.leg_l._rotation = body.leg_l._rotation + leglrot;
body.arm_r._rotation = body.arm_r._rotation + arm_rrot;
body.arm_l._rotation = body.arm_l._rotation + arm_lrot;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 30, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 30, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / 2;
spin = (-spin) / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
} else if (_name == "_zombie") {
}
}
Instance of Symbol 130 MovieClip "building" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 1200);
}
Instance of Symbol 133 MovieClip "explosion" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
_root.blam._x = this._x + _root.xmove;
_root.blam._y = this._y;
}
onClipEvent (enterFrame) {
if (_name != "explosion") {
if (_root.control.moveleft == true) {
this._x = this._x + _root.control.speed;
} else if (_root.control.moveright == true) {
this._x = this._x - _root.control.speed;
}
if (this._alpha > 0) {
this._alpha = this._alpha - _root.fade;
} else {
this.removeMovieClip();
}
this._xscale = this._xscale + _root.scaler;
this._yscale = this._yscale + _root.scaler;
}
}
Instance of Symbol 135 MovieClip "smoke" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "smoke") {
if (_root.control.moveleft == true) {
this._x = this._x + _root.control.speed;
} else if (_root.control.moveright == true) {
this._x = this._x - _root.control.speed;
}
this._yscale = this._yscale + _root.scaler;
this._xscale = this._xscale + _root.scaler;
this._alpha = this._alpha - _root.fade;
if (this._alpha < 10) {
this.removeMovieClip();
}
}
}
Instance of Symbol 137 MovieClip "ball" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
if (_name != "ball") {
spin = random(40) - 20;
drop = -5;
}
}
onClipEvent (enterFrame) {
if (_name != "ball") {
this._rotation = this._rotation + spin;
if (drop > 0) {
this._y = this._y + drop;
_root.ii++;
this.swapDepths(_root.ii + 4000);
}
drop = drop + 0.75;
dir = Math.cos(angle);
_x = (_x + (dir * _root.bulletspeed));
dir = Math.sin(angle);
_y = (_y + (dir * _root.bulletspeed));
if (_parent.ground.hitTest(_x + _root.xmove, _y, true) or _parent.zombies.hitTest(_x + _root.xmove, _y, true)) {
_root.ii++;
_parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii + 8000, _root.ii + 8000);
_parent["clone" + _root.ii]._x = this._x;
_parent["clone" + _root.ii]._y = this._y;
this.removeMovieClip();
}
if (drop > 0) {
_root.ii++;
_parent.smoke.duplicateMovieClip("clone" + _root.ii, _root.ii + 2100, _root.ii + 2100);
_parent["clone" + _root.ii]._x = this._x;
_parent["clone" + _root.ii]._y = this._y;
}
}
}
Instance of Symbol 187 MovieClip "gun" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
Instance of Symbol 243 MovieClip "zombies" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 2000);
}
Instance of Symbol 249 MovieClip "ground" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 3000);
}
Instance of Symbol 251 MovieClip "landingzone" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
function pathfind() {
if (drop > 0) {
this._y = this._y + drop;
this._visible = true;
}
drop = drop + 0.75;
dir = Math.cos(angle);
_x = (_x + (dir * _root.bulletspeed));
dir = Math.sin(angle);
_y = (_y + (dir * _root.bulletspeed));
if (_parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent.ground.hitTest(_x + _root.xmove, _y, true)) {
this._y = this._y - 3;
}
active = false;
}
}
if (_name != "landingzone") {
active = true;
drop = -5;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (active == false) {
this.removeMovieClip();
} else {
while (active == true) {
pathfind();
}
}
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 269 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("title");
}
Symbol 280 Button
on (release) {
_root.gotoAndStop("details");
}
Symbol 282 Button
on (release) {
if (_root.background._visible == true) {
_root.level++;
_root.cloneincrease = _root.cloneincrease + 0.2;
_root.clonestart++;
_root.gotoAndStop("game");
}
}
Symbol 308 Button
on (release) {
if (_root.username.text == "") {
mynamevar = "Anonymous";
} else {
mynamevar = _root.username.text;
}
myscorevar = _root.score;
ab20_09 = new LoadVars();
ab20_09.z = mynamevar;
ab20_09.x = ab20.encodeNum(myscorevar);
ab20_09.c = 441;
ab20_09.v = "JAJKEH";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
stopAllSounds();
_root.gotoAndPlay("title");
}
Instance of Symbol 115 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_root.maxzombies = 15;
_root.currentzombies = 0;
timerstore = 5;
clonespercycle = 10;
timer = 0;
sheepchance = 10;
minimumsheep = 11;
copterchance = 1;
minimumcopter = 11;
parachance = 10;
minimumpara = 11;
digchance = 1;
minimumdig = 1;
}
onClipEvent (enterFrame) {
if (timer < 0) {
ii = 0;
while (ii < clonespercycle) {
_root.ii++;
dircopter = random(copterchance);
dirsheep = random(sheepchance);
if ((clonespercycle >= minimumcopter) and (dircopter == 0)) {
if (copterchance > 3) {
copterchance--;
}
_parent._copter.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
} else if ((clonespercycle >= minimumsheep) and (dir == 0)) {
if (sheepchance > 3) {
sheepchance--;
}
_parent._sheep.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
} else {
_parent._zombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
}
dir = random(2);
if (dir == 0) {
_parent["clone" + _root.ii]._x = 1000;
} else {
_parent["clone" + _root.ii]._x = -500;
}
_parent["clone" + _root.ii]._y = 100;
dirpara = random(parachance);
if ((clonespercycle > minimumpara) and (dirpara == 0)) {
_root.ii++;
_parent._parazombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
_parent["clone" + _root.ii]._y = -100;
dirpara = random(2);
if (dirpara == 0) {
_parent["clone" + _root.ii]._x = -random(100);
} else {
_parent["clone" + _root.ii]._x = 550 + random(100);
}
if (parachance > 5) {
parachance--;
}
}
dirpara = random(digchance);
if ((clonespercycle > minimumdig) and (dirpara == 0)) {
_root.ii++;
_root.currentzombies++;
_parent._digzombie.duplicateMovieClip("clone" + _root.ii, _root.ii + 2500, _root.ii + 2500);
_parent["clone" + _root.ii]._y = 350;
dirpara = random(2);
if (dirpara == 0) {
_parent["clone" + _root.ii]._x = -random(100);
} else {
_parent["clone" + _root.ii]._x = 550 + random(100);
}
if (digchance > 5) {
digchance--;
}
}
ii++;
}
clonespercycle = clonespercycle + (0.2 + _root.cloneincrease);
timer = timerstore;
} else if (_root.currentzombies < _root.maxzombies) {
timer--;
}
}
Instance of Symbol 242 MovieClip "_digzombie" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
function ragdoll() {
headrot = random(6) - 3;
leg_rrot = random(10) - 5;
leg_lrot = random(10) - 5;
arm_rrot = random(10) - 5;
arm_lrot = random(10) - 5;
body.head._rotation = 0;
body.leg_r._rotation = random(90) - 45;
body.leg_l._rotation = random(90) - 45;
body.arm_r._rotation = random(360);
body.arm_l._rotation = random(360);
}
function blam() {
if (hitTest(_root.blam)) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (point.x > (_root.blam._x + 10)) {
xmove = random(25);
} else if (point.x < (_root.blam._x - 10)) {
xmove = random(25) * -1;
} else {
xmove = random(10);
}
if (((zstate == "dead") or (zstate == "twitcher")) or (zstate == "fall")) {
zstate = "dead";
if (_root.blam._y >= (point.y - 50)) {
drop = random(20) + 10;
} else {
drop = random(20) + 10;
}
} else if (zstate == "alive") {
_root.score = _root.score + 10;
zstate = "dead";
drop = random(20) + 10;
}
if (zstate != "twitcher") {
ragdoll();
}
spin = random(50) - 25;
}
}
_root.dsgravity = 0;
_root.dsbounce = 2;
speed = (random(5) + 1) / 6;
dir = _xscale;
spawnpoint = {x:_x, y:_y};
_parent.localToGlobal(spawnpoint);
castlepoint = {x:_root.game.building._x, y:_y};
_parent.localToGlobal(castlepoint);
if (spawnpoint.x < castlepoint.x) {
dir = -dir;
speed = -speed;
}
zstate = "fall";
weight = random(2) + 1;
spin = random(50) - 25;
xmove = 0;
gravity = 25;
headrot = 0;
leg_rrot = 0;
leg_lrot = 0;
arm_rrot = 0;
arm_lrot = 0;
}
onClipEvent (enterFrame) {
if (_name != "_digzombie") {
if (_root.destroy == true) {
this.removeMovieClip();
}
gotoAndStop(zstate);
if (zstate == "fall") {
_xscale = dir;
blam();
} else if (zstate == "alive") {
blam();
_xscale = dir;
_y = (_y + 5);
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_x = (_x - speed);
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y + 15, true)) {
_y = (_y - 1);
}
_y = (_y + 1);
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 3, _y - 10, true) and (speed < 0)) {
speed = -speed;
dir = -dir;
} else if (_parent._parent.ground.hitTest((_x + _root.xmove) - 3, _y - 10, true) and (speed > 0)) {
speed = -speed;
dir = -dir;
}
} else if (zstate == "dead") {
_alpha = 100;
blam();
_y = (_y - drop);
body._rotation = body._rotation + spin;
drop = drop - (weight + _root.dsgravity);
if (drop > gravity) {
drop = gravity;
}
_x = (_x + xmove);
body.leg_r._rotation = body.leg_r._rotation + leg_rrot;
body.head._rotation = body.head._rotation + headrot;
body.leg_l._rotation = body.leg_l._rotation + leglrot;
body.arm_r._rotation = body.arm_r._rotation + arm_rrot;
body.arm_l._rotation = body.arm_l._rotation + arm_lrot;
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 30, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y - 30, true)) {
_y = (_y+1);
}
xmove = xmove / 2;
drop = -drop;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) + 20, _y - 30, true)) {
_x = (_x-1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
while (_parent._parent.ground.hitTest((_x + _root.xmove) - 20, _y - 30, true)) {
_x = (_x+1);
}
xmove = (-xmove) / 2;
drop = 5;
ragdoll();
}
if (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
ragdoll();
if (body._rotation > 0) {
body._rotation = 90;
} else {
body._rotation = -90;
}
xmove = xmove / 2;
drop = (-drop) / _root.dsbounce;
spin = (-spin) / 2;
if (drop < 4) {
while (_parent._parent.ground.hitTest(_x + _root.xmove, _y, true)) {
_y = (_y-1);
}
zstate = "twitcher";
twitchtimer = 200;
}
}
} else if (zstate == "twitcher") {
if (twitchtimer > 0) {
twitchtimer--;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
this.removeMovieClip();
}
blam();
drop = 0;
xmove = 0;
body.leg_r._rotation = 0;
body.head._rotation = 0;
body.leg_l._rotation = 0;
if (body.arm_l._rotation > 90) {
body.arm_l._rotation = 180;
} else {
body.arm_l._rotation = 0;
}
if (body.arm_r._rotation > 90) {
body.arm_r._rotation = 180;
} else {
body.arm_r._rotation = 0;
}
}
} else if (_name == "_zombie") {
}
}
Symbol 317 Button
on (release) {
_root.currentzombies = 0;
}
Symbol 319 Button
on (release) {
if (_root.dsbounce > 1.2) {
_root.dsbounce = _root.dsbounce - 0.1;
}
}
Symbol 320 Button
on (release) {
if (_root.dsbounce < 2.8) {
_root.dsbounce = _root.dsbounce + 0.1;
}
}
Symbol 325 Button
on (release) {
_root.destroy = true;
_root.destroyskipframe = true;
}
Symbol 327 Button
on (release) {
_root.dsgravity = _root.dsgravity + 0.1;
}
Symbol 328 Button
on (release) {
_root.dsgravity = _root.dsgravity - 0.1;
}
Instance of Symbol 316 MovieClip in Symbol 331 MovieClip Frame 1
on (press) {
this.startDrag();
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Instance of Symbol 316 MovieClip in Symbol 331 MovieClip Frame 1
on (press) {
this.startDrag();
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Instance of Symbol 316 MovieClip in Symbol 331 MovieClip Frame 1
on (press) {
this.startDrag();
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Instance of Symbol 316 MovieClip in Symbol 331 MovieClip Frame 1
on (press) {
this.startDrag();
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Instance of Symbol 130 MovieClip "building" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 1200);
}
Instance of Symbol 133 MovieClip "explosion" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
_root.blam._x = this._x + _root.xmove;
_root.blam._y = this._y;
}
onClipEvent (enterFrame) {
if (_name != "explosion") {
if (_root.control.moveleft == true) {
this._x = this._x + _root.control.speed;
} else if (_root.control.moveright == true) {
this._x = this._x - _root.control.speed;
}
if (this._alpha > 0) {
this._alpha = this._alpha - _root.fade;
} else {
this.removeMovieClip();
}
this._xscale = this._xscale + _root.scaler;
this._yscale = this._yscale + _root.scaler;
}
}
Instance of Symbol 135 MovieClip "smoke" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "smoke") {
if (_root.control.moveleft == true) {
this._x = this._x + _root.control.speed;
} else if (_root.control.moveright == true) {
this._x = this._x - _root.control.speed;
}
this._yscale = this._yscale + _root.scaler;
this._xscale = this._xscale + _root.scaler;
this._alpha = this._alpha - _root.fade;
if (this._alpha < 10) {
this.removeMovieClip();
}
}
}
Instance of Symbol 137 MovieClip "ball" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
if (_name != "ball") {
spin = random(40) - 20;
drop = -5;
}
}
onClipEvent (enterFrame) {
if (_name != "ball") {
this._rotation = this._rotation + spin;
if (drop > 0) {
this._y = this._y + drop;
_root.ii++;
this.swapDepths(_root.ii + 4000);
}
drop = drop + 0.75;
dir = Math.cos(angle);
_x = (_x + (dir * _root.bulletspeed));
dir = Math.sin(angle);
_y = (_y + (dir * _root.bulletspeed));
if (_parent.ground.hitTest(_x + _root.xmove, _y, true) or _parent.zombies.hitTest(_x + _root.xmove, _y, true)) {
_root.ii++;
_parent.explosion.duplicateMovieClip("clone" + _root.ii, _root.ii + 8000, _root.ii + 8000);
_parent["clone" + _root.ii]._x = this._x;
_parent["clone" + _root.ii]._y = this._y;
this.removeMovieClip();
}
if (drop > 0) {
_root.ii++;
_parent.smoke.duplicateMovieClip("clone" + _root.ii, _root.ii + 2100, _root.ii + 2100);
_parent["clone" + _root.ii]._x = this._x;
_parent["clone" + _root.ii]._y = this._y;
}
}
}
Instance of Symbol 187 MovieClip "gun" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
Instance of Symbol 311 MovieClip "zombies" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 2000);
}
Instance of Symbol 331 MovieClip "ground" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 3000);
}
Instance of Symbol 251 MovieClip "landingzone" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
function pathfind() {
if (drop > 0) {
this._y = this._y + drop;
this._visible = true;
}
drop = drop + 0.75;
dir = Math.cos(angle);
_x = (_x + (dir * _root.bulletspeed));
dir = Math.sin(angle);
_y = (_y + (dir * _root.bulletspeed));
if (_parent.ground.hitTest(_x + _root.xmove, _y, true)) {
while (_parent.ground.hitTest(_x + _root.xmove, _y, true)) {
this._y = this._y - 3;
}
active = false;
}
}
if (_name != "landingzone") {
active = true;
drop = -5;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (active == false) {
this.removeMovieClip();
} else {
while (active == true) {
pathfind();
}
}
}