Frame 1
MochiAd.showPreGameAd({id:"c5bbedb6e955346a", res:"550x350"});
Frame 2
_root.shutter.gotoAndPlay(2);
stop();
Instance of Symbol 47 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 2
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 3
_root.shutter.gotoAndPlay(2);
stop();
Frame 4
_root.shutter.gotoAndPlay(2);
stop();
Frame 5
_root.shutter.gotoAndPlay(2);
stop();
Frame 6
_root.shutter.gotoAndPlay(2);
stop();
_root.char.health = 100;
_root.char.gotoAndStop(1);
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.leveltwounlocked) {
this.gotoAndStop(2);
}
}
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.levelthreeunlocked) {
this.gotoAndStop(2);
}
}
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.levelfourunlocked) {
this.gotoAndStop(2);
}
}
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.levelfiveunlocked) {
this.gotoAndStop(2);
}
}
Frame 7
_root.shutter.gotoAndPlay(2);
Instance of Symbol 186 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 7) {
this.gotoAndStop(2);
}
}
Frame 8
_root.sniping = false;
_root.shutter.gotoAndPlay(2);
_root.pistolBullets = 240;
_root.chx = 0;
_root.chy = 0;
_root.uziBullets = 30;
_root.shotgunBullets = 0;
_root.machinegunBullets = 0;
_root.sniperBullets = 0;
_root.autoBullets = 0;
_root.miniBullets = 0;
_root.grenadeBullets = 5;
_root.bulletCounter = 350;
_root.enemybulletCounter = 20;
_root.grenadeCounter = 560;
onEnterFrame = function () {
_root.health = 100 - _root.boxCam.health;
_root.accuracy = int((_root.numberofshotsontarget / _root.numberofshotstaken) * 100);
_root.boxCam.health = _root.char.health;
if (_root.bulletCounter > 369) {
_root.bulletCounter = 350;
}
if (_root.enemybulletCounter > 39) {
_root.enemybulletCounter = 20;
}
if (_root.bulletCounter > 589) {
_root.bulletCounter = 560;
}
_root.boxCam.bulletcounter.pistol = _root.pistolBullets;
_root.boxCam.bulletcounter.uzi = _root.uziBullets;
_root.boxCam.bulletcounter.shotgun = _root.shotgunBullets;
_root.boxCam.bulletcounter.machinegun = _root.machinegunBullets;
_root.boxCam.bulletcounter.sniper = _root.sniperBullets;
_root.boxCam.bulletcounter.auto = _root.autoBullets;
_root.boxCam.bulletcounter.minigun = _root.miniBullets;
_root.boxCam.bulletcounter.grenade = _root.grenadeBullets;
_root.rightarm._x = _root.char._x;
_root.rightarm._y = _root.char._y - 4;
_root.leftarm._x = _root.char._x;
_root.leftarm._y = _root.char._y - 4;
_root.boxCam._x = _root.boxCam2._x - 350;
_root.boxCam._y = _root.boxCam2._y - 250;
_root.enemy1health._x = _root.enemy1._x - 20;
_root.enemy6health._x = _root.enemy6._x - 20;
_root.enemy1health._y = _root.enemy1._y - 110;
_root.enemy6health._y = _root.enemy6._y - 110;
_root.enemy2health._x = _root.enemy2._x - 20;
_root.enemy7health._x = _root.enemy7._x - 20;
_root.enemy2health._y = _root.enemy2._y - 110;
_root.enemy7health._y = _root.enemy7._y - 110;
_root.enemy3health._x = _root.enemy3._x - 20;
_root.enemy8health._x = _root.enemy8._x - 20;
_root.enemy3health._y = _root.enemy3._y - 110;
_root.enemy8health._y = _root.enemy8._y - 110;
_root.enemy4health._x = _root.enemy4._x - 20;
_root.enemy9health._x = _root.enemy9._x - 20;
_root.enemy4health._y = _root.enemy4._y - 110;
_root.enemy9health._y = _root.enemy9._y - 110;
_root.enemy5health._x = _root.enemy5._x - 20;
_root.enemy10health._x = _root.enemy10._x - 20;
_root.enemy5health._y = _root.enemy5._y - 110;
_root.enemy10health._y = _root.enemy10._y - 110;
_root.enemy11health._x = _root.enemy11._x - 20;
_root.enemy11health._y = _root.enemy11._y - 110;
t = 0;
while (t < 12) {
_root["enemyrightarm" + t]._x = _root["enemy" + t]._x;
_root["enemyrightarm" + t]._y = _root["enemy" + t]._y - 73;
_root["enemyleftarm" + t]._x = _root["enemy" + t]._x;
_root["enemyleftarm" + t]._y = _root["enemy" + t]._y - 73;
t++;
}
};
_root.boxCam2.onEnterFrame = function () {
_root.zoomx = 100;
_root.zoomy = 100;
_root.boxCam2._x = (_root.chx + _root.char._x) + ((_root._xmouse - _root.boxCam2._x) / mousy);
_root.boxCam2._y = ((_root.chy + _root.char._y) - 100) + ((_root._ymouse - _root.boxCam2._y) / mousy);
_root.zoomx = 0.5;
_root.zoomy = 0.5;
setProperty(_root.boxCam2, _width , 700);
setProperty(_root.boxCam2, _height , 490);
if (_root.sniping == false) {
mousy = 5;
} else {
mousy = 2;
}
var _local4 = Stage.width / this._width;
var _local3 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local4));
_y = ((Stage.height / 2) - (this._y * _local3));
_xscale = (100 * _local4);
_yscale = (100 * _local3);
};
_root.zoomx = 200;
_root.zoomy = 200;
_root.power = 0;
stop();
_root.char.gotoAndStop(1);
_root.her = 100;
_root.numberofenemieskilled = 0;
_root.numberofcrates = 0;
_root.numberofshotstaken = 0;
_root.numberofshotsontarget = 0;
Instance of Symbol 197 MovieClip in Frame 8
onClipEvent (load) {
oldx = this._x;
oldy = this._y;
}
onClipEvent (enterFrame) {
this._x = (_root.boxCam2._x / 2) + oldx;
this._y = (_root.boxCam2._y / 5) + oldy;
}
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 199 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.char.health = 0;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm6" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm6._rotation;
}
Instance of Symbol 205 MovieClip "enemyleftarm3" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm3._rotation;
}
Instance of Symbol 205 MovieClip "enemyleftarm2" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm2._rotation;
}
Instance of Symbol 212 MovieClip "leftarm" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(103);
this._rotation = _root.rightarm._rotation;
}
Instance of Symbol 214 MovieClip "ground" in Frame 8
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 225 MovieClip "crate5" in Frame 8
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 225 MovieClip "crate4" in Frame 8
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 225 MovieClip "crate3" in Frame 8
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 270 MovieClip "char" in Frame 8
onClipEvent (load) {
this.swapDepths(104);
health = 100;
grav = 0;
Height = 20;
}
onClipEvent (mouseDown) {
_root.powering = true;
}
onClipEvent (mouseUp) {
_root.powering = false;
}
onClipEvent (enterFrame) {
if (health > 100) {
health = 100;
}
if (health <= 0) {
health = 0;
}
if (grav > Height) {
grav = Height;
}
grav = grav + 1;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y - 1);
jumping = false;
grav = 0;
}
while (_root["crate" + i].hitTest(this.base) && (_root["crate" + i]._currentframe == 1)) {
_y = (_y-1);
jumping = false;
grav = 0;
}
i++;
}
if (_root.powering && (_root.rightarm._currentframe == 8)) {
_root.power = _root.power + 3;
}
if (Key.isDown(87) && (jumping == false)) {
jumping = true;
_root.shooting = false;
grav = -Height;
}
}
onClipEvent (load) {
speed = 0;
acceleration = 3.25;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (health > 0) {
if (e > 2) {
e = 2;
}
if (_root.power > 30) {
_root.power = 30;
}
if (direction) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (speed > 10) {
speed = 10;
}
if (Key.isDown(65)) {
direction = false;
_root.shooting = false;
this.gotoAndStop(3);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68)) {
direction = true;
_root.shooting = false;
this.gotoAndStop(2);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68) | Key.isDown(65)) {
} else {
this.gotoAndStop(1);
}
if (Key.isDown(68) && (Key.isDown(65))) {
this.gotoAndStop(1);
speed = 0;
}
if ((Key.isDown(83) && (jumping == false)) && (right)) {
this.gotoAndStop(6);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
if ((Key.isDown(83) && (jumping == false)) && (right == false)) {
this.gotoAndStop(7);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
}
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((_root._xmouse > this._x) && (this._currentframe == 1)) {
this._xscale = scale;
}
if ((_root._xmouse < this._x) && (this._currentframe == 1)) {
this._xscale = -scale;
} else {
this._xscale = scale;
}
if (_root._xmouse > this._x) {
_root.rightarm._yscale = scale;
_root.leftarm._yscale = scale;
right = true;
}
if (_root._xmouse < this._x) {
_root.rightarm._yscale = -scale;
_root.leftarm._yscale = -scale;
right = false;
}
if (jumping && (right)) {
this.gotoAndPlay(4);
}
if (jumping && (right == false)) {
this.gotoAndPlay(5);
}
i = 0;
while (i < 8) {
if (_root["ground" + i].hitTest(this.leftt)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["ground" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["ground" + i].hitTest(this.rightt)) {
this._x = this._x - 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x - 5;
speed = 0;
}
i++;
}
}
if (health <= 0) {
health = 0;
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.ending.gotoAndPlay(2);
_root.char.removeMovieClip();
a++;
}
}
}
Instance of Symbol 360 MovieClip "rightarm" in Frame 8
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
k++;
if ((Key.isDown(69) && (k > 5)) && (_currentframe != 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.nextFrame();
_root.leftarm.nextFrame();
_root.boxCam.bulletcounter.nextFrame();
_root.boxCam.weapons.nextFrame();
}
if ((Key.isDown(69) && (k > 5)) && (_currentframe == 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.gotoAndStop(1);
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe != 1)) {
k = 0;
this.prevFrame();
_root.leftarm.prevFrame();
_root.boxCam.bulletcounter.prevFrame();
_root.boxCam.weapons.prevFrame();
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe == 1)) {
k = 0;
this.gotoAndStop(9);
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
}
if (Key.isDown(49)) {
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.leftarm.gotoAndStop(2);
_root.boxCam.bulletcounter.gotoAndStop(2);
_root.boxCam.weapons.gotoAndStop(2);
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.leftarm.gotoAndStop(3);
_root.boxCam.bulletcounter.gotoAndStop(3);
_root.boxCam.weapons.gotoAndStop(3);
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
_root.leftarm.gotoAndStop(4);
_root.boxCam.bulletcounter.gotoAndStop(4);
_root.boxCam.weapons.gotoAndStop(4);
this.gotoAndStop(4);
}
if (Key.isDown(53)) {
_root.leftarm.gotoAndStop(5);
_root.boxCam.bulletcounter.gotoAndStop(5);
_root.boxCam.weapons.gotoAndStop(5);
this.gotoAndStop(5);
}
if (Key.isDown(54)) {
_root.leftarm.gotoAndStop(6);
_root.boxCam.bulletcounter.gotoAndStop(6);
_root.boxCam.weapons.gotoAndStop(6);
this.gotoAndStop(6);
}
if (Key.isDown(55)) {
_root.leftarm.gotoAndStop(7);
_root.boxCam.bulletcounter.gotoAndStop(7);
_root.boxCam.weapons.gotoAndStop(7);
this.gotoAndStop(7);
}
if (Key.isDown(56)) {
_root.leftarm.gotoAndStop(8);
_root.boxCam.bulletcounter.gotoAndStop(8);
_root.boxCam.weapons.gotoAndStop(8);
this.gotoAndStop(8);
}
if (Key.isDown(57)) {
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
this.gotoAndStop(9);
}
if (Key.isDown(58)) {
_root.leftarm.gotoAndStop(10);
_root.boxCam.bulletcounter.gotoAndStop(10);
_root.boxCam.weapons.gotoAndStop(10);
this.gotoAndStop(10);
}
this.swapDepths(105);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
Instance of Symbol 362 MovieClip "boxCam2" in Frame 8
onClipEvent (enterFrame) {
if (_root.shaking == true) {
_root.chx = random(15) - 8;
_root.chy = random(15) - 8;
}
}
Instance of Symbol 402 MovieClip "bullets" in Frame 8
onClipEvent (enterFrame) {
if (_name == "bullets") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 45;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (_root["enemy" + i].hit.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root["enemyrightarm" + i].head.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 34;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 403 MovieClip "sb" in Frame 8
onClipEvent (enterFrame) {
if (_name == "sb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 42;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 9;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 70;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 110;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 90;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mb" in Frame 8
onClipEvent (enterFrame) {
if (_name == "mb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 40;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 30;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "s3" in Frame 8
onClipEvent (enterFrame) {
if (_name == "s3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "s2" in Frame 8
onClipEvent (enterFrame) {
if (_name == "s2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "s1" in Frame 8
onClipEvent (enterFrame) {
if (_name == "s1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "m3" in Frame 8
onClipEvent (enterFrame) {
if (_name == "m3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "m2" in Frame 8
onClipEvent (enterFrame) {
if (_name == "m2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "m1" in Frame 8
onClipEvent (enterFrame) {
if (_name == "m1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 37;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mg" in Frame 8
onClipEvent (enterFrame) {
if (_name == "mg") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 19;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 38;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 30;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "uz" in Frame 8
onClipEvent (enterFrame) {
if (_name == "uz") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 28;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 27;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 446 MovieClip "grenade" in Frame 8
onClipEvent (enterFrame) {
if (gravity) {
grav++;
}
_y = (_y + grav);
if (_name == "grenade") {
this.gotoAndStop(3);
_x = -8000;
}
}
onClipEvent (load) {
gravity = true;
grav = 0;
speed = _root.power;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.hitTest(_root["crate" + i]) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.a.box.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root["enemy" + i].gotoAndStop(4);
}
if ((this.a.box.hitTest(_root.char) && (_root.char.health > 0)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root.char.health = _root.char.health - 5;
}
if (this.a.box.hitTest(_root["crate" + i]) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root["crate" + i].health = _root["crate" + i].health - 200;
}
if ((this.a.box.hitTest(_root.enemys) && (_root.enemys._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root.enemys.gotoAndStop(3);
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybullettwo" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybullettwo") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 8) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletthree" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletthree") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 8) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletfour" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletfour") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 479 MovieClip "boxCam" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(5000);
this.cacheAsBitmap();
}
Instance of Symbol 527 MovieClip "enemy2" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm2._yscale = scale;
_root.enemyleftarm2._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm2._yscale = -scale;
_root.enemyleftarm2._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm2.gotoAndStop(6);
} else {
_root.enemyrightarm2.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm2" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybullettwo.duplicateMovieClip("enemybullettwo" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullettwo" + _root.enemybulletCounter]._x = _root.enemyrightarm2._x;
_root["enemybullettwo" + _root.enemybulletCounter]._y = _root.enemyrightarm2._y;
_root["enemybullettwo" + _root.enemybulletCounter]._rotation = _root.enemyrightarm2._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy2health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy2.health;
}
Instance of Symbol 527 MovieClip "enemy3" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm3._yscale = scale;
_root.enemyleftarm3._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm3._yscale = -scale;
_root.enemyleftarm3._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if ((((_root.disted == false) && (this._currentframe != 4)) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm3.gotoAndStop(6);
} else {
_root.enemyrightarm3.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm3" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletthree.duplicateMovieClip("enemybulletthree" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletthree" + _root.enemybulletCounter]._x = _root.enemyrightarm3._x;
_root["enemybulletthree" + _root.enemybulletCounter]._y = _root.enemyrightarm3._y;
_root["enemybulletthree" + _root.enemybulletCounter]._rotation = _root.enemyrightarm3._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy3health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy3.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm4" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm4._rotation;
}
Instance of Symbol 527 MovieClip "enemy4" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 400;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm4._yscale = scale;
_root.enemyleftarm4._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm4._yscale = -scale;
_root.enemyleftarm4._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 12) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm4.gotoAndStop(6);
} else {
_root.enemyrightarm4.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm4" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfour.duplicateMovieClip("enemybulletfour" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfour" + _root.enemybulletCounter]._x = _root.enemyrightarm4._x;
_root["enemybulletfour" + _root.enemybulletCounter]._y = _root.enemyrightarm4._y;
_root["enemybulletfour" + _root.enemybulletCounter]._rotation = _root.enemyrightarm4._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy4health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy4.health;
}
Instance of Symbol 225 MovieClip "crate1" in Frame 8
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 225 MovieClip "crate6" in Frame 8
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 402 MovieClip "enemybulletsix" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletsix") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletseven" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletseven") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletnine" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletnine") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletten" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletten") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 527 MovieClip "enemy6" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm6._yscale = scale;
_root.enemyleftarm6._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm6._yscale = -scale;
_root.enemyleftarm6._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm6" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletsix.duplicateMovieClip("enemybulletsix" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletsix" + _root.enemybulletCounter]._x = _root.enemyrightarm6._x;
_root["enemybulletsix" + _root.enemybulletCounter]._y = _root.enemyrightarm6._y;
_root["enemybulletsix" + _root.enemybulletCounter]._rotation = _root.enemyrightarm6._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy6health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy6.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm7" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm7._rotation;
}
Instance of Symbol 527 MovieClip "enemy7" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm7._yscale = scale;
_root.enemyleftarm7._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm7._yscale = -scale;
_root.enemyleftarm7._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm7" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 700)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletseven.duplicateMovieClip("enemybulletseven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletseven" + _root.enemybulletCounter]._x = _root.enemyrightarm7._x;
_root["enemybulletseven" + _root.enemybulletCounter]._y = _root.enemyrightarm7._y;
_root["enemybulletseven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm7._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy7health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy7.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm9" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm9._rotation;
}
Instance of Symbol 527 MovieClip "enemy9" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm9._yscale = scale;
_root.enemyleftarm9._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm9._yscale = -scale;
_root.enemyleftarm9._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm9.gotoAndStop(6);
} else {
_root.enemyrightarm9.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm9" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletnine.duplicateMovieClip("enemybulletnine" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletnine" + _root.enemybulletCounter]._x = _root.enemyrightarm9._x;
_root["enemybulletnine" + _root.enemybulletCounter]._y = _root.enemyrightarm9._y;
_root["enemybulletnine" + _root.enemybulletCounter]._rotation = _root.enemyrightarm9._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy9health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy9.health;
}
Instance of Symbol 583 MovieClip "enemy10health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy10.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm10" in Frame 8
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm10._rotation;
}
Instance of Symbol 527 MovieClip "enemy10" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm10._yscale = scale;
_root.enemyleftarm10._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm10._yscale = -scale;
_root.enemyleftarm10._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm10.gotoAndStop(6);
} else {
_root.enemyrightarm10.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm10" in Frame 8
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletten.duplicateMovieClip("enemybulletten" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletten" + _root.enemybulletCounter]._x = _root.enemyrightarm10._x;
_root["enemybulletten" + _root.enemybulletCounter]._y = _root.enemyrightarm10._y;
_root["enemybulletten" + _root.enemybulletCounter]._rotation = _root.enemyrightarm10._rotation;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm11" in Frame 8
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm11._rotation;
}
Instance of Symbol 527 MovieClip "enemy11" in Frame 8
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm11._yscale = scale;
_root.enemyleftarm11._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm11._yscale = -scale;
_root.enemyleftarm11._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm11.gotoAndStop(6);
} else {
_root.enemyrightarm11.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm11" in Frame 8
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = _root.char._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
this.g.play();
_root.enemybulletCounter = _root.enemybulletCounter + 3;
_root.enemybulletseleven.duplicateMovieClip("enemybulletseleven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletsseleven.duplicateMovieClip(("enemybulletsseleven" + _root.enemybulletCounte) + 1, _root.enemybulletCounter + 1);
_root["enemybulletsseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletssseleven.duplicateMovieClip(("enemybulletssseleven" + _root.enemybulletCounter) + 2, _root.enemybulletCounter + 2);
_root["enemybulletssseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy11health" in Frame 8
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy11.health;
}
Instance of Symbol 588 MovieClip "enemybulletseleven" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletseleven") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletsseleven" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletsseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletssseleven" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybulletssseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 589 MovieClip "enemybullets" in Frame 8
onClipEvent (enterFrame) {
if (_name == "enemybullets") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarms._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarms._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 4) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
i++;
}
if (this.hitTest(_root.ground3)) {
var chink = new Sound();
chink.attachSound("chink");
chink.start();
}
}
Instance of Symbol 591 MovieClip "uzipickup" in Frame 8
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.crate3._currentframe == 2)) {
this.gotoAndStop(2);
}
if (_root.char.hitTest(this) && (this._currentframe == 2)) {
_root.uziBullets = _root.uziBullets + 30;
this.gotoAndStop(3);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 593 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.crate6._currentframe == 2)) {
this.gotoAndStop(2);
}
if (_root.char.hitTest(this) && (this._currentframe == 2)) {
_root.grenadeBullets = _root.grenadeBullets + 3;
this.gotoAndStop(3);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip "pistolpickup" in Frame 8
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy4._currentframe == 3) | (_root.enemy4._currentframe == 4)) {
_x = _root.enemy4._x;
_y = _root.enemy4._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy1._currentframe == 3) | (_root.enemy1._currentframe == 4)) {
_x = _root.enemy1._x;
_y = _root.enemy1._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy2._currentframe == 3) | (_root.enemy2._currentframe == 4)) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy3._currentframe == 3) | (_root.enemy3._currentframe == 4)) {
_x = _root.enemy3._x;
_y = _root.enemy3._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy5._currentframe == 3) | (_root.enemy5._currentframe == 4)) {
_x = _root.enemy5._x;
_y = _root.enemy5._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy6._currentframe == 3) | (_root.enemy6._currentframe == 4)) {
_x = _root.enemy6._x;
_y = _root.enemy6._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy7._currentframe == 3) | (_root.enemy7._currentframe == 4)) {
_x = _root.enemy7._x;
_y = _root.enemy7._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy8._currentframe == 3) | (_root.enemy8._currentframe == 4)) {
_x = _root.enemy8._x;
_y = _root.enemy8._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy9._currentframe == 3) | (_root.enemy9._currentframe == 4)) {
_x = _root.enemy9._x;
_y = _root.enemy9._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy10._currentframe == 3) | (_root.enemy10._currentframe == 4)) {
_x = _root.enemy10._x;
_y = _root.enemy10._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 597 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy11._currentframe == 3) | (_root.enemy11._currentframe == 4)) {
_x = _root.enemy11._x;
_y = _root.enemy11._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 599 MovieClip in Frame 8
onClipEvent (enterFrame) {
if ((_root.enemy9._currentframe == 3) | (_root.enemy9._currentframe == 4)) {
_x = _root.enemy9._x;
_y = _root.enemy9._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 603 MovieClip "signpost" in Frame 8
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
removeMovieClip(_root.char);
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.gotoAndStop("endlevelone");
a++;
}
}
}
Instance of Symbol 605 MovieClip "shaketimer" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 608 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 608 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 269 MovieClip "dyingmc" in Frame 8
onClipEvent (enterFrame) {
if (_root.char.health <= 0) {
this._x = _root.char._x - 10;
this._y = _root.char._y - 80;
}
}
Instance of Symbol 612 MovieClip "ground3" in Frame 8
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char.health = 0;
}
}
Frame 9
_root.shutter.gotoAndPlay(2);
_root.boxCam.removeMovieClip();
_root.boxCam2.onEnterFrame = function () {
var _local3 = Stage.width / this._width;
var _local2 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local3));
_y = ((Stage.height / 2) - (this._y * _local2));
_xscale = (100 * _local3);
_yscale = (100 * _local2);
};
stop();
stopAllSounds();
if (_root.her > 0) {
_root.leveltwounlocked = true;
}
Instance of Symbol 627 MovieClip in Frame 9
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip in Frame 9
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 639 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 10
_root.shutter.gotoAndPlay(2);
stop();
stop();
stopAllSounds();
Instance of Symbol 654 MovieClip "lev2button" in Frame 10
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 4) {
this.gotoAndStop(2);
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 10
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 11
_root.shaketimer.gotoAndStop(1);
_root.sniping = false;
_root.shutter.gotoAndPlay(2);
_root.chx = 0;
_root.chy = 0;
_root.bulletCounter = 350;
_root.enemybulletCounter = 20;
_root.grenadeCounter = 560;
onEnterFrame = function () {
_root.health = 100 - _root.boxCam.health;
_root.accuracy = int((_root.numberofshotsontarget / _root.numberofshotstaken) * 100);
_root.boxCam.health = _root.char.health;
if (_root.bulletCounter > 369) {
_root.bulletCounter = 350;
}
if (_root.enemybulletCounter > 39) {
_root.enemybulletCounter = 20;
}
if (_root.bulletCounter > 589) {
_root.bulletCounter = 560;
}
_root.boxCam.bulletcounter.pistol = _root.pistolBullets;
_root.boxCam.bulletcounter.uzi = _root.uziBullets;
_root.boxCam.bulletcounter.shotgun = _root.shotgunBullets;
_root.boxCam.bulletcounter.machinegun = _root.machinegunBullets;
_root.boxCam.bulletcounter.sniper = _root.sniperBullets;
_root.boxCam.bulletcounter.auto = _root.autoBullets;
_root.boxCam.bulletcounter.minigun = _root.miniBullets;
_root.boxCam.bulletcounter.grenade = _root.grenadeBullets;
_root.rightarm._x = _root.char._x;
_root.rightarm._y = _root.char._y - 4;
_root.leftarm._x = _root.char._x;
_root.leftarm._y = _root.char._y - 4;
_root.boxCam._x = _root.boxCam2._x - 350;
_root.boxCam._y = _root.boxCam2._y - 250;
_root.enemy1health._x = _root.enemy1._x - 20;
_root.enemy6health._x = _root.enemy6._x - 20;
_root.enemy1health._y = _root.enemy1._y - 110;
_root.enemy6health._y = _root.enemy6._y - 110;
_root.enemy2health._x = _root.enemy2._x - 20;
_root.enemy7health._x = _root.enemy7._x - 20;
_root.enemy2health._y = _root.enemy2._y - 110;
_root.enemy7health._y = _root.enemy7._y - 110;
_root.enemy3health._x = _root.enemy3._x - 20;
_root.enemy8health._x = _root.enemy8._x - 20;
_root.enemy3health._y = _root.enemy3._y - 110;
_root.enemy8health._y = _root.enemy8._y - 110;
_root.enemy4health._x = _root.enemy4._x - 20;
_root.enemy9health._x = _root.enemy9._x - 20;
_root.enemy4health._y = _root.enemy4._y - 110;
_root.enemy9health._y = _root.enemy9._y - 110;
_root.enemy5health._x = _root.enemy5._x - 20;
_root.enemy10health._x = _root.enemy10._x - 20;
_root.enemy5health._y = _root.enemy5._y - 110;
_root.enemy10health._y = _root.enemy10._y - 110;
_root.enemy11health._x = _root.enemy11._x - 20;
_root.enemy11health._y = _root.enemy11._y - 110;
t = 0;
while (t < 12) {
_root["enemyrightarm" + t]._x = _root["enemy" + t]._x;
_root["enemyrightarm" + t]._y = _root["enemy" + t]._y - 73;
_root["enemyleftarm" + t]._x = _root["enemy" + t]._x;
_root["enemyleftarm" + t]._y = _root["enemy" + t]._y - 73;
t++;
}
};
_root.boxCam2.onEnterFrame = function () {
_root.zoomx = 100;
_root.zoomy = 100;
_root.boxCam2._x = (_root.chx + _root.char._x) + ((_root._xmouse - _root.boxCam2._x) / mousy);
_root.boxCam2._y = ((_root.chy + _root.char._y) - 100) + ((_root._ymouse - _root.boxCam2._y) / mousy);
_root.zoomx = 0.5;
_root.zoomy = 0.5;
setProperty(_root.boxCam2, _width , 700);
setProperty(_root.boxCam2, _height , 490);
if (_root.sniping == false) {
mousy = 5;
} else {
mousy = 2;
}
var _local4 = Stage.width / this._width;
var _local3 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local4));
_y = ((Stage.height / 2) - (this._y * _local3));
_xscale = (100 * _local4);
_yscale = (100 * _local3);
};
_root.zoomx = 200;
_root.zoomy = 200;
_root.power = 0;
stop();
_root.health = 100;
_root.numberofenemieskilled = 0;
_root.numberofcrates = 0;
_root.numberofshotstaken = 0;
_root.numberofshotsontarget = 0;
_root.char.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Frame 11
onClipEvent (load) {
oldx = this._x;
oldy = this._y;
}
onClipEvent (enterFrame) {
this._x = (_root.boxCam2._x / 2) + oldx;
this._y = (_root.boxCam2._y / 5) + oldy;
}
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 199 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.char.health = 0;
}
}
Instance of Symbol 362 MovieClip "boxCam2" in Frame 11
onClipEvent (enterFrame) {
if (_root.shaking == true) {
_root.chx = random(15) - 8;
_root.chy = random(15) - 8;
}
}
Instance of Symbol 479 MovieClip "boxCam" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(5000);
this.cacheAsBitmap();
}
Instance of Symbol 402 MovieClip "enemybulletfour" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletfour") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 674 MovieClip "enemybulletssix" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletssix") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 15;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 30;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm8" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm8._rotation;
}
Instance of Symbol 527 MovieClip "enemy8" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm8._yscale = scale;
_root.enemyleftarm8._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm8._yscale = -scale;
_root.enemyleftarm8._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm8.gotoAndStop(6);
} else {
_root.enemyrightarm8.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm8" in Frame 11
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 630)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulleteeight.duplicateMovieClip("enemybulleteeight" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulleteeight" + _root.enemybulletCounter]._x = _root.enemyrightarm8._x;
_root["enemybulleteeight" + _root.enemybulletCounter]._y = _root.enemyrightarm8._y;
_root["enemybulleteeight" + _root.enemybulletCounter]._rotation = _root.enemyrightarm8._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy8health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy8.health;
}
Instance of Symbol 676 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy8._currentframe == 3) | (_root.enemy8._currentframe == 4)) {
_x = _root.enemy8._x;
_y = _root.enemy8._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 605 MovieClip "shaketimer" in Frame 11
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 402 MovieClip "bullets" in Frame 11
onClipEvent (enterFrame) {
if (_name == "bullets") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 45;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (_root["enemy" + i].hit.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root["enemyrightarm" + i].head.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 34;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 403 MovieClip "sb" in Frame 11
onClipEvent (enterFrame) {
if (_name == "sb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 42;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 9;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 70;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 110;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 90;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mb" in Frame 11
onClipEvent (enterFrame) {
if (_name == "mb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 40;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 30;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "s3" in Frame 11
onClipEvent (enterFrame) {
if (_name == "s3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "s2" in Frame 11
onClipEvent (enterFrame) {
if (_name == "s2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "s1" in Frame 11
onClipEvent (enterFrame) {
if (_name == "s1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "m3" in Frame 11
onClipEvent (enterFrame) {
if (_name == "m3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "m2" in Frame 11
onClipEvent (enterFrame) {
if (_name == "m2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "m1" in Frame 11
onClipEvent (enterFrame) {
if (_name == "m1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 37;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mg" in Frame 11
onClipEvent (enterFrame) {
if (_name == "mg") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 19;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 38;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 30;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "uz" in Frame 11
onClipEvent (enterFrame) {
if (_name == "uz") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 28;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 27;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 446 MovieClip "grenade" in Frame 11
onClipEvent (enterFrame) {
if (gravity) {
grav++;
}
_y = (_y + grav);
if (_name == "grenade") {
_x = -4000;
}
}
onClipEvent (load) {
gravity = true;
grav = 0;
speed = _root.power;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.hitTest(_root["crate" + i]) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.a.box.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root["enemy" + i].gotoAndStop(4);
}
if ((this.a.box.hitTest(_root.char) && (_root.char.health > 0)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root.char.health = _root.char.health - 5;
}
if (this.a.box.hitTest(_root["crate" + i]) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root["crate" + i].health = _root["crate" + i].health - 200;
}
if ((this.a.box.hitTest(_root.enemys) && (_root.enemys._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root.enemys.gotoAndStop(3);
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm4" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm4._rotation;
}
Instance of Symbol 527 MovieClip "enemy4" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 400;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm4._yscale = scale;
_root.enemyleftarm4._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm4._yscale = -scale;
_root.enemyleftarm4._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 12) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm4.gotoAndStop(6);
} else {
_root.enemyrightarm4.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm4" in Frame 11
onClipEvent (load) {
this.gotoAndStop(3);
_root.euzi = new Sound();
_root.euzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 530)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfour.duplicateMovieClip("enemybulletfour" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfour" + _root.enemybulletCounter]._x = _root.enemyrightarm4._x;
_root["enemybulletfour" + _root.enemybulletCounter]._y = _root.enemyrightarm4._y;
_root["enemybulletfour" + _root.enemybulletCounter]._rotation = _root.enemyrightarm4._rotation;
_root.euzi.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy4health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy4.health;
}
Instance of Symbol 225 MovieClip "crate1" in Frame 11
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 680 MovieClip in Frame 11
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy4._currentframe == 3) | (_root.enemy4._currentframe == 4)) {
_x = _root.enemy4._x;
_y = _root.enemy4._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm1" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm1._rotation;
}
Instance of Symbol 527 MovieClip "enemy1" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if ((rx < this._x) && (health > 0)) {
_xscale = (-scale);
}
if ((rx > this._x) && (health > 0)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = scale;
_root.enemyleftarm1._yscale = scale;
} else if (((_xscale == (-scale)) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = -scale;
_root.enemyleftarm1._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 90))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 15))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm1.gotoAndStop(6);
} else {
_root.enemyrightarm1.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm1" in Frame 11
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 540)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybullet.duplicateMovieClip("enemybullet" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullet" + _root.enemybulletCounter]._x = _root.enemyrightarm1._x;
_root["enemybullet" + _root.enemybulletCounter]._y = _root.enemyrightarm1._y;
_root["enemybullet" + _root.enemybulletCounter]._rotation = _root.enemyrightarm1._rotation;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 21) {
i++;
}
}
Instance of Symbol 583 MovieClip "enemy1health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy1.health;
}
Instance of Symbol 402 MovieClip "enemybullet" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybullet") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 595 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy1._currentframe == 3) | (_root.enemy1._currentframe == 4)) {
_x = _root.enemy1._x;
_y = _root.enemy1._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm2" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm2._rotation;
}
Instance of Symbol 527 MovieClip "enemy2" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm2._yscale = scale;
_root.enemyleftarm2._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm2._yscale = -scale;
_root.enemyleftarm2._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm2.gotoAndStop(6);
} else {
_root.enemyrightarm2.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm2" in Frame 11
onClipEvent (load) {
this.gotoAndStop(3);
_root.e2uzi = new Sound();
_root.e2uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 530)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybullettwo.duplicateMovieClip("enemybullettwo" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullettwo" + _root.enemybulletCounter]._x = _root.enemyrightarm2._x;
_root["enemybullettwo" + _root.enemybulletCounter]._y = _root.enemyrightarm2._y;
_root["enemybullettwo" + _root.enemybulletCounter]._rotation = _root.enemyrightarm2._rotation;
_root.e2uzi.start();
}
_root.e2uzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy2health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy2.health;
}
Instance of Symbol 402 MovieClip "enemybullettwo" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybullettwo") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 8) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm6" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm6._rotation;
}
Instance of Symbol 527 MovieClip "enemy6" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm6._yscale = scale;
_root.enemyleftarm6._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm6._yscale = -scale;
_root.enemyleftarm6._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm6" in Frame 11
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 10) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 900)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletssix.duplicateMovieClip("enemybulletssix" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletssix" + _root.enemybulletCounter]._x = _root.enemyrightarm6._x;
_root["enemybulletssix" + _root.enemybulletCounter]._y = _root.enemyrightarm6._y;
_root["enemybulletssix" + _root.enemybulletCounter]._rotation = _root.enemyrightarm6._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy6health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy6.health;
}
Instance of Symbol 212 MovieClip "leftarm" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(103);
this._rotation = _root.rightarm._rotation;
}
Instance of Symbol 270 MovieClip "char" in Frame 11
onClipEvent (load) {
this.swapDepths(104);
health = 100;
grav = 0;
Height = 20;
}
onClipEvent (mouseDown) {
_root.powering = true;
}
onClipEvent (mouseUp) {
_root.powering = false;
}
onClipEvent (enterFrame) {
if (health > 100) {
health = 100;
}
if (health <= 0) {
health = 0;
}
if (grav > Height) {
grav = Height;
}
grav = grav + 1;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y - 1);
jumping = false;
grav = 0;
}
while (_root["crate" + i].hitTest(this.base) && (_root["crate" + i]._currentframe == 1)) {
_y = (_y-1);
jumping = false;
grav = 0;
}
i++;
}
if (_root.powering && (_root.rightarm._currentframe == 8)) {
_root.power = _root.power + 3;
}
if (Key.isDown(87) && (jumping == false)) {
jumping = true;
_root.shooting = false;
grav = -Height;
}
}
onClipEvent (load) {
speed = 0;
acceleration = 3.25;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (health > 0) {
if (e > 2) {
e = 2;
}
if (_root.power > 30) {
_root.power = 30;
}
if (direction) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (speed > 10) {
speed = 10;
}
if (Key.isDown(65)) {
direction = false;
_root.shooting = false;
this.gotoAndStop(3);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68)) {
direction = true;
_root.shooting = false;
this.gotoAndStop(2);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68) | Key.isDown(65)) {
} else {
this.gotoAndStop(1);
}
if (Key.isDown(68) && (Key.isDown(65))) {
this.gotoAndStop(1);
speed = 0;
}
if ((Key.isDown(83) && (jumping == false)) && (right)) {
this.gotoAndStop(6);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
if ((Key.isDown(83) && (jumping == false)) && (right == false)) {
this.gotoAndStop(7);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
}
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((_root._xmouse > this._x) && (this._currentframe == 1)) {
this._xscale = scale;
}
if ((_root._xmouse < this._x) && (this._currentframe == 1)) {
this._xscale = -scale;
} else {
this._xscale = scale;
}
if (_root._xmouse > this._x) {
_root.rightarm._yscale = scale;
_root.leftarm._yscale = scale;
right = true;
}
if (_root._xmouse < this._x) {
_root.rightarm._yscale = -scale;
_root.leftarm._yscale = -scale;
right = false;
}
if (jumping && (right)) {
this.gotoAndPlay(4);
}
if (jumping && (right == false)) {
this.gotoAndPlay(5);
}
i = 0;
while (i < 8) {
if (_root["ground" + i].hitTest(this.leftt)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["ground" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["ground" + i].hitTest(this.rightt)) {
this._x = this._x - 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x - 5;
speed = 0;
}
i++;
}
}
if (health <= 0) {
health = 0;
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
this.gotoAndStop(8);
_root.ending.gotoAndPlay(2);
_root.char.removeMovieClip();
a++;
}
}
}
Instance of Symbol 360 MovieClip "rightarm" in Frame 11
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
k++;
if ((Key.isDown(69) && (k > 5)) && (_currentframe != 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.nextFrame();
_root.leftarm.nextFrame();
_root.boxCam.bulletcounter.nextFrame();
_root.boxCam.weapons.nextFrame();
}
if ((Key.isDown(69) && (k > 5)) && (_currentframe == 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.gotoAndStop(1);
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe != 1)) {
k = 0;
this.prevFrame();
_root.leftarm.prevFrame();
_root.boxCam.bulletcounter.prevFrame();
_root.boxCam.weapons.prevFrame();
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe == 1)) {
k = 0;
this.gotoAndStop(9);
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
}
if (Key.isDown(49)) {
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.leftarm.gotoAndStop(2);
_root.boxCam.bulletcounter.gotoAndStop(2);
_root.boxCam.weapons.gotoAndStop(2);
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.leftarm.gotoAndStop(3);
_root.boxCam.bulletcounter.gotoAndStop(3);
_root.boxCam.weapons.gotoAndStop(3);
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
_root.leftarm.gotoAndStop(4);
_root.boxCam.bulletcounter.gotoAndStop(4);
_root.boxCam.weapons.gotoAndStop(4);
this.gotoAndStop(4);
}
if (Key.isDown(53)) {
_root.leftarm.gotoAndStop(5);
_root.boxCam.bulletcounter.gotoAndStop(5);
_root.boxCam.weapons.gotoAndStop(5);
this.gotoAndStop(5);
}
if (Key.isDown(54)) {
_root.leftarm.gotoAndStop(6);
_root.boxCam.bulletcounter.gotoAndStop(6);
_root.boxCam.weapons.gotoAndStop(6);
this.gotoAndStop(6);
}
if (Key.isDown(55)) {
_root.leftarm.gotoAndStop(7);
_root.boxCam.bulletcounter.gotoAndStop(7);
_root.boxCam.weapons.gotoAndStop(7);
this.gotoAndStop(7);
}
if (Key.isDown(56)) {
_root.leftarm.gotoAndStop(8);
_root.boxCam.bulletcounter.gotoAndStop(8);
_root.boxCam.weapons.gotoAndStop(8);
this.gotoAndStop(8);
}
if (Key.isDown(57)) {
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
this.gotoAndStop(9);
}
if (Key.isDown(58)) {
_root.leftarm.gotoAndStop(10);
_root.boxCam.bulletcounter.gotoAndStop(10);
_root.boxCam.weapons.gotoAndStop(10);
this.gotoAndStop(10);
}
this.swapDepths(105);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
Instance of Symbol 205 MovieClip "enemyleftarm11" in Frame 11
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm11._rotation;
}
Instance of Symbol 527 MovieClip "enemy11" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm11._yscale = scale;
_root.enemyleftarm11._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm11._yscale = -scale;
_root.enemyleftarm11._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm11.gotoAndStop(6);
} else {
_root.enemyrightarm11.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm11" in Frame 11
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = _root.char._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 540)) {
this.g.play();
_root.enemybulletCounter = _root.enemybulletCounter + 3;
_root.enemybulletseleven.duplicateMovieClip("enemybulletseleven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletsseleven.duplicateMovieClip(("enemybulletsseleven" + _root.enemybulletCounte) + 1, _root.enemybulletCounter + 1);
_root["enemybulletsseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletssseleven.duplicateMovieClip(("enemybulletssseleven" + _root.enemybulletCounter) + 2, _root.enemybulletCounter + 2);
_root["enemybulletssseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy11health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy11.health;
}
Instance of Symbol 588 MovieClip "enemybulletseleven" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletseleven") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletsseleven" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletsseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletssseleven" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletssseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 597 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy11._currentframe == 3) | (_root.enemy11._currentframe == 4)) {
_x = _root.enemy11._x;
_y = _root.enemy11._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm5" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm5._rotation;
}
Instance of Symbol 527 MovieClip "enemy5" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm5._yscale = scale;
_root.enemyleftarm5._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm5._yscale = -scale;
_root.enemyleftarm5._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm5.gotoAndStop(6);
} else {
_root.enemyrightarm5.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm5.gotoAndStop(5);
_root.enemyleftarm5.gotoAndStop(5);
_root.enemy5health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm5.gotoAndStop(5);
_root.enemyleftarm5.gotoAndStop(5);
_root.enemy5health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm5" in Frame 11
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 540)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfive.duplicateMovieClip("enemybulletfive" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfive" + _root.enemybulletCounter]._x = _root.enemyrightarm5._x;
_root["enemybulletfive" + _root.enemybulletCounter]._y = _root.enemyrightarm5._y;
_root["enemybulletfive" + _root.enemybulletCounter]._rotation = _root.enemyrightarm5._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy5health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy5.health;
}
Instance of Symbol 402 MovieClip "enemybulletfive" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletfive") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 225 MovieClip "crate5" in Frame 11
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 683 MovieClip "enemybulleteeight" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulleteeight") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 680 MovieClip in Frame 11
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy2._currentframe == 3) | (_root.enemy2._currentframe == 4)) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 685 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy6._currentframe == 3) | (_root.enemy6._currentframe == 4)) {
_x = _root.enemy6._x;
_y = _root.enemy6._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy5._currentframe == 3) | (_root.enemy5._currentframe == 4)) {
_x = _root.enemy5._x;
_y = _root.enemy5._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm9" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm9._rotation;
}
Instance of Symbol 527 MovieClip "enemy9" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm9._yscale = scale;
_root.enemyleftarm9._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm9._yscale = -scale;
_root.enemyleftarm9._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm9.gotoAndStop(6);
} else {
_root.enemyrightarm9.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm9" in Frame 11
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 700)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletnine.duplicateMovieClip("enemybulletnine" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletnine" + _root.enemybulletCounter]._x = _root.enemyrightarm9._x;
_root["enemybulletnine" + _root.enemybulletCounter]._y = _root.enemyrightarm9._y;
_root["enemybulletnine" + _root.enemybulletCounter]._rotation = _root.enemyrightarm9._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy9health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy9.health;
}
Instance of Symbol 402 MovieClip "enemybulletnine" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletnine") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 595 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy9._currentframe == 3) | (_root.enemy9._currentframe == 4)) {
_x = _root.enemy9._x;
_y = _root.enemy9._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm3" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm3._rotation;
}
Instance of Symbol 527 MovieClip "enemy3" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm3._yscale = scale;
_root.enemyleftarm3._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm3._yscale = -scale;
_root.enemyleftarm3._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if ((((_root.disted == false) && (this._currentframe != 4)) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm3.gotoAndStop(6);
} else {
_root.enemyrightarm3.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm3" in Frame 11
onClipEvent (load) {
this.gotoAndStop(3);
_root.e3uzi = new Sound();
_root.e3uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 630)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletthree.duplicateMovieClip("enemybulletthree" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletthree" + _root.enemybulletCounter]._x = _root.enemyrightarm3._x;
_root["enemybulletthree" + _root.enemybulletCounter]._y = _root.enemyrightarm3._y;
_root["enemybulletthree" + _root.enemybulletCounter]._rotation = _root.enemyrightarm3._rotation;
_root.e3uzi.start();
}
_root.e3uzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy3health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy3.health;
}
Instance of Symbol 402 MovieClip "enemybulletthree" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletthree") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 8) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 680 MovieClip in Frame 11
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy3._currentframe == 3) | (_root.enemy3._currentframe == 4)) {
_x = _root.enemy3._x;
_y = _root.enemy3._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 225 MovieClip "crate4" in Frame 11
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 205 MovieClip "enemyleftarm7" in Frame 11
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm7._rotation;
}
Instance of Symbol 527 MovieClip "enemy7" in Frame 11
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm7._yscale = scale;
_root.enemyleftarm7._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm7._yscale = -scale;
_root.enemyleftarm7._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm7" in Frame 11
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 700)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletseven.duplicateMovieClip("enemybulletseven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletseven" + _root.enemybulletCounter]._x = _root.enemyrightarm7._x;
_root["enemybulletseven" + _root.enemybulletCounter]._y = _root.enemyrightarm7._y;
_root["enemybulletseven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm7._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy7health" in Frame 11
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy7.health;
}
Instance of Symbol 402 MovieClip "enemybulletseven" in Frame 11
onClipEvent (enterFrame) {
if (_name == "enemybulletseven") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 595 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy7._currentframe == 3) | (_root.enemy7._currentframe == 4)) {
_x = _root.enemy7._x;
_y = _root.enemy7._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 599 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy1._currentframe == 3) | (_root.enemy1._currentframe == 4)) {
_x = _root.enemy1._x;
_y = _root.enemy1._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 599 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((_root.enemy5._currentframe == 3) | (_root.enemy5._currentframe == 4)) {
_x = _root.enemy5._x;
_y = _root.enemy5._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 603 MovieClip "signpost" in Frame 11
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
removeMovieClip(_root.char);
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.gotoAndStop("endleveltwo");
a++;
}
}
}
Instance of Symbol 687 MovieClip in Frame 11
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.crate5._currentframe == 2)) {
this.gotoAndStop(2);
}
if (_root.char.hitTest(this) && (this._currentframe == 2)) {
_root.autoBullets = _root.autoBullets + 45;
this.gotoAndStop(3);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 608 MovieClip in Frame 11
onClipEvent (enterFrame) {
this._x = _root.signpost._x - 10;
this._y = _root.signpost._y;
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 269 MovieClip "dyingmc" in Frame 11
onClipEvent (enterFrame) {
if (_root.char.health <= 0) {
this._x = _root.char._x - 10;
this._y = _root.char._y - 80;
}
}
Frame 12
_root.shutter.gotoAndPlay(2);
_root.boxCam.removeMovieClip();
_root.boxCam2.onEnterFrame = function () {
var _local3 = Stage.width / this._width;
var _local2 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local3));
_y = ((Stage.height / 2) - (this._y * _local2));
_xscale = (100 * _local3);
_yscale = (100 * _local2);
};
stop();
stopAllSounds();
_root.removeMovieClip(_root.char);
if (_root.her > 0) {
_root.levelthreeunlocked = true;
}
Instance of Symbol 627 MovieClip in Frame 12
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip in Frame 12
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 639 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 13
_root.shutter.gotoAndPlay(2);
stop();
stopAllSounds();
Instance of Symbol 707 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 47 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 13
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 14
_root.sniping = false;
_root.shutter.gotoAndPlay(2);
_root.chx = 0;
_root.chy = 0;
onEnterFrame = function () {
_root.health = 100 - _root.boxCam.health;
_root.accuracy = int((_root.numberofshotsontarget / _root.numberofshotstaken) * 100);
_root.boxCam.health = _root.char.health;
if (_root.bulletCounter > 369) {
_root.bulletCounter = 350;
}
if (_root.enemybulletCounter > 39) {
_root.enemybulletCounter = 20;
}
if (_root.bulletCounter > 589) {
_root.bulletCounter = 560;
}
_root.boxCam.bulletcounter.pistol = _root.pistolBullets;
_root.boxCam.bulletcounter.uzi = _root.uziBullets;
_root.boxCam.bulletcounter.shotgun = _root.shotgunBullets;
_root.boxCam.bulletcounter.machinegun = _root.machinegunBullets;
_root.boxCam.bulletcounter.sniper = _root.sniperBullets;
_root.boxCam.bulletcounter.auto = _root.autoBullets;
_root.boxCam.bulletcounter.minigun = _root.miniBullets;
_root.boxCam.bulletcounter.grenade = _root.grenadeBullets;
_root.rightarm._x = _root.char._x;
_root.rightarm._y = _root.char._y - 4;
_root.leftarm._x = _root.char._x;
_root.leftarm._y = _root.char._y - 4;
_root.boxCam._x = _root.boxCam2._x - 350;
_root.boxCam._y = _root.boxCam2._y - 250;
_root.enemy1health._x = _root.enemy1._x - 20;
_root.enemy6health._x = _root.enemy6._x - 20;
_root.enemy1health._y = _root.enemy1._y - 110;
_root.enemy6health._y = _root.enemy6._y - 110;
_root.enemy2health._x = _root.enemy2._x - 20;
_root.enemy7health._x = _root.enemy7._x - 20;
_root.enemy2health._y = _root.enemy2._y - 110;
_root.enemy7health._y = _root.enemy7._y - 110;
_root.enemy3health._x = _root.enemy3._x - 20;
_root.enemy8health._x = _root.enemy8._x - 20;
_root.enemy3health._y = _root.enemy3._y - 110;
_root.enemy8health._y = _root.enemy8._y - 110;
_root.enemy4health._x = _root.enemy4._x - 20;
_root.enemy9health._x = _root.enemy9._x - 20;
_root.enemy4health._y = _root.enemy4._y - 110;
_root.enemy9health._y = _root.enemy9._y - 110;
_root.enemy5health._x = _root.enemy5._x - 20;
_root.enemy10health._x = _root.enemy10._x - 20;
_root.enemy5health._y = _root.enemy5._y - 110;
_root.enemy10health._y = _root.enemy10._y - 110;
_root.enemy11health._x = _root.enemy11._x - 20;
_root.enemy11health._y = _root.enemy11._y - 110;
t = 0;
while (t < 12) {
_root["enemyrightarm" + t]._x = _root["enemy" + t]._x;
_root["enemyrightarm" + t]._y = _root["enemy" + t]._y - 73;
_root["enemyleftarm" + t]._x = _root["enemy" + t]._x;
_root["enemyleftarm" + t]._y = _root["enemy" + t]._y - 73;
t++;
}
};
_root.boxCam2.onEnterFrame = function () {
_root.zoomx = 100;
_root.zoomy = 100;
_root.boxCam2._x = (_root.chx + _root.char._x) + ((_root._xmouse - _root.boxCam2._x) / mousy);
_root.boxCam2._y = ((_root.chy + _root.char._y) - 100) + ((_root._ymouse - _root.boxCam2._y) / mousy);
_root.zoomx = 0.5;
_root.zoomy = 0.5;
setProperty(_root.boxCam2, _width , 700);
setProperty(_root.boxCam2, _height , 490);
if (_root.sniping == false) {
mousy = 5;
} else {
mousy = 2;
}
var _local4 = Stage.width / this._width;
var _local3 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local4));
_y = ((Stage.height / 2) - (this._y * _local3));
_xscale = (100 * _local4);
_yscale = (100 * _local3);
};
_root.zoomx = 200;
_root.zoomy = 200;
_root.power = 0;
stop();
_root.health = 100;
stop();
_root.char.gotoAndStop(1);
_root.numberofenemieskilled = 0;
_root.numberofcrates = 0;
_root.numberofshotstaken = 0;
_root.numberofshotsontarget = 0;
Instance of Symbol 711 MovieClip in Frame 14
onClipEvent (load) {
oldx = this._x;
oldy = this._y;
}
onClipEvent (enterFrame) {
this._x = (_root.boxCam2._x / 2) + oldx;
this._y = (_root.boxCam2._y / 5) + oldy;
}
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 47 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 723 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
removeMovieClip(_root.char);
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.gotoAndStop("endlevelthree");
a++;
}
}
}
Instance of Symbol 225 MovieClip "crate1" in Frame 14
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 605 MovieClip "shaketimer" in Frame 14
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 212 MovieClip "leftarm" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(103);
this._rotation = _root.rightarm._rotation;
}
Instance of Symbol 270 MovieClip "char" in Frame 14
onClipEvent (load) {
this.swapDepths(104);
health = 100;
grav = 0;
Height = 20;
}
onClipEvent (mouseDown) {
_root.powering = true;
}
onClipEvent (mouseUp) {
_root.powering = false;
}
onClipEvent (enterFrame) {
if (health > 100) {
health = 100;
}
if (health <= 0) {
health = 0;
}
if (grav > Height) {
grav = Height;
}
grav = grav + 1;
_y = (_y + grav);
i = 1;
while (i < 8) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y - 1);
jumping = false;
grav = 0;
}
while (_root["crate" + i].hitTest(this.base) && (_root["crate" + i]._currentframe == 1)) {
_y = (_y-1);
jumping = false;
grav = 0;
}
i++;
}
if (_root.powering && (_root.rightarm._currentframe == 8)) {
_root.power = _root.power + 3;
}
if (Key.isDown(87) && (jumping == false)) {
jumping = true;
_root.shooting = false;
grav = -Height;
}
}
onClipEvent (load) {
speed = 0;
acceleration = 3.25;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (health > 0) {
if (e > 2) {
e = 2;
}
if (_root.power > 30) {
_root.power = 30;
}
if (direction) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (speed > 10) {
speed = 10;
}
if (Key.isDown(65)) {
direction = false;
_root.shooting = false;
this.gotoAndStop(3);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68)) {
direction = true;
_root.shooting = false;
this.gotoAndStop(2);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68) | Key.isDown(65)) {
} else {
this.gotoAndStop(1);
}
if (Key.isDown(68) && (Key.isDown(65))) {
this.gotoAndStop(1);
speed = 0;
}
if ((Key.isDown(83) && (jumping == false)) && (right)) {
this.gotoAndStop(6);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
if ((Key.isDown(83) && (jumping == false)) && (right == false)) {
this.gotoAndStop(7);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
}
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((_root._xmouse > this._x) && (this._currentframe == 1)) {
this._xscale = scale;
}
if ((_root._xmouse < this._x) && (this._currentframe == 1)) {
this._xscale = -scale;
} else {
this._xscale = scale;
}
if (_root._xmouse > this._x) {
_root.rightarm._yscale = scale;
_root.leftarm._yscale = scale;
right = true;
}
if (_root._xmouse < this._x) {
_root.rightarm._yscale = -scale;
_root.leftarm._yscale = -scale;
right = false;
}
if (jumping && (right)) {
this.gotoAndPlay(4);
}
if (jumping && (right == false)) {
this.gotoAndPlay(5);
}
i = 0;
while (i < 9) {
if (_root["ground" + i].hitTest(this.leftt)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["ground" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["ground" + i].hitTest(this.rightt)) {
this._x = this._x - 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x - 5;
speed = 0;
}
i++;
}
}
if (health <= 0) {
health = 0;
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
this.gotoAndStop(8);
_root.ending.gotoAndPlay(2);
_root.char.removeMovieClip();
a++;
}
}
}
Instance of Symbol 360 MovieClip "rightarm" in Frame 14
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
k++;
if ((Key.isDown(69) && (k > 5)) && (_currentframe != 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.nextFrame();
_root.leftarm.nextFrame();
_root.boxCam.bulletcounter.nextFrame();
_root.boxCam.weapons.nextFrame();
}
if ((Key.isDown(69) && (k > 5)) && (_currentframe == 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.gotoAndStop(1);
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe != 1)) {
k = 0;
this.prevFrame();
_root.leftarm.prevFrame();
_root.boxCam.bulletcounter.prevFrame();
_root.boxCam.weapons.prevFrame();
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe == 1)) {
k = 0;
this.gotoAndStop(9);
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
}
if (Key.isDown(49)) {
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.leftarm.gotoAndStop(2);
_root.boxCam.bulletcounter.gotoAndStop(2);
_root.boxCam.weapons.gotoAndStop(2);
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.leftarm.gotoAndStop(3);
_root.boxCam.bulletcounter.gotoAndStop(3);
_root.boxCam.weapons.gotoAndStop(3);
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
_root.leftarm.gotoAndStop(4);
_root.boxCam.bulletcounter.gotoAndStop(4);
_root.boxCam.weapons.gotoAndStop(4);
this.gotoAndStop(4);
}
if (Key.isDown(53)) {
_root.leftarm.gotoAndStop(5);
_root.boxCam.bulletcounter.gotoAndStop(5);
_root.boxCam.weapons.gotoAndStop(5);
this.gotoAndStop(5);
}
if (Key.isDown(54)) {
_root.leftarm.gotoAndStop(6);
_root.boxCam.bulletcounter.gotoAndStop(6);
_root.boxCam.weapons.gotoAndStop(6);
this.gotoAndStop(6);
}
if (Key.isDown(55)) {
_root.leftarm.gotoAndStop(7);
_root.boxCam.bulletcounter.gotoAndStop(7);
_root.boxCam.weapons.gotoAndStop(7);
this.gotoAndStop(7);
}
if (Key.isDown(56)) {
_root.leftarm.gotoAndStop(8);
_root.boxCam.bulletcounter.gotoAndStop(8);
_root.boxCam.weapons.gotoAndStop(8);
this.gotoAndStop(8);
}
if (Key.isDown(57)) {
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
this.gotoAndStop(9);
}
if (Key.isDown(58)) {
_root.leftarm.gotoAndStop(10);
_root.boxCam.bulletcounter.gotoAndStop(10);
_root.boxCam.weapons.gotoAndStop(10);
this.gotoAndStop(10);
}
this.swapDepths(105);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
Instance of Symbol 362 MovieClip "boxCam2" in Frame 14
onClipEvent (enterFrame) {
if (_root.shaking == true) {
_root.chx = random(15) - 8;
_root.chy = random(15) - 8;
}
}
Instance of Symbol 479 MovieClip "boxCam" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(5000);
this.cacheAsBitmap();
}
Instance of Symbol 205 MovieClip "enemyleftarm6" in Frame 14
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm6._rotation;
}
Instance of Symbol 527 MovieClip "enemy6" in Frame 14
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm6._yscale = scale;
_root.enemyleftarm6._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm6._yscale = -scale;
_root.enemyleftarm6._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm6" in Frame 14
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 20) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 900)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletssix.duplicateMovieClip("enemybulletssix" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletssix" + _root.enemybulletCounter]._x = _root.enemyrightarm6._x;
_root["enemybulletssix" + _root.enemybulletCounter]._y = _root.enemyrightarm6._y;
_root["enemybulletssix" + _root.enemybulletCounter]._rotation = _root.enemyrightarm6._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy6health" in Frame 14
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy6.health;
}
Instance of Symbol 674 MovieClip "enemybulletssix" in Frame 14
onClipEvent (enterFrame) {
if (_name == "enemybulletssix") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 15;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 30;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "bullets" in Frame 14
onClipEvent (enterFrame) {
if (_name == "bullets") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 45;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (_root["enemy" + i].hit.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root["enemyrightarm" + i].head.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 34;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 403 MovieClip "sb" in Frame 14
onClipEvent (enterFrame) {
if (_name == "sb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 42;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 9;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 70;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 110;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 90;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mb" in Frame 14
onClipEvent (enterFrame) {
if (_name == "mb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 40;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 30;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "s3" in Frame 14
onClipEvent (enterFrame) {
if (_name == "s3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "s2" in Frame 14
onClipEvent (enterFrame) {
if (_name == "s2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "s1" in Frame 14
onClipEvent (enterFrame) {
if (_name == "s1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "m3" in Frame 14
onClipEvent (enterFrame) {
if (_name == "m3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "m2" in Frame 14
onClipEvent (enterFrame) {
if (_name == "m2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "m1" in Frame 14
onClipEvent (enterFrame) {
if (_name == "m1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 37;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mg" in Frame 14
onClipEvent (enterFrame) {
if (_name == "mg") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 19;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 38;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 30;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "uz" in Frame 14
onClipEvent (enterFrame) {
if (_name == "uz") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 28;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 27;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 446 MovieClip "grenade" in Frame 14
onClipEvent (enterFrame) {
if (gravity) {
grav++;
}
_y = (_y + grav);
if (_name == "grenade") {
_x = -4000;
}
}
onClipEvent (load) {
gravity = true;
grav = 0;
speed = _root.power;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.hitTest(_root["crate" + i]) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.a.box.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root["enemy" + i].gotoAndStop(4);
}
if ((this.a.box.hitTest(_root.char) && (_root.char.health > 0)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root.char.health = _root.char.health - 5;
}
if (this.a.box.hitTest(_root["crate" + i]) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root["crate" + i].health = _root["crate" + i].health - 200;
}
if ((this.a.box.hitTest(_root.enemys) && (_root.enemys._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root.enemys.gotoAndStop(3);
}
i++;
}
}
Instance of Symbol 685 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.enemy6._currentframe == 3) | (_root.enemy6._currentframe == 4)) {
_x = _root.enemy6._x;
_y = _root.enemy6._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm7" in Frame 14
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm7._rotation;
}
Instance of Symbol 527 MovieClip "enemy7" in Frame 14
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm7._yscale = scale;
_root.enemyleftarm7._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm7._yscale = -scale;
_root.enemyleftarm7._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm7.gotoAndStop(5);
_root.enemyleftarm7.gotoAndStop(5);
_root.enemy7health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm7" in Frame 14
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 20) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 900)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletsseven.duplicateMovieClip("enemybulletsseven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletsseven" + _root.enemybulletCounter]._x = _root.enemyrightarm7._x;
_root["enemybulletsseven" + _root.enemybulletCounter]._y = _root.enemyrightarm7._y;
_root["enemybulletsseven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm7._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy7health" in Frame 14
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy7.health;
}
Instance of Symbol 674 MovieClip "enemybulletsseven" in Frame 14
onClipEvent (enterFrame) {
if (_name == "enemybulletsseven") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm7._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 15;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 30;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 685 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.enemy7._currentframe == 3) | (_root.enemy7._currentframe == 4)) {
_x = _root.enemy7._x;
_y = _root.enemy7._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm8" in Frame 14
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm8._rotation;
}
Instance of Symbol 527 MovieClip "enemy8" in Frame 14
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm8._yscale = scale;
_root.enemyleftarm8._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm8._yscale = -scale;
_root.enemyleftarm8._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm8.gotoAndStop(6);
} else {
_root.enemyrightarm8.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm8" in Frame 14
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 560)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulleteeight.duplicateMovieClip("enemybulleteeight" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulleteeight" + _root.enemybulletCounter]._x = _root.enemyrightarm8._x;
_root["enemybulleteeight" + _root.enemybulletCounter]._y = _root.enemyrightarm8._y;
_root["enemybulleteeight" + _root.enemybulletCounter]._rotation = _root.enemyrightarm8._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy8health" in Frame 14
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy8.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm4" in Frame 14
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm4._rotation;
}
Instance of Symbol 527 MovieClip "enemy4" in Frame 14
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 400;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm4._yscale = scale;
_root.enemyleftarm4._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm4._yscale = -scale;
_root.enemyleftarm4._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 12) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm4.gotoAndStop(6);
} else {
_root.enemyrightarm4.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm4" in Frame 14
onClipEvent (load) {
this.gotoAndStop(3);
_root.euzi = new Sound();
_root.euzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfour.duplicateMovieClip("enemybulletfour" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfour" + _root.enemybulletCounter]._x = _root.enemyrightarm4._x;
_root["enemybulletfour" + _root.enemybulletCounter]._y = _root.enemyrightarm4._y;
_root["enemybulletfour" + _root.enemybulletCounter]._rotation = _root.enemyrightarm4._rotation;
_root.euzi.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy4health" in Frame 14
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy4.health;
}
Instance of Symbol 599 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 599 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 683 MovieClip "enemybulleteeight" in Frame 14
onClipEvent (enterFrame) {
if (_name == "enemybulleteeight") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletfour" in Frame 14
onClipEvent (enterFrame) {
if (_name == "enemybulletfour") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 680 MovieClip in Frame 14
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy4._currentframe == 3) | (_root.enemy4._currentframe == 4)) {
_x = _root.enemy4._x;
_y = _root.enemy4._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 676 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.enemy8._currentframe == 3) | (_root.enemy8._currentframe == 4)) {
_x = _root.enemy8._x;
_y = _root.enemy8._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm2" in Frame 14
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm2._rotation;
}
Instance of Symbol 527 MovieClip "enemy2" in Frame 14
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm2._yscale = scale;
_root.enemyleftarm2._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm2._yscale = -scale;
_root.enemyleftarm2._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm2.gotoAndStop(6);
} else {
_root.enemyrightarm2.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm2" in Frame 14
onClipEvent (load) {
this.gotoAndStop(3);
_root.e2uzi = new Sound();
_root.e2uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybullettwo.duplicateMovieClip("enemybullettwo" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullettwo" + _root.enemybulletCounter]._x = _root.enemyrightarm2._x;
_root["enemybullettwo" + _root.enemybulletCounter]._y = _root.enemyrightarm2._y;
_root["enemybullettwo" + _root.enemybulletCounter]._rotation = _root.enemyrightarm2._rotation;
_root.e2uzi.start();
}
_root.e2uzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy2health" in Frame 14
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy2.health;
}
Instance of Symbol 402 MovieClip "enemybullettwo" in Frame 14
onClipEvent (enterFrame) {
if (_name == "enemybullettwo") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 8) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 680 MovieClip in Frame 14
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy2._currentframe == 3) | (_root.enemy2._currentframe == 4)) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 608 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 269 MovieClip "dyingmc" in Frame 14
onClipEvent (enterFrame) {
if (_root.char.health <= 0) {
this._x = _root.char._x - 10;
this._y = _root.char._y - 80;
}
}
Instance of Symbol 199 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.char.health = 0;
}
}
Frame 15
_root.shutter.gotoAndPlay(2);
_root.boxCam.removeMovieClip();
_root.boxCam2.onEnterFrame = function () {
var _local3 = Stage.width / this._width;
var _local2 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local3));
_y = ((Stage.height / 2) - (this._y * _local2));
_xscale = (100 * _local3);
_yscale = (100 * _local2);
};
stop();
stopAllSounds();
_root.removeMovieClip(_root.char);
if (_root.her > 0) {
_root.levelfourunlocked = true;
}
Instance of Symbol 627 MovieClip in Frame 15
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip in Frame 15
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 639 MovieClip in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 16
_root.shutter.gotoAndPlay(2);
stop();
stopAllSounds();
Instance of Symbol 47 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 741 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 17
_root.sniping = false;
_root.shutter.gotoAndPlay(2);
_root.chx = 0;
_root.chy = 0;
_root.chx = 0;
_root.chy = 0;
onEnterFrame = function () {
_root.health = 100 - _root.boxCam.health;
_root.accuracy = int((_root.numberofshotsontarget / _root.numberofshotstaken) * 100);
_root.boxCam.health = _root.char.health;
if (_root.bulletCounter > 369) {
_root.bulletCounter = 350;
}
if (_root.enemybulletCounter > 39) {
_root.enemybulletCounter = 20;
}
if (_root.bulletCounter > 589) {
_root.bulletCounter = 560;
}
_root.boxCam.bulletcounter.pistol = _root.pistolBullets;
_root.boxCam.bulletcounter.uzi = _root.uziBullets;
_root.boxCam.bulletcounter.shotgun = _root.shotgunBullets;
_root.boxCam.bulletcounter.machinegun = _root.machinegunBullets;
_root.boxCam.bulletcounter.sniper = _root.sniperBullets;
_root.boxCam.bulletcounter.auto = _root.autoBullets;
_root.boxCam.bulletcounter.minigun = _root.miniBullets;
_root.boxCam.bulletcounter.grenade = _root.grenadeBullets;
_root.rightarm._x = _root.char._x;
_root.rightarm._y = _root.char._y - 4;
_root.leftarm._x = _root.char._x;
_root.leftarm._y = _root.char._y - 4;
_root.boxCam._x = _root.boxCam2._x - 350;
_root.boxCam._y = _root.boxCam2._y - 250;
_root.enemy1health._x = _root.enemy1._x - 20;
_root.enemy6health._x = _root.enemy6._x - 20;
_root.enemy1health._y = _root.enemy1._y - 110;
_root.enemy6health._y = _root.enemy6._y - 110;
_root.enemy2health._x = _root.enemy2._x - 20;
_root.enemy7health._x = _root.enemy7._x - 20;
_root.enemy2health._y = _root.enemy2._y - 110;
_root.enemy7health._y = _root.enemy7._y - 110;
_root.enemy3health._x = _root.enemy3._x - 20;
_root.enemy8health._x = _root.enemy8._x - 20;
_root.enemy3health._y = _root.enemy3._y - 110;
_root.enemy8health._y = _root.enemy8._y - 110;
_root.enemy4health._x = _root.enemy4._x - 20;
_root.enemy9health._x = _root.enemy9._x - 20;
_root.enemy4health._y = _root.enemy4._y - 110;
_root.enemy9health._y = _root.enemy9._y - 110;
_root.enemy5health._x = _root.enemy5._x - 20;
_root.enemy10health._x = _root.enemy10._x - 20;
_root.enemy5health._y = _root.enemy5._y - 110;
_root.enemy10health._y = _root.enemy10._y - 110;
_root.enemy11health._x = _root.enemy11._x - 20;
_root.enemy11health._y = _root.enemy11._y - 110;
t = 0;
while (t < 12) {
_root["enemyrightarm" + t]._x = _root["enemy" + t]._x;
_root["enemyrightarm" + t]._y = _root["enemy" + t]._y - 73;
_root["enemyleftarm" + t]._x = _root["enemy" + t]._x;
_root["enemyleftarm" + t]._y = _root["enemy" + t]._y - 73;
t++;
}
};
_root.boxCam2.onEnterFrame = function () {
_root.zoomx = 100;
_root.zoomy = 100;
_root.boxCam2._x = (_root.chx + _root.char._x) + ((_root._xmouse - _root.boxCam2._x) / mousy);
_root.boxCam2._y = ((_root.chy + _root.char._y) - 100) + ((_root._ymouse - _root.boxCam2._y) / mousy);
_root.zoomx = 0.5;
_root.zoomy = 0.5;
setProperty(_root.boxCam2, _width , 700);
setProperty(_root.boxCam2, _height , 490);
if (_root.sniping == false) {
mousy = 5;
} else {
mousy = 2;
}
var _local4 = Stage.width / this._width;
var _local3 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local4));
_y = ((Stage.height / 2) - (this._y * _local3));
_xscale = (100 * _local4);
_yscale = (100 * _local3);
};
_root.zoomx = 200;
_root.zoomy = 200;
_root.power = 0;
stop();
_root.health = 100;
stop();
_root.char.gotoAndStop(1);
_root.numberofenemieskilled = 0;
_root.numberofcrates = 0;
_root.numberofshotstaken = 0;
_root.numberofshotsontarget = 0;
Instance of Symbol 225 MovieClip "crate2" in Frame 17
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 605 MovieClip "shaketimer" in Frame 17
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 225 MovieClip "crate1" in Frame 17
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 212 MovieClip "leftarm" in Frame 17
onClipEvent (enterFrame) {
this.swapDepths(103);
this._rotation = _root.rightarm._rotation;
}
Instance of Symbol 270 MovieClip "char" in Frame 17
onClipEvent (load) {
this.swapDepths(104);
health = 100;
grav = 0;
Height = 20;
}
onClipEvent (mouseDown) {
_root.powering = true;
}
onClipEvent (mouseUp) {
_root.powering = false;
}
onClipEvent (enterFrame) {
if (health > 100) {
health = 100;
}
if (health <= 0) {
health = 0;
}
if (grav > Height) {
grav = Height;
}
grav = grav + 1;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y - 1);
jumping = false;
grav = 0;
}
while (_root["crate" + i].hitTest(this.base) && (_root["crate" + i]._currentframe == 1)) {
_y = (_y-1);
jumping = false;
grav = 0;
}
i++;
}
if (_root.powering && (_root.rightarm._currentframe == 8)) {
_root.power = _root.power + 3;
}
if (Key.isDown(87) && (jumping == false)) {
jumping = true;
_root.shooting = false;
grav = -Height;
}
}
onClipEvent (load) {
speed = 0;
acceleration = 3.25;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (health > 0) {
if (e > 2) {
e = 2;
}
if (_root.power > 30) {
_root.power = 30;
}
if (direction) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (speed > 10) {
speed = 10;
}
if (Key.isDown(65)) {
direction = false;
_root.shooting = false;
this.gotoAndStop(3);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68)) {
direction = true;
_root.shooting = false;
this.gotoAndStop(2);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68) | Key.isDown(65)) {
} else {
this.gotoAndStop(1);
}
if (Key.isDown(68) && (Key.isDown(65))) {
this.gotoAndStop(1);
speed = 0;
}
if ((Key.isDown(83) && (jumping == false)) && (right)) {
this.gotoAndStop(6);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
if ((Key.isDown(83) && (jumping == false)) && (right == false)) {
this.gotoAndStop(7);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
}
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((_root._xmouse > this._x) && (this._currentframe == 1)) {
this._xscale = scale;
}
if ((_root._xmouse < this._x) && (this._currentframe == 1)) {
this._xscale = -scale;
} else {
this._xscale = scale;
}
if (_root._xmouse > this._x) {
_root.rightarm._yscale = scale;
_root.leftarm._yscale = scale;
right = true;
}
if (_root._xmouse < this._x) {
_root.rightarm._yscale = -scale;
_root.leftarm._yscale = -scale;
right = false;
}
if (jumping && (right)) {
this.gotoAndPlay(4);
}
if (jumping && (right == false)) {
this.gotoAndPlay(5);
}
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this.leftt)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["ground" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["ground" + i].hitTest(this.rightt)) {
this._x = this._x - 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x - 5;
speed = 0;
}
i++;
}
}
if (health <= 0) {
health = 0;
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
this.gotoAndStop(8);
_root.ending.gotoAndPlay(2);
_root.char.removeMovieClip();
a++;
}
}
}
Instance of Symbol 360 MovieClip "rightarm" in Frame 17
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
k++;
if ((Key.isDown(69) && (k > 5)) && (_currentframe != 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.nextFrame();
_root.leftarm.nextFrame();
_root.boxCam.bulletcounter.nextFrame();
_root.boxCam.weapons.nextFrame();
}
if ((Key.isDown(69) && (k > 5)) && (_currentframe == 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.gotoAndStop(1);
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe != 1)) {
k = 0;
this.prevFrame();
_root.leftarm.prevFrame();
_root.boxCam.bulletcounter.prevFrame();
_root.boxCam.weapons.prevFrame();
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe == 1)) {
k = 0;
this.gotoAndStop(9);
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
}
if (Key.isDown(49)) {
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.leftarm.gotoAndStop(2);
_root.boxCam.bulletcounter.gotoAndStop(2);
_root.boxCam.weapons.gotoAndStop(2);
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.leftarm.gotoAndStop(3);
_root.boxCam.bulletcounter.gotoAndStop(3);
_root.boxCam.weapons.gotoAndStop(3);
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
_root.leftarm.gotoAndStop(4);
_root.boxCam.bulletcounter.gotoAndStop(4);
_root.boxCam.weapons.gotoAndStop(4);
this.gotoAndStop(4);
}
if (Key.isDown(53)) {
_root.leftarm.gotoAndStop(5);
_root.boxCam.bulletcounter.gotoAndStop(5);
_root.boxCam.weapons.gotoAndStop(5);
this.gotoAndStop(5);
}
if (Key.isDown(54)) {
_root.leftarm.gotoAndStop(6);
_root.boxCam.bulletcounter.gotoAndStop(6);
_root.boxCam.weapons.gotoAndStop(6);
this.gotoAndStop(6);
}
if (Key.isDown(55)) {
_root.leftarm.gotoAndStop(7);
_root.boxCam.bulletcounter.gotoAndStop(7);
_root.boxCam.weapons.gotoAndStop(7);
this.gotoAndStop(7);
}
if (Key.isDown(56)) {
_root.leftarm.gotoAndStop(8);
_root.boxCam.bulletcounter.gotoAndStop(8);
_root.boxCam.weapons.gotoAndStop(8);
this.gotoAndStop(8);
}
if (Key.isDown(57)) {
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
this.gotoAndStop(9);
}
if (Key.isDown(58)) {
_root.leftarm.gotoAndStop(10);
_root.boxCam.bulletcounter.gotoAndStop(10);
_root.boxCam.weapons.gotoAndStop(10);
this.gotoAndStop(10);
}
this.swapDepths(105);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
Instance of Symbol 362 MovieClip "boxCam2" in Frame 17
onClipEvent (enterFrame) {
if (_root.shaking == true) {
_root.chx = random(15) - 8;
_root.chy = random(15) - 8;
}
}
Instance of Symbol 772 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (Key.isDown(32))) {
_root.bombtext.gotoAndStop(2);
}
}
Instance of Symbol 778 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (_root.bombtext._currentframe == 2)) {
removeMovieClip(_root.char);
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.gotoAndStop("endlevelfour");
a++;
}
}
}
Instance of Symbol 608 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 402 MovieClip "bullets" in Frame 17
onClipEvent (enterFrame) {
if (_name == "bullets") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 45;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (_root["enemy" + i].hit.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root["enemyrightarm" + i].head.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 34;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 403 MovieClip "sb" in Frame 17
onClipEvent (enterFrame) {
if (_name == "sb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 42;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 9;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 70;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 110;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 90;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mb" in Frame 17
onClipEvent (enterFrame) {
if (_name == "mb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 40;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 30;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "s3" in Frame 17
onClipEvent (enterFrame) {
if (_name == "s3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "s2" in Frame 17
onClipEvent (enterFrame) {
if (_name == "s2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "s1" in Frame 17
onClipEvent (enterFrame) {
if (_name == "s1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "m3" in Frame 17
onClipEvent (enterFrame) {
if (_name == "m3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "m2" in Frame 17
onClipEvent (enterFrame) {
if (_name == "m2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "m1" in Frame 17
onClipEvent (enterFrame) {
if (_name == "m1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 37;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mg" in Frame 17
onClipEvent (enterFrame) {
if (_name == "mg") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 19;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 38;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 30;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "uz" in Frame 17
onClipEvent (enterFrame) {
if (_name == "uz") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 28;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 27;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 446 MovieClip "grenade" in Frame 17
onClipEvent (enterFrame) {
if (gravity) {
grav++;
}
_y = (_y + grav);
if (_name == "grenade") {
_x = -4000;
}
}
onClipEvent (load) {
gravity = true;
grav = 0;
speed = _root.power;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.hitTest(_root["crate" + i]) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.a.box.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root["enemy" + i].gotoAndStop(4);
}
if ((this.a.box.hitTest(_root.char) && (_root.char.health > 0)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root.char.health = _root.char.health - 5;
}
if (this.a.box.hitTest(_root["crate" + i]) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root["crate" + i].health = _root["crate" + i].health - 200;
}
if ((this.a.box.hitTest(_root.enemys) && (_root.enemys._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root.enemys.gotoAndStop(3);
}
i++;
}
}
Instance of Symbol 780 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm8" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm8._rotation;
}
Instance of Symbol 527 MovieClip "enemy8" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm8._yscale = scale;
_root.enemyleftarm8._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm8._yscale = -scale;
_root.enemyleftarm8._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm8.gotoAndStop(6);
} else {
_root.enemyrightarm8.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm8" in Frame 17
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 400)) {
if ((_root.char._y - this._y) < 50) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulleteeight.duplicateMovieClip("enemybulleteeight" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulleteeight" + _root.enemybulletCounter]._x = _root.enemyrightarm8._x;
_root["enemybulleteeight" + _root.enemybulletCounter]._y = _root.enemyrightarm8._y;
_root["enemybulleteeight" + _root.enemybulletCounter]._rotation = _root.enemyrightarm8._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
}
Instance of Symbol 583 MovieClip "enemy8health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy8.health;
}
Instance of Symbol 683 MovieClip "enemybulleteeight" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulleteeight") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletfour" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletfour") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm2" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm2._rotation;
}
Instance of Symbol 527 MovieClip "enemy2" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm2._yscale = scale;
_root.enemyleftarm2._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm2._yscale = -scale;
_root.enemyleftarm2._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm2.gotoAndStop(6);
} else {
_root.enemyrightarm2.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm2" in Frame 17
onClipEvent (load) {
this.gotoAndStop(3);
_root.e2uzi = new Sound();
_root.e2uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 430)) {
this.g.play();
if ((_root.char._y - this._y) > -20) {
_root.enemybulletCounter++;
_root.enemybullettwo.duplicateMovieClip("enemybullettwo" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullettwo" + _root.enemybulletCounter]._x = _root.enemyrightarm2._x;
_root["enemybullettwo" + _root.enemybulletCounter]._y = _root.enemyrightarm2._y;
_root["enemybullettwo" + _root.enemybulletCounter]._rotation = _root.enemyrightarm2._rotation;
_root.e2uzi.start();
}
}
_root.e2uzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy2health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy2.health;
}
Instance of Symbol 402 MovieClip "enemybullettwo" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybullettwo") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 28) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm5" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm5._rotation;
}
Instance of Symbol 527 MovieClip "enemy5" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm5._yscale = scale;
_root.enemyleftarm5._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm5._yscale = -scale;
_root.enemyleftarm5._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm5.gotoAndStop(6);
} else {
_root.enemyrightarm5.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm5.gotoAndStop(5);
_root.enemyleftarm5.gotoAndStop(5);
_root.enemy5health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm5.gotoAndStop(5);
_root.enemyleftarm5.gotoAndStop(5);
_root.enemy5health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm5" in Frame 17
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 400)) {
if ((_root.char._y - this._y) < 50) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfive.duplicateMovieClip("enemybulletfive" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfive" + _root.enemybulletCounter]._x = _root.enemyrightarm5._x;
_root["enemybulletfive" + _root.enemybulletCounter]._y = _root.enemyrightarm5._y;
_root["enemybulletfive" + _root.enemybulletCounter]._rotation = _root.enemyrightarm5._rotation;
}
}
}
Instance of Symbol 583 MovieClip "enemy5health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy5.health;
}
Instance of Symbol 402 MovieClip "enemybulletfive" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletfive") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletnine" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletnine") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm3" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm3._rotation;
}
Instance of Symbol 527 MovieClip "enemy3" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm3._yscale = scale;
_root.enemyleftarm3._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm3._yscale = -scale;
_root.enemyleftarm3._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if ((((_root.disted == false) && (this._currentframe != 4)) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm3.gotoAndStop(6);
} else {
_root.enemyrightarm3.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm3" in Frame 17
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 500)) {
this.g.play();
if ((_root.char._y - this._y) < 50) {
_root.enemybulletCounter++;
_root.enemybulletthree.duplicateMovieClip("enemybulletthree" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletthree" + _root.enemybulletCounter]._x = _root.enemyrightarm3._x;
_root["enemybulletthree" + _root.enemybulletCounter]._y = _root.enemyrightarm3._y;
_root["enemybulletthree" + _root.enemybulletCounter]._rotation = _root.enemyrightarm3._rotation;
}
}
}
Instance of Symbol 583 MovieClip "enemy3health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy3.health;
}
Instance of Symbol 402 MovieClip "enemybulletthree" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletthree") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 28) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 583 MovieClip "enemy10health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy10.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm10" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm10._rotation;
}
Instance of Symbol 527 MovieClip "enemy10" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm10._yscale = scale;
_root.enemyleftarm10._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm10._yscale = -scale;
_root.enemyleftarm10._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm10.gotoAndStop(6);
} else {
_root.enemyrightarm10.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm10" in Frame 17
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 400)) {
this.g.play();
if ((_root.char._y - this._y) > -20) {
_root.enemybulletCounter++;
_root.enemybulletten.duplicateMovieClip("enemybulletten" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletten" + _root.enemybulletCounter]._x = _root.enemyrightarm10._x;
_root["enemybulletten" + _root.enemybulletCounter]._y = _root.enemyrightarm10._y;
_root["enemybulletten" + _root.enemybulletCounter]._rotation = _root.enemyrightarm10._rotation;
}
}
}
Instance of Symbol 402 MovieClip "enemybulletten" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletten") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm1" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm1._rotation;
}
Instance of Symbol 527 MovieClip "enemy1" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if ((rx < this._x) && (health > 0)) {
_xscale = (-scale);
}
if ((rx > this._x) && (health > 0)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = scale;
_root.enemyleftarm1._yscale = scale;
} else if (((_xscale == (-scale)) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = -scale;
_root.enemyleftarm1._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 90))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 15))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm1.gotoAndStop(6);
} else {
_root.enemyrightarm1.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm1" in Frame 17
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 400)) {
this.g.play();
if ((_root.char._y - this._y) > -20) {
_root.enemybulletCounter++;
_root.enemybullet.duplicateMovieClip("enemybullet" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullet" + _root.enemybulletCounter]._x = _root.enemyrightarm1._x;
_root["enemybullet" + _root.enemybulletCounter]._y = _root.enemyrightarm1._y;
_root["enemybullet" + _root.enemybulletCounter]._rotation = _root.enemyrightarm1._rotation;
}
}
}
Instance of Symbol 583 MovieClip "enemy1health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy1.health;
}
Instance of Symbol 402 MovieClip "enemybullet" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybullet") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 676 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy8._currentframe == 3) | (_root.enemy8._currentframe == 4)) {
_x = _root.enemy8._x;
_y = _root.enemy8._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 680 MovieClip in Frame 17
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy4._currentframe == 3) | (_root.enemy4._currentframe == 4)) {
_x = _root.enemy4._x;
_y = _root.enemy4._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy5._currentframe == 3) | (_root.enemy5._currentframe == 4)) {
_x = _root.enemy5._x;
_y = _root.enemy5._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy9._currentframe == 3) | (_root.enemy9._currentframe == 4)) {
_x = _root.enemy9._x;
_y = _root.enemy9._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy3._currentframe == 3) | (_root.enemy3._currentframe == 4)) {
_x = _root.enemy3._x;
_y = _root.enemy3._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy10._currentframe == 3) | (_root.enemy10._currentframe == 4)) {
_x = _root.enemy10._x;
_y = _root.enemy10._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy1._currentframe == 3) | (_root.enemy1._currentframe == 4)) {
_x = _root.enemy1._x;
_y = _root.enemy1._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 680 MovieClip in Frame 17
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy2._currentframe == 3) | (_root.enemy2._currentframe == 4)) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 479 MovieClip "boxCam" in Frame 17
onClipEvent (enterFrame) {
this.swapDepths(5000);
this.cacheAsBitmap();
}
Instance of Symbol 47 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm6" in Frame 17
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm6._rotation;
}
Instance of Symbol 527 MovieClip "enemy6" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm6._yscale = scale;
_root.enemyleftarm6._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm6._yscale = -scale;
_root.enemyleftarm6._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm6" in Frame 17
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
if ((_root.char._y - this._y) < 50) {
if ((_root.char._y - this._y) > -20) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletsix.duplicateMovieClip("enemybulletsix" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletsix" + _root.enemybulletCounter]._x = _root.enemyrightarm6._x;
_root["enemybulletsix" + _root.enemybulletCounter]._y = _root.enemyrightarm6._y;
_root["enemybulletsix" + _root.enemybulletCounter]._rotation = _root.enemyrightarm6._rotation;
}
}
}
}
Instance of Symbol 583 MovieClip "enemy6health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy6.health;
}
Instance of Symbol 402 MovieClip "enemybulletsix" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletsix") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 595 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy6._currentframe == 3) | (_root.enemy6._currentframe == 4)) {
_x = _root.enemy6._x;
_y = _root.enemy6._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 205 MovieClip "enemyleftarm11" in Frame 17
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm11._rotation;
}
Instance of Symbol 527 MovieClip "enemy11" in Frame 17
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm11._yscale = scale;
_root.enemyleftarm11._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm11._yscale = -scale;
_root.enemyleftarm11._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 28) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm11.gotoAndStop(6);
} else {
_root.enemyrightarm11.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm11.gotoAndStop(5);
_root.enemyleftarm11.gotoAndStop(5);
_root.enemy11health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm11" in Frame 17
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = _root.char._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 570)) {
if ((_root.char._y - this._y) < 50) {
this.g.play();
_root.enemybulletCounter = _root.enemybulletCounter + 3;
_root.enemybulletseleven.duplicateMovieClip("enemybulletseleven" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletsseleven.duplicateMovieClip(("enemybulletsseleven" + _root.enemybulletCounte) + 1, _root.enemybulletCounter + 1);
_root["enemybulletsseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
_root.enemybulletssseleven.duplicateMovieClip(("enemybulletssseleven" + _root.enemybulletCounter) + 2, _root.enemybulletCounter + 2);
_root["enemybulletssseleven" + _root.enemybulletCounter]._rotation = _root.enemyrightarm11._rotation;
}
}
}
Instance of Symbol 583 MovieClip "enemy11health" in Frame 17
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy11.health;
}
Instance of Symbol 588 MovieClip "enemybulletseleven" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletseleven") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletsseleven" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletsseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletssseleven" in Frame 17
onClipEvent (enterFrame) {
if (_name == "enemybulletssseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 597 MovieClip in Frame 17
onClipEvent (enterFrame) {
if ((_root.enemy11._currentframe == 3) | (_root.enemy11._currentframe == 4)) {
_x = _root.enemy11._x;
_y = _root.enemy11._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 269 MovieClip "dyingmc" in Frame 17
onClipEvent (enterFrame) {
if (_root.char.health <= 0) {
this._x = _root.char._x - 10;
this._y = _root.char._y - 80;
}
}
Instance of Symbol 199 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.char.health = 0;
}
}
Frame 18
_root.shutter.gotoAndPlay(2);
_root.boxCam.removeMovieClip();
_root.boxCam2.onEnterFrame = function () {
var _local3 = Stage.width / this._width;
var _local2 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local3));
_y = ((Stage.height / 2) - (this._y * _local2));
_xscale = (100 * _local3);
_yscale = (100 * _local2);
};
stop();
stopAllSounds();
_root.removeMovieClip(_root.char);
if (_root.her > 0) {
_root.levelfiveunlocked = true;
}
Instance of Symbol 627 MovieClip in Frame 18
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip in Frame 18
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 639 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 19
_root.shutter.gotoAndPlay(2);
stop();
stopAllSounds();
stop();
Instance of Symbol 47 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 799 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 19
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 20
_root.sniping = false;
_root.shutter.gotoAndPlay(2);
_root.chx = 0;
_root.chy = 0;
_root.chx = 0;
_root.chy = 0;
_root.bulletCounter = 350;
_root.enemybulletCounter = 20;
_root.grenadeCounter = 560;
onEnterFrame = function () {
_root.health = 100 - _root.boxCam.health;
_root.accuracy = int((_root.numberofshotsontarget / _root.numberofshotstaken) * 100);
_root.boxCam.health = _root.char.health;
if (_root.bulletCounter > 369) {
_root.bulletCounter = 350;
}
if (_root.enemybulletCounter > 39) {
_root.enemybulletCounter = 20;
}
if (_root.bulletCounter > 589) {
_root.bulletCounter = 560;
}
_root.boxCam.bulletcounter.pistol = _root.pistolBullets;
_root.boxCam.bulletcounter.uzi = _root.uziBullets;
_root.boxCam.bulletcounter.shotgun = _root.shotgunBullets;
_root.boxCam.bulletcounter.machinegun = _root.machinegunBullets;
_root.boxCam.bulletcounter.sniper = _root.sniperBullets;
_root.boxCam.bulletcounter.auto = _root.autoBullets;
_root.boxCam.bulletcounter.minigun = _root.miniBullets;
_root.boxCam.bulletcounter.grenade = _root.grenadeBullets;
_root.rightarm._x = _root.char._x;
_root.rightarm._y = _root.char._y - 4;
_root.leftarm._x = _root.char._x;
_root.leftarm._y = _root.char._y - 4;
_root.boxCam._x = _root.boxCam2._x - 350;
_root.boxCam._y = _root.boxCam2._y - 250;
_root.enemy1health._x = _root.enemy1._x - 20;
_root.enemy6health._x = _root.enemy6._x - 20;
_root.enemy1health._y = _root.enemy1._y - 110;
_root.enemy6health._y = _root.enemy6._y - 110;
_root.enemy2health._x = _root.enemy2._x - 20;
_root.enemy7health._x = _root.enemy7._x - 20;
_root.enemy2health._y = _root.enemy2._y - 110;
_root.enemy7health._y = _root.enemy7._y - 110;
_root.enemy3health._x = _root.enemy3._x - 20;
_root.enemy8health._x = _root.enemy8._x - 20;
_root.enemy3health._y = _root.enemy3._y - 110;
_root.enemy8health._y = _root.enemy8._y - 110;
_root.enemy4health._x = _root.enemy4._x - 20;
_root.enemy9health._x = _root.enemy9._x - 20;
_root.enemy4health._y = _root.enemy4._y - 110;
_root.enemy9health._y = _root.enemy9._y - 110;
_root.enemy5health._x = _root.enemy5._x - 20;
_root.enemy10health._x = _root.enemy10._x - 20;
_root.enemy5health._y = _root.enemy5._y - 110;
_root.enemy10health._y = _root.enemy10._y - 110;
_root.enemy11health._x = _root.enemy11._x - 20;
_root.enemy11health._y = _root.enemy11._y - 110;
t = 0;
while (t < 12) {
_root["enemyrightarm" + t]._x = _root["enemy" + t]._x;
_root["enemyrightarm" + t]._y = _root["enemy" + t]._y - 73;
_root["enemyleftarm" + t]._x = _root["enemy" + t]._x;
_root["enemyleftarm" + t]._y = _root["enemy" + t]._y - 73;
t++;
}
};
_root.boxCam2.onEnterFrame = function () {
_root.zoomx = 100;
_root.zoomy = 100;
_root.boxCam2._x = (_root.chx + _root.char._x) + ((_root._xmouse - _root.boxCam2._x) / mousy);
_root.boxCam2._y = ((_root.chy + _root.char._y) - 100) + ((_root._ymouse - _root.boxCam2._y) / mousy);
_root.zoomx = 0.5;
_root.zoomy = 0.5;
setProperty(_root.boxCam2, _width , 700);
setProperty(_root.boxCam2, _height , 490);
if (_root.sniping == false) {
mousy = 5;
} else {
mousy = 2;
}
var _local4 = Stage.width / this._width;
var _local3 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local4));
_y = ((Stage.height / 2) - (this._y * _local3));
_xscale = (100 * _local4);
_yscale = (100 * _local3);
};
_root.zoomx = 200;
_root.zoomy = 200;
_root.power = 0;
stop();
_root.char.gotoAndStop(1);
_root.numberofenemieskilled = 0;
_root.numberofcrates = 0;
_root.numberofshotstaken = 0;
_root.numberofshotsontarget = 0;
Instance of Symbol 805 MovieClip in Frame 20
onClipEvent (load) {
oldx = this._x;
oldy = this._y;
}
onClipEvent (enterFrame) {
this._x = (_root.boxCam2._x / 2) + oldx;
this._y = (_root.boxCam2._y / 5) + oldy;
}
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 269 MovieClip "dyingmc" in Frame 20
onClipEvent (enterFrame) {
if (_root.char.health <= 0) {
this._x = _root.char._x - 10;
this._y = _root.char._y - 80;
}
}
Instance of Symbol 199 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.char.health = 0;
}
}
Instance of Symbol 605 MovieClip "shaketimer" in Frame 20
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 214 MovieClip "ground" in Frame 20
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 225 MovieClip "crate1" in Frame 20
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 225 MovieClip "crate3" in Frame 20
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 599 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 225 MovieClip "crate5" in Frame 20
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 212 MovieClip "leftarm" in Frame 20
onClipEvent (enterFrame) {
this.swapDepths(103);
this._rotation = _root.rightarm._rotation;
}
Instance of Symbol 270 MovieClip "char" in Frame 20
onClipEvent (load) {
this.swapDepths(104);
health = 100;
grav = 0;
Height = 20;
}
onClipEvent (mouseDown) {
_root.powering = true;
}
onClipEvent (mouseUp) {
_root.powering = false;
}
onClipEvent (enterFrame) {
if (health > 100) {
health = 100;
}
if (health <= 0) {
health = 0;
}
if (grav > Height) {
grav = Height;
}
grav = grav + 1;
_y = (_y + grav);
i = 1;
while (i < 7) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y - 1);
jumping = false;
grav = 0;
}
while (_root["crate" + i].hitTest(this.base) && (_root["crate" + i]._currentframe == 1)) {
_y = (_y-1);
jumping = false;
grav = 0;
}
i++;
}
if (_root.powering && (_root.rightarm._currentframe == 8)) {
_root.power = _root.power + 3;
}
if (Key.isDown(87) && (jumping == false)) {
jumping = true;
_root.shooting = false;
grav = -Height;
}
}
onClipEvent (load) {
speed = 0;
acceleration = 3.25;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (health > 0) {
if (e > 2) {
e = 2;
}
if (_root.power > 30) {
_root.power = 30;
}
if (direction) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (speed > 10) {
speed = 10;
}
if (Key.isDown(65)) {
direction = false;
_root.shooting = false;
this.gotoAndStop(3);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68)) {
direction = true;
_root.shooting = false;
this.gotoAndStop(2);
speed = speed + acceleration;
} else {
speed = speed * 0.9;
}
if (Key.isDown(68) | Key.isDown(65)) {
} else {
this.gotoAndStop(1);
}
if (Key.isDown(68) && (Key.isDown(65))) {
this.gotoAndStop(1);
speed = 0;
}
if ((Key.isDown(83) && (jumping == false)) && (right)) {
this.gotoAndStop(6);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
if ((Key.isDown(83) && (jumping == false)) && (right == false)) {
this.gotoAndStop(7);
this._y = this._y + 35;
speed = 0;
} else {
this._y - 35;
}
}
}
onClipEvent (enterFrame) {
if (health > 0) {
if ((_root._xmouse > this._x) && (this._currentframe == 1)) {
this._xscale = scale;
}
if ((_root._xmouse < this._x) && (this._currentframe == 1)) {
this._xscale = -scale;
} else {
this._xscale = scale;
}
if (_root._xmouse > this._x) {
_root.rightarm._yscale = scale;
_root.leftarm._yscale = scale;
right = true;
}
if (_root._xmouse < this._x) {
_root.rightarm._yscale = -scale;
_root.leftarm._yscale = -scale;
right = false;
}
if (jumping && (right)) {
this.gotoAndPlay(4);
}
if (jumping && (right == false)) {
this.gotoAndPlay(5);
}
i = 0;
while (i < 8) {
if (_root["ground" + i].hitTest(this.leftt)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["ground" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["ground" + i].hitTest(this.rightt)) {
this._x = this._x - 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x + 5;
speed = 0;
}
if (_root["crate" + i].hitTest(this.top)) {
this._y = this._y + 5;
jumping = true;
grav = 0;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
this._x = this._x - 5;
speed = 0;
}
i++;
}
}
if (health <= 0) {
health = 0;
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
this.gotoAndStop(8);
_root.ending.gotoAndPlay(2);
_root.char.removeMovieClip();
a++;
}
}
}
Instance of Symbol 360 MovieClip "rightarm" in Frame 20
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
k++;
if ((Key.isDown(69) && (k > 5)) && (_currentframe != 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.nextFrame();
_root.leftarm.nextFrame();
_root.boxCam.bulletcounter.nextFrame();
_root.boxCam.weapons.nextFrame();
}
if ((Key.isDown(69) && (k > 5)) && (_currentframe == 9)) {
k = 0;
_root.shaketimer.gotoAndStop(1);
this.gotoAndStop(1);
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe != 1)) {
k = 0;
this.prevFrame();
_root.leftarm.prevFrame();
_root.boxCam.bulletcounter.prevFrame();
_root.boxCam.weapons.prevFrame();
}
if ((Key.isDown(81) && (k > 5)) && (_currentframe == 1)) {
k = 0;
this.gotoAndStop(9);
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
}
if (Key.isDown(49)) {
_root.leftarm.gotoAndStop(1);
_root.boxCam.bulletcounter.gotoAndStop(1);
_root.boxCam.weapons.gotoAndStop(1);
this.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.leftarm.gotoAndStop(2);
_root.boxCam.bulletcounter.gotoAndStop(2);
_root.boxCam.weapons.gotoAndStop(2);
this.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.leftarm.gotoAndStop(3);
_root.boxCam.bulletcounter.gotoAndStop(3);
_root.boxCam.weapons.gotoAndStop(3);
this.gotoAndStop(3);
}
if (Key.isDown(52)) {
_root.leftarm.gotoAndStop(4);
_root.boxCam.bulletcounter.gotoAndStop(4);
_root.boxCam.weapons.gotoAndStop(4);
this.gotoAndStop(4);
}
if (Key.isDown(53)) {
_root.leftarm.gotoAndStop(5);
_root.boxCam.bulletcounter.gotoAndStop(5);
_root.boxCam.weapons.gotoAndStop(5);
this.gotoAndStop(5);
}
if (Key.isDown(54)) {
_root.leftarm.gotoAndStop(6);
_root.boxCam.bulletcounter.gotoAndStop(6);
_root.boxCam.weapons.gotoAndStop(6);
this.gotoAndStop(6);
}
if (Key.isDown(55)) {
_root.leftarm.gotoAndStop(7);
_root.boxCam.bulletcounter.gotoAndStop(7);
_root.boxCam.weapons.gotoAndStop(7);
this.gotoAndStop(7);
}
if (Key.isDown(56)) {
_root.leftarm.gotoAndStop(8);
_root.boxCam.bulletcounter.gotoAndStop(8);
_root.boxCam.weapons.gotoAndStop(8);
this.gotoAndStop(8);
}
if (Key.isDown(57)) {
_root.leftarm.gotoAndStop(9);
_root.boxCam.bulletcounter.gotoAndStop(9);
_root.boxCam.weapons.gotoAndStop(9);
this.gotoAndStop(9);
}
if (Key.isDown(58)) {
_root.leftarm.gotoAndStop(10);
_root.boxCam.bulletcounter.gotoAndStop(10);
_root.boxCam.weapons.gotoAndStop(10);
this.gotoAndStop(10);
}
this.swapDepths(105);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
Instance of Symbol 362 MovieClip "boxCam2" in Frame 20
onClipEvent (enterFrame) {
if (_root.shaking == true) {
_root.chx = random(15) - 8;
_root.chy = random(15) - 8;
}
}
Instance of Symbol 479 MovieClip "boxCam" in Frame 20
onClipEvent (enterFrame) {
this.swapDepths(5000);
this.cacheAsBitmap();
}
Instance of Symbol 402 MovieClip "bullets" in Frame 20
onClipEvent (enterFrame) {
if (_name == "bullets") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 45;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (_root["enemy" + i].hit.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root["enemyrightarm" + i].head.hitTest(this) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 34;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 403 MovieClip "sb" in Frame 20
onClipEvent (enterFrame) {
if (_name == "sb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 42;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 9;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 70;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 110;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 90;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mb" in Frame 20
onClipEvent (enterFrame) {
if (_name == "mb") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = _root.rightarm._rotation;
speed = 40;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 30;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 50;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "s3" in Frame 20
onClipEvent (enterFrame) {
if (_name == "s3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "s2" in Frame 20
onClipEvent (enterFrame) {
if (_name == "s2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "s1" in Frame 20
onClipEvent (enterFrame) {
if (_name == "s1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 7;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 45;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 60;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 405 MovieClip "m3" in Frame 20
onClipEvent (enterFrame) {
if (_name == "m3") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 406 MovieClip "m2" in Frame 20
onClipEvent (enterFrame) {
if (_name == "m2") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 10;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 407 MovieClip "m1" in Frame 20
onClipEvent (enterFrame) {
if (_name == "m1") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 37;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 25;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 35;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 20;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 404 MovieClip "mg" in Frame 20
onClipEvent (enterFrame) {
if (_name == "mg") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 19;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 38;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 30;
this.gotoAndStop(2);
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "uz" in Frame 20
onClipEvent (enterFrame) {
if (_name == "uz") {
_x = -4000;
}
}
onClipEvent (load) {
k = 0;
randoms = random(10) - 5;
_x = _root.rightarm._x;
_y = _root.rightarm._y;
_rotation = (_root.rightarm._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.rightarm._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (_root["ground" + i].hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemy" + i].hit) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 15;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root["enemyrightarm" + i].head) && (this._currentframe == 1)) {
_root["enemy" + i].health = _root["enemy" + i].health - 28;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
if (_root.enemys.hitTest(this) && (this._currentframe == 1)) {
_root.enemys.health = _root.enemys.health - 27;
_root.numberofshotsontarget = _root.numberofshotsontarget + 1;
this.gotoAndStop(2);
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 446 MovieClip "grenade" in Frame 20
onClipEvent (enterFrame) {
if (gravity) {
grav++;
}
_y = (_y + grav);
if (_name == "grenade") {
this.gotoAndStop(3);
_x = -8000;
}
}
onClipEvent (load) {
gravity = true;
grav = 0;
speed = _root.power;
h = 1;
x = Math.sin((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.rightarm._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 12) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.hitTest(_root["crate" + i]) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
}
if ((this.a.box.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root["enemy" + i].gotoAndStop(4);
}
if ((this.a.box.hitTest(_root.char) && (_root.char.health > 0)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
_rotation = 0;
x = 0;
y = 0;
_root.char.health = _root.char.health - 5;
}
if (this.a.box.hitTest(_root["crate" + i]) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root["crate" + i].health = _root["crate" + i].health - 200;
}
if ((this.a.box.hitTest(_root.enemys) && (_root.enemys._currentframe != 3)) && (this._currentframe == 2)) {
speed = 0;
gravity = false;
grav = 0;
this.gotoAndStop(2);
_rotation = 0;
x = 0;
y = 0;
_root.enemys.gotoAndStop(3);
}
i++;
}
}
Instance of Symbol 778 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
removeMovieClip(_root.char);
removeMovieClip(_root.rightarm);
removeMovieClip(_root.leftarm);
a = 0;
while (a < 12) {
removeMovieClip(_root["enemy" + a]);
removeMovieClip(_root["enemyrightarm" + a]);
removeMovieClip(_root["enemyleftarm" + a]);
removeMovieClip(_root.boxCam);
removeMovieClip(_root.boxCam2);
_root.gotoAndStop("endlevelfive");
a++;
}
}
}
Instance of Symbol 608 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.her = _root.char.health;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm8" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm8._rotation;
}
Instance of Symbol 527 MovieClip "enemy8" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm8._yscale = scale;
_root.enemyleftarm8._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm8._yscale = -scale;
_root.enemyleftarm8._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm8.gotoAndStop(6);
} else {
_root.enemyrightarm8.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm8.gotoAndStop(5);
_root.enemyleftarm8.gotoAndStop(5);
_root.enemy8health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm8" in Frame 20
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulleteeight.duplicateMovieClip("enemybulleteeight" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulleteeight" + _root.enemybulletCounter]._x = _root.enemyrightarm8._x;
_root["enemybulleteeight" + _root.enemybulletCounter]._y = _root.enemyrightarm8._y;
_root["enemybulleteeight" + _root.enemybulletCounter]._rotation = _root.enemyrightarm8._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy8health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy8.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm4" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm4._rotation;
}
Instance of Symbol 527 MovieClip "enemy4" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 400;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm4._yscale = scale;
_root.enemyleftarm4._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm4._yscale = -scale;
_root.enemyleftarm4._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm4.gotoAndStop(6);
} else {
_root.enemyrightarm4.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm4.gotoAndStop(5);
_root.enemyleftarm4.gotoAndStop(5);
_root.enemy4health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm4" in Frame 20
onClipEvent (load) {
this.gotoAndStop(3);
_root.euzi = new Sound();
_root.euzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletfour.duplicateMovieClip("enemybulletfour" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletfour" + _root.enemybulletCounter]._x = _root.enemyrightarm4._x;
_root["enemybulletfour" + _root.enemybulletCounter]._y = _root.enemyrightarm4._y;
_root["enemybulletfour" + _root.enemybulletCounter]._rotation = _root.enemyrightarm4._rotation;
_root.euzi.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy4health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy4.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm2" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm2._rotation;
}
Instance of Symbol 527 MovieClip "enemy2" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm2._yscale = scale;
_root.enemyleftarm2._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm2._yscale = -scale;
_root.enemyleftarm2._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm2.gotoAndStop(6);
} else {
_root.enemyrightarm2.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm2.gotoAndStop(5);
_root.enemyleftarm2.gotoAndStop(5);
_root.enemy2health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm2" in Frame 20
onClipEvent (load) {
this.gotoAndStop(3);
_root.e2uzi = new Sound();
_root.e2uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = 10;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 630)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybullettwo.duplicateMovieClip("enemybullettwo" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullettwo" + _root.enemybulletCounter]._x = _root.enemyrightarm2._x;
_root["enemybullettwo" + _root.enemybulletCounter]._y = _root.enemyrightarm2._y;
_root["enemybullettwo" + _root.enemybulletCounter]._rotation = _root.enemyrightarm2._rotation;
_root.e2uzi.start();
}
_root.e2uzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy2health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy2.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm9" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm9._rotation;
}
Instance of Symbol 527 MovieClip "enemy9" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm9._yscale = scale;
_root.enemyleftarm9._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm9._yscale = -scale;
_root.enemyleftarm9._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm9.gotoAndStop(6);
} else {
_root.enemyrightarm9.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm9.gotoAndStop(5);
_root.enemyleftarm9.gotoAndStop(5);
_root.enemy9health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm9" in Frame 20
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 700)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletenine.duplicateMovieClip("enemybulletenine" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletenine" + _root.enemybulletCounter]._x = _root.enemyrightarm9._x;
_root["enemybulletenine" + _root.enemybulletCounter]._y = _root.enemyrightarm9._y;
_root["enemybulletenine" + _root.enemybulletCounter]._rotation = _root.enemyrightarm9._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy9health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy9.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm3" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm3._rotation;
}
Instance of Symbol 527 MovieClip "enemy3" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm3._yscale = scale;
_root.enemyleftarm3._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm3._yscale = -scale;
_root.enemyleftarm3._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if ((((_root.disted == false) && (this._currentframe != 4)) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm3.gotoAndStop(6);
} else {
_root.enemyrightarm3.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm3.gotoAndStop(5);
_root.enemyleftarm3.gotoAndStop(5);
_root.enemy3health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm3" in Frame 20
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 700)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletthree.duplicateMovieClip("enemybulletthree" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletthree" + _root.enemybulletCounter]._x = _root.enemyrightarm3._x;
_root["enemybulletthree" + _root.enemybulletCounter]._y = _root.enemyrightarm3._y;
_root["enemybulletthree" + _root.enemybulletCounter]._rotation = _root.enemyrightarm3._rotation;
}
}
Instance of Symbol 583 MovieClip "enemy3health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy3.health;
}
Instance of Symbol 583 MovieClip "enemy10health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy10.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm10" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm10._rotation;
}
Instance of Symbol 527 MovieClip "enemy10" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm10._yscale = scale;
_root.enemyleftarm10._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm10._yscale = -scale;
_root.enemyleftarm10._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(this.base)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 100))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 10))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm10.gotoAndStop(6);
} else {
_root.enemyrightarm10.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm10.gotoAndStop(5);
_root.enemyleftarm10.gotoAndStop(5);
_root.enemy10health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm10" in Frame 20
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletten.duplicateMovieClip("enemybulletten" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletten" + _root.enemybulletCounter]._x = _root.enemyrightarm10._x;
_root["enemybulletten" + _root.enemybulletCounter]._y = _root.enemyrightarm10._y;
_root["enemybulletten" + _root.enemybulletCounter]._rotation = _root.enemyrightarm10._rotation;
}
}
Instance of Symbol 205 MovieClip "enemyleftarm1" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm1._rotation;
}
Instance of Symbol 527 MovieClip "enemy1" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
p = 0;
dis = 100;
distance = 500;
e = 0;
espeed = 0.4;
}
onClipEvent (enterFrame) {
if ((rx < this._x) && (health > 0)) {
_xscale = (-scale);
}
if ((rx > this._x) && (health > 0)) {
_xscale = scale;
}
if (((_xscale == scale) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = scale;
_root.enemyleftarm1._yscale = scale;
} else if (((_xscale == (-scale)) && (health > 0)) && (this._currentframe != 4)) {
_root.enemyrightarm1._yscale = -scale;
_root.enemyleftarm1._yscale = -scale;
}
grav++;
_y = (_y + grav);
i = 1;
while (i < 27) {
while (_root["ground" + i].hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root["ground" + i].hitTest(this.leftt)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["ground" + i].hitTest(this.rightt)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.leftt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x - 10);
espeed = 0;
} else {
espeed = 0.4;
}
if (_root["crate" + i].hitTest(this.rightt) && (_root["crate" + i]._currentframe == 1)) {
_x = (_x + 10);
espeed = 0;
} else {
espeed = 0.4;
}
i++;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
dis = random(400) + 40;
}
if (random(150) == 1) {
distance = random(400) + 200;
}
}
onClipEvent (enterFrame) {
d = 1;
while (d < 10) {
rx = _root.char._x;
ry = _root.char._y;
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < (distance + 90))) {
disted = true;
} else if ((health > 0) && (this._currentframe != 4)) {
disted = false;
this.gotoAndStop(1);
}
if (disted) {
if (((health > 0) && (this._currentframe != 4)) && (rx < (this._x - dis))) {
this._x = this._x - espeed;
_xscale = (-scale);
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (rx > (this._x + dis))) {
this._x = this._x + espeed;
_xscale = scale;
this.gotoAndStop(2);
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) <= (dis + 15))) {
this.gotoAndStop(1);
}
}
if (((_root.disted == false) && (health > 0)) && (this._currentframe != 4)) {
this.gotoAndStop(1);
}
d++;
}
if (((health > 0) && (this._currentframe != 4)) && (Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y))) < 100)) {
_root.enemyrightarm1.gotoAndStop(6);
} else {
_root.enemyrightarm1.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm1.gotoAndStop(5);
_root.enemyleftarm1.gotoAndStop(5);
_root.enemy1health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm1" in Frame 20
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if (((random(lol) == 1) && (this.g._currentframe == 1)) && (range < 400)) {
this.g.play();
if ((_root.char._y - this._y) > -20) {
_root.enemybulletCounter++;
_root.enemybullet.duplicateMovieClip("enemybullet" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybullet" + _root.enemybulletCounter]._x = _root.enemyrightarm1._x;
_root["enemybullet" + _root.enemybulletCounter]._y = _root.enemyrightarm1._y;
_root["enemybullet" + _root.enemybulletCounter]._rotation = _root.enemyrightarm1._rotation;
}
}
}
Instance of Symbol 583 MovieClip "enemy1health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy1.health;
}
Instance of Symbol 205 MovieClip "enemyleftarm6" in Frame 20
onClipEvent (enterFrame) {
this._rotation = _root.enemyrightarm6._rotation;
}
Instance of Symbol 527 MovieClip "enemy6" in Frame 20
onClipEvent (load) {
grav = 0;
scale = _xscale;
health = 100;
dis = 100;
distance = 500;
e = 0;
espeed = 0;
}
onClipEvent (enterFrame) {
rx = _root.char._x;
if (((rx < this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = (-scale);
}
if (((rx > this._x) && (health > 0)) && (this._currentframe != 4)) {
_xscale = scale;
}
if ((_xscale == scale) && (health > 0)) {
_root.enemyrightarm6._yscale = scale;
_root.enemyleftarm6._yscale = scale;
} else if ((_xscale == (-scale)) && (health > 0)) {
_root.enemyrightarm6._yscale = -scale;
_root.enemyleftarm6._yscale = -scale;
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndStop(3);
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
if (health < 0) {
health = 0;
}
if (this._currentframe == 4) {
_root.enemyrightarm6.gotoAndStop(5);
_root.enemyleftarm6.gotoAndStop(5);
_root.enemy6health.gotoAndStop(2);
}
}
Instance of Symbol 579 MovieClip "enemyrightarm6" in Frame 20
onClipEvent (load) {
this.gotoAndStop(7);
_root.emachinegun = new Sound();
_root.emachinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
enemynumber = 1;
Xd = _root.char._x - _x;
Yd = (_root.char._y - 20) - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
}
onClipEvent (enterFrame) {
rx = _root.char._x;
ry = _root.char._y;
lol = int(range / 30) + 1;
range = Math.sqrt(((rx - this._x) * (rx - this._x)) + ((ry - this._y) * (ry - this._y)));
if ((this.g._currentframe == 1) && (range < 600)) {
this.g.play();
_root.enemybulletCounter++;
_root.enemybulletesix.duplicateMovieClip("enemybulletesix" + _root.enemybulletCounter, _root.enemybulletCounter);
_root["enemybulletesix" + _root.enemybulletCounter]._x = _root.enemyrightarm6._x;
_root["enemybulletesix" + _root.enemybulletCounter]._y = _root.enemyrightarm6._y;
_root["enemybulletesix" + _root.enemybulletCounter]._rotation = _root.enemyrightarm6._rotation;
_root.emachinegun.start();
}
_root.euzi.onSoundComplete.stop();
}
Instance of Symbol 583 MovieClip "enemy6health" in Frame 20
onClipEvent (enterFrame) {
this.health._xscale = _root.enemy6.health;
}
Instance of Symbol 676 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy8._currentframe == 3) | (_root.enemy8._currentframe == 4)) {
_x = _root.enemy8._x;
_y = _root.enemy8._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 680 MovieClip in Frame 20
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy4._currentframe == 3) | (_root.enemy4._currentframe == 4)) {
_x = _root.enemy4._x;
_y = _root.enemy4._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy5._currentframe == 3) | (_root.enemy5._currentframe == 4)) {
_x = _root.enemy5._x;
_y = _root.enemy5._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy3._currentframe == 3) | (_root.enemy3._currentframe == 4)) {
_x = _root.enemy3._x;
_y = _root.enemy3._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy10._currentframe == 3) | (_root.enemy10._currentframe == 4)) {
_x = _root.enemy10._x;
_y = _root.enemy10._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 595 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy1._currentframe == 3) | (_root.enemy1._currentframe == 4)) {
_x = _root.enemy1._x;
_y = _root.enemy1._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 680 MovieClip in Frame 20
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
if ((_root.enemy2._currentframe == 3) | (_root.enemy2._currentframe == 4)) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 597 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy11._currentframe == 3) | (_root.enemy11._currentframe == 4)) {
_x = _root.enemy11._x;
_y = _root.enemy11._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 683 MovieClip "enemybulleteeight" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulleteeight") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm8._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletfour" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletfour") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm4._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybullettwo" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybullettwo") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm2._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 28) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletfive" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletfive") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm5._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletnine" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletnine") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletthree" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletthree") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm3._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 28) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybulletten" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletten") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm10._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 402 MovieClip "enemybullet" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybullet") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm1._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 1;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 2;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletseleven" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletseleven") {
_x = -4000;
}
}
onClipEvent (load) {
o = 0;
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 80) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletsseleven" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletsseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 588 MovieClip "enemybulletssseleven" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletssseleven") {
_x = -4000;
}
}
onClipEvent (load) {
randoms = random(50) - 20;
_x = _root.enemyrightarm11._x;
_y = _root.enemyrightarm11._y;
_rotation = (_root.enemyrightarm11._rotation + randoms);
speed = 40;
h = 1;
x = Math.sin(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed;
y = (Math.cos(((_root.enemyrightarm11._rotation + 90) + randoms) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 7) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 3;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 7;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 225 MovieClip "crate2" in Frame 20
onClipEvent (load) {
health = 10;
}
onClipEvent (enterFrame) {
if (health < 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 683 MovieClip "enemybulletesix" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletesix") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm6._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 676 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy6._currentframe == 3) | (_root.enemy6._currentframe == 4)) {
_x = _root.enemy6._x;
_y = _root.enemy6._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Instance of Symbol 683 MovieClip "enemybulletenine" in Frame 20
onClipEvent (enterFrame) {
if (_name == "enemybulletenine") {
_x = -4000;
}
}
onClipEvent (load) {
speed = 40;
h = 1;
x = Math.sin((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.enemyrightarm9._rotation + 90) * (Math.PI/180)) * speed) * -1;
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 27) {
if (this.hitTest(_root["ground" + i]) && (this._currentframe == 1)) {
this.gotoAndStop(3);
speed = 0;
x = 0;
y = 0;
}
if ((_root["crate" + i].hitTest(this) && (this._currentframe == 1)) && (_root["crate" + i]._currentframe == 1)) {
this.gotoAndStop(3);
_root["crate" + i].health = _root["crate" + i].health - 5;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.char.hit) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 4;
speed = 0;
x = 0;
y = 0;
}
if (this.hitTest(_root.rightarm.head) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.health = _root.char.health - 8;
speed = 0;
x = 0;
y = 0;
}
i++;
}
}
Instance of Symbol 676 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.enemy9._currentframe == 3) | (_root.enemy9._currentframe == 4)) {
_x = _root.enemy9._x;
_y = _root.enemy9._y;
}
if (_root.char.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
var pickup = new Sound();
pickup.attachSound("pickup");
pickup.start();
}
}
Frame 21
_root.shutter.gotoAndPlay(2);
_root.boxCam.removeMovieClip();
_root.boxCam2.onEnterFrame = function () {
var _local3 = Stage.width / this._width;
var _local2 = Stage.height / this._height;
_x = ((Stage.width / 2) - (this._x * _local3));
_y = ((Stage.height / 2) - (this._y * _local2));
_xscale = (100 * _local3);
_yscale = (100 * _local2);
};
stop();
stopAllSounds();
_root.removeMovieClip(_root.char);
Instance of Symbol 627 MovieClip in Frame 21
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip in Frame 21
onClipEvent (load) {
if (_root.her > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 639 MovieClip in Frame 21
onClipEvent (load) {
this.gotoAndPlay(2);
}
Frame 22
_root.shutter.gotoAndPlay(2);
stop();
stopAllSounds();
Instance of Symbol 47 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.soundon == false) {
stopAllSounds();
}
}
Instance of Symbol 831 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.backm._currentframe == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 58 MovieClip "shutter" in Frame 22
onClipEvent (load) {
this.gotoAndPlay(2);
}
Symbol 832 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.6");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 32 Button
on (release) {
_root.playd = true;
_root.menud = false;
_root.howtoplay = false;
_root.options = false;
_root.credits = false;
_root.shutter.gotoAndPlay(15);
}
Symbol 36 Button
on (release) {
_root.playd = false;
_root.menud = false;
_root.howtoplay = true;
_root.options = false;
_root.credits = false;
_root.shutter.gotoAndPlay(15);
}
Symbol 40 Button
on (release) {
_root.playd = false;
_root.menud = false;
_root.howtoplay = false;
_root.options = true;
_root.credits = false;
_root.shutter.gotoAndPlay(15);
}
Symbol 44 Button
on (release) {
_root.playd = false;
_root.menud = false;
_root.howtoplay = false;
_root.options = false;
_root.credits = true;
_root.shutter.gotoAndPlay(15);
}
Symbol 58 MovieClip Frame 1
play();
Symbol 58 MovieClip Frame 10
stop();
Symbol 58 MovieClip Frame 27
if (_root.playd == true) {
_root.gotoAndStop("levelselect");
}
if (_root.menud == true) {
_root.gotoAndStop("menu");
}
if (_root.howtoplay == true) {
_root.gotoAndStop("howtoplay");
}
if (_root.options == true) {
_root.gotoAndStop("options");
}
if (_root.credits == true) {
_root.gotoAndStop("credits");
}
stop();
Symbol 68 Button
on (release) {
_root.menud = true;
_root.shutter.gotoAndPlay(15);
_root.playd = false;
_root.howtoplay = false;
_root.options = false;
_root.credits = false;
}
Symbol 88 Button
on (release) {
_root.soundon = true;
_root.onn.gotoAndStop(1);
_root.offf.gotoAndStop(1);
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 93 Button
on (release) {
_root.soundon = false;
_root.onn.gotoAndStop(2);
_root.offf.gotoAndStop(2);
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 98 Button
on (release) {
_quality = "HIGH";
_root.highq.gotoAndStop(2);
_root.lowq.gotoAndStop(1);
_root.mediumq.gotoAndStop(2);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 104 Button
on (release) {
_quality = "MEDIUM";
_root.mediumq.gotoAndStop(1);
_root.lowq.gotoAndStop(1);
_root.highq.gotoAndStop(1);
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 108 Button
on (release) {
_quality = "LOW";
_root.lowq.gotoAndStop(2);
_root.highq.gotoAndStop(1);
_root.mediumq.gotoAndStop(2);
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 126 Button
on (release) {
_root.gotoAndStop("leveloneintro");
}
Symbol 129 Button
on (release) {
if (_root.leveltwounlocked) {
_root.gotoAndStop("level2intro");
}
}
Symbol 132 Button
on (release) {
if (_root.levelthreeunlocked) {
_root.gotoAndStop("level3intro");
}
}
Symbol 135 Button
on (release) {
if (_root.levelfourunlocked) {
_root.gotoAndStop("level4intro");
}
}
Symbol 138 Button
on (release) {
if (_root.levelfiveunlocked) {
_root.gotoAndStop("level5intro");
}
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 167 MovieClip Frame 3
stop();
Symbol 167 MovieClip Frame 4
stop();
Symbol 167 MovieClip Frame 5
stop();
Symbol 167 MovieClip Frame 6
stop();
Symbol 167 MovieClip Frame 7
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 3
stop();
Symbol 177 MovieClip Frame 4
stop();
Symbol 177 MovieClip Frame 5
stop();
Symbol 177 MovieClip Frame 6
stop();
Symbol 177 MovieClip Frame 7
stop();
Symbol 181 Button
on (release) {
_root.textm.nextFrame();
_root.backm.nextFrame();
}
Symbol 185 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 5
stop();
_parent.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 3
stop();
Symbol 212 MovieClip Frame 4
stop();
Symbol 212 MovieClip Frame 5
stop();
Symbol 212 MovieClip Frame 6
stop();
Symbol 212 MovieClip Frame 7
stop();
Symbol 224 MovieClip Frame 1
_root.crate = new Sound();
_root.crate.attachSound("crate");
if (_root.musicon) {
_root.crate.start();
}
Symbol 224 MovieClip Frame 15
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
_root.numberofcrates = _root.numberofcrates + 1;
Symbol 269 MovieClip Frame 1
play();
Symbol 269 MovieClip Frame 16
_root.her = 0;
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
stop();
Symbol 270 MovieClip Frame 8
_root.her = 0;
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
_root.pistol = new Sound();
_root.pistol.attachSound("pistol");
_root.pistol.start();
_root.shaketimer.gotoAndPlay(2);
_root.pistolBullets = _root.pistolBullets - 1;
_root.bulletCounter++;
_root.bullets.duplicateMovieClip("bullets" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
Instance of Symbol 277 MovieClip in Symbol 284 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
_root.shaketimer.gotoAndPlay(2);
_root.uziBullets = _root.uziBullets - 1;
_root.bulletCounter++;
_root.uz.duplicateMovieClip("uz" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
Instance of Symbol 277 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 295 MovieClip Frame 4
_root.shaketimer.gotoAndPlay(2);
Symbol 295 MovieClip Frame 5
if (_root.uziBullets > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
_root.shot = new Sound();
_root.shot.attachSound("shot");
_root.shot.start();
_root.shaketimer.gotoAndPlay(2);
_root.s2.duplicateMovieClip("s2" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
_root.shotgunBullets = _root.shotgunBullets - 1;
_root.bulletCounter = _root.bulletCounter + 3;
_root.s1.duplicateMovieClip(("s1" + _root.bulletCounter) + 2, _root.bulletCounter + 2);
_root.s3.duplicateMovieClip(("s3" + _root.bulletCounter) + 1, _root.bulletCounter + 1);
Instance of Symbol 277 MovieClip in Symbol 307 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
_root.shaketimer.gotoAndPlay(2);
_root.machinegunBullets = _root.machinegunBullets - 1;
_root.bulletCounter++;
_root.mg.duplicateMovieClip("mg" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
Instance of Symbol 277 MovieClip in Symbol 312 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 312 MovieClip Frame 4
_root.shaketimer.gotoAndPlay(2);
if (_root.machinegunBullets > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
var sniper = new Sound();
sniper.attachSound("sniper");
sniper.start();
_root.shaketimer.gotoAndPlay(2);
_root.sniperBullets = _root.sniperBullets - 1;
_root.bulletCounter++;
_root.sb.duplicateMovieClip("sb" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
Instance of Symbol 277 MovieClip in Symbol 324 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
_root.shaketimer.gotoAndPlay(2);
_root.autoBullets = _root.autoBullets - 1;
_root.bulletCounter++;
_root.mb.duplicateMovieClip("mb" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 1;
Instance of Symbol 277 MovieClip in Symbol 328 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 328 MovieClip Frame 4
_root.shaketimer.gotoAndPlay(2);
if (_root.autoBullets > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
_root.shaketimer.gotoAndPlay(2);
_root.m2.duplicateMovieClip("m2" + _root.bulletCounter, _root.bulletCounter);
_root.numberofshotstaken = _root.numberofshotstaken + 3;
_root.miniBullets = _root.miniBullets - 3;
_root.bulletCounter = _root.bulletCounter + 3;
_root.m1.duplicateMovieClip(("m1" + _root.bulletCounter) + 2, _root.bulletCounter + 2);
_root.m3.duplicateMovieClip(("m3" + _root.bulletCounter) + 1, _root.bulletCounter + 1);
Instance of Symbol 277 MovieClip in Symbol 333 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 333 MovieClip Frame 3
if (_root.miniBullets > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
stop();
Instance of Symbol 336 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.grenadeBullets > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
_root.power = 0;
}
}
Symbol 348 MovieClip Frame 4
_root.grenadeBullets = _root.grenadeBullets - 1;
_root.grenadeCounter++;
_root.grenade.duplicateMovieClip("grenade" + _root.grenadeCounter, _root.grenadeCounter);
_root["grenade" + _root.grenadeCounter]._x = _root.char._x;
_root["grenade" + _root.grenadeCounter]._y = _root.rightarm._y - 20;
_root["grenade" + _root.grenadeCounter]._rotation = _root.rightarm._rotation;
Symbol 348 MovieClip Frame 5
_root.power = 0;
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 5
_root.slash = new Sound();
_root.slash.attachSound("slash");
_root.slash.start();
Instance of Symbol 350 MovieClip "shank" in Symbol 359 MovieClip Frame 5
onClipEvent (enterFrame) {
u = 0;
while (u < 15) {
if (_root["enemy" + u].hit.hitTest(this)) {
_root["enemy" + u].health = _root["enemy" + u].health - 10;
}
if (_root["enemyrightarm" + u].head.hitTest(this)) {
_root["enemy" + u].health = _root["enemy" + u].health - 15;
}
if (_root["crate" + u].hitTest(this)) {
_root["crate" + u].health = _root["crate" + u].health - 3;
}
u++;
}
}
Symbol 360 MovieClip Frame 1
stop();
_root.sniping = false;
_root.uzi.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 284 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.pistolBullets > 0) && (mouse)) {
this.play();
}
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
}
Symbol 360 MovieClip Frame 2
stop();
_root.sniping = false;
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 295 MovieClip "uzi" in Symbol 360 MovieClip Frame 2
onClipEvent (load) {
_root.uzi = new Sound();
_root.uzi.attachSound("uzi");
}
onClipEvent (enterFrame) {
if ((_root.uziBullets > 0) && (mouse)) {
this.play();
} else {
_root.uzi.stop();
}
}
onClipEvent (mouseDown) {
mouse = true;
if ((_root.uziBullets > 0) && (_root.rightarm._currentframe == 2)) {
_root.uzi.start(0, 100);
}
}
onClipEvent (mouseUp) {
mouse = false;
_root.uzi.stop();
this.gotoAndStop(1);
_root.shaketimer.gotoAndStop(1);
}
Symbol 360 MovieClip Frame 3
stop();
_root.sniping = false;
_root.uzi.stop();
_root.machinegun.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 307 MovieClip in Symbol 360 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_root.shotgunBullets > 0) && (mouse)) {
this.play();
}
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
}
Symbol 360 MovieClip Frame 4
stop();
_root.sniping = false;
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 312 MovieClip in Symbol 360 MovieClip Frame 4
onClipEvent (load) {
_root.machinegun = new Sound();
_root.machinegun.attachSound("machinegun");
}
onClipEvent (enterFrame) {
if ((_root.machinegunBullets > 0) && (mouse)) {
this.play();
} else {
_root.machinegun.stop();
}
}
onClipEvent (mouseDown) {
mouse = true;
if ((_root.machinegunBullets > 0) && (_root.rightarm._currentframe == 4)) {
_root.machinegun.start(0, 100);
}
}
onClipEvent (mouseUp) {
_root.shaketimer.gotoAndStop(1);
mouse = false;
_root.machinegun.stop();
this.gotoAndStop(1);
}
Symbol 360 MovieClip Frame 5
stop();
_root.sniping = true;
_root.machinegun.stop();
_root.auto.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 324 MovieClip in Symbol 360 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((_root.sniperBullets > 0) && (mouse)) {
this.play();
}
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
}
Symbol 360 MovieClip Frame 6
stop();
_root.sniping = false;
_root.mini.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 328 MovieClip in Symbol 360 MovieClip Frame 6
onClipEvent (load) {
_root.auto = new Sound();
_root.auto.attachSound("auto");
}
onClipEvent (enterFrame) {
if ((_root.autoBullets > 0) && (mouse)) {
this.play();
} else {
_root.auto.stop();
}
}
onClipEvent (mouseDown) {
mouse = true;
if ((_root.autoBullets > 0) && (_root.rightarm._currentframe == 6)) {
_root.auto.start(0, 100);
}
}
onClipEvent (mouseUp) {
_root.shaketimer.gotoAndStop(1);
mouse = false;
_root.auto.stop();
this.gotoAndStop(1);
}
Symbol 360 MovieClip Frame 7
stop();
_root.sniping = false;
_root.auto.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 333 MovieClip in Symbol 360 MovieClip Frame 7
onClipEvent (load) {
_root.mini = new Sound();
_root.mini.attachSound("mini");
}
onClipEvent (enterFrame) {
if ((_root.miniBullets > 0) && (mouse)) {
this.play();
} else {
_root.mini.stop();
}
}
onClipEvent (mouseDown) {
mouse = true;
if ((_root.miniBullets > 0) && (_root.rightarm._currentframe == 7)) {
_root.mini.start(0, 100);
}
}
onClipEvent (mouseUp) {
_root.shaketimer.gotoAndStop(1);
mouse = false;
_root.mini.stop();
this.gotoAndStop(1);
}
Symbol 360 MovieClip Frame 8
stop();
_root.sniping = false;
_root.mini.stop();
_root.shaketimer.gotoAndStop(1);
Instance of Symbol 348 MovieClip in Symbol 360 MovieClip Frame 8
onClipEvent (mouseUp) {
if (_root.grenadeBullets > 0) {
this.play();
}
}
Symbol 360 MovieClip Frame 9
stop();
_root.sniping = false;
Instance of Symbol 359 MovieClip "shank" in Symbol 360 MovieClip Frame 9
onClipEvent (enterFrame) {
if (mouse) {
this.play();
}
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
}
Symbol 364 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 17
_root.shootingpistol = false;
Symbol 366 MovieClip Frame 18
_parent.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 388 MovieClip Frame 17
stop();
_parent._parent._parent.removeMovieClip();
_parent.removeMovieClip();
this.removeMovieClip();
_parent._parent.removeMovieClip();
stop();
Symbol 389 MovieClip Frame 17
stop();
_parent.removeMovieClip;
_parent.removeMovieClip();
this.removeMovieClip();
_parent._parent.removeMovieClip();
stop();
Symbol 389 MovieClip Frame 20
stop();
Symbol 391 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 10
stop();
_parent.removeMovieClip;
_parent.removeMovieClip();
this.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip "g" in Symbol 402 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 402 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 403 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 403 MovieClip Frame 3
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 404 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 404 MovieClip Frame 3
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 405 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 405 MovieClip Frame 3
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 406 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 406 MovieClip Frame 3
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 407 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 407 MovieClip Frame 3
stop();
Symbol 444 MovieClip Frame 1
_root.explode = new Sound();
_root.explode.attachSound("explode");
_root.explode.start();
Symbol 444 MovieClip Frame 34
stop();
stop();
_parent.removeMovieClip;
_parent.removeMovieClip();
this.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
_root.shaketimer.gotoAndPlay(2);
Symbol 446 MovieClip Frame 3
stop();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
stop();
Symbol 463 MovieClip Frame 3
stop();
Symbol 463 MovieClip Frame 4
stop();
Symbol 463 MovieClip Frame 5
stop();
Symbol 463 MovieClip Frame 6
stop();
Symbol 463 MovieClip Frame 7
stop();
Symbol 463 MovieClip Frame 8
stop();
Instance of Symbol 460 MovieClip in Symbol 463 MovieClip Frame 8
onClipEvent (enterFrame) {
this._xscale = _root.power * 3.33;
}
Symbol 463 MovieClip Frame 9
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 3
stop();
Symbol 472 MovieClip Frame 4
stop();
Symbol 472 MovieClip Frame 5
stop();
Symbol 472 MovieClip Frame 6
stop();
Symbol 472 MovieClip Frame 7
stop();
Symbol 472 MovieClip Frame 8
stop();
Symbol 472 MovieClip Frame 9
stop();
Instance of Symbol 472 MovieClip "bulletcounter" in Symbol 479 MovieClip Frame 1
onClipEvent (enterFrame) {
this.cacheAsBitmap();
}
Instance of Symbol 475 MovieClip "health" in Symbol 479 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.char.health;
}
Instance of Symbol 58 MovieClip "shutter" in Symbol 479 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(2);
}
Symbol 499 MovieClip Frame 1
var fall = new Sound();
fall.attachSound("fall");
fall.start();
Symbol 499 MovieClip Frame 16
stop();
_parent.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 526 MovieClip Frame 1
_root.fall = new Sound();
_root.fall.attachSound("fall");
if (_root.soundon) {
_root.fall.start();
}
Symbol 526 MovieClip Frame 22
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 527 MovieClip Frame 3
stop();
_root.numberofenemieskilled = _root.numberofenemieskilled + 1;
Symbol 527 MovieClip Frame 4
stop();
_root.numberofenemieskilled = _root.numberofenemieskilled + 1;
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
var epistol = new Sound();
epistol.attachSound("pistol");
epistol.start();
Instance of Symbol 277 MovieClip in Symbol 539 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
var shot = new Sound();
shot.attachSound("shot");
shot.start();
Instance of Symbol 277 MovieClip in Symbol 553 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 560 MovieClip Frame 1
stop();
Instance of Symbol 277 MovieClip in Symbol 560 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
var esniper = new Sound();
esniper.attachSound("sniper");
esniper.start();
Instance of Symbol 277 MovieClip in Symbol 570 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 574 MovieClip Frame 5
_root.slash = new Sound();
_root.slash.attachSound("slash");
_root.slash.start();
Instance of Symbol 350 MovieClip "shank" in Symbol 574 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char.health = _root.char.health - 2;
}
if (_root.rightarm.head.hitTest(this)) {
_root.char.health = _root.char.health - 2;
}
}
Symbol 578 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 2
Instance of Symbol 277 MovieClip in Symbol 578 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(4));
}
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 4
stop();
Symbol 579 MovieClip Frame 5
stop();
_parent.removeMovieClip();
_parent._parent.removeMovieClip();
Symbol 579 MovieClip Frame 6
stop();
Symbol 579 MovieClip Frame 7
stop();
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 588 MovieClip Frame 3
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 589 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 589 MovieClip Frame 3
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 2
stop();
Symbol 591 MovieClip Frame 3
stop();
_root.uzi = true;
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
stop();
_root.pistolBullets = _root.pistolBullets + 30;
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
stop();
_root.shotgunBullets = _root.shotgunBullets + 30;
_root.shotgun = true;
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
_root.char.health = _root.char.health + 20;
Symbol 605 MovieClip Frame 1
stop();
_root.shaking = false;
_root.chx = 0;
_root.chy = 0;
Symbol 605 MovieClip Frame 2
_root.shaking = true;
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 10
_root.nextFrame();
Symbol 623 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 631 Button
on (release) {
_root.gotoAndStop("levelselect");
}
Symbol 632 Button
on (release) {
_root.nextFrame();
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 639 MovieClip Frame 35
stop();
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
stop();
Symbol 646 MovieClip Frame 3
stop();
Symbol 646 MovieClip Frame 4
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
stop();
Symbol 651 MovieClip Frame 3
stop();
Symbol 651 MovieClip Frame 4
stop();
Symbol 652 Button
on (release) {
_root.textm.nextFrame();
_root.backm.nextFrame();
if (_root.backm._currentframe == 4) {
_root.lev2button.gotoAndStop(2);
}
}
Symbol 653 Button
on (release) {
_root.gotoAndStop("level2");
}
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 2
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip "g" in Symbol 674 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 674 MovieClip Frame 3
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 2
stop();
_root.machinegunBullets = _root.machinegunBullets + 60;
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
_root.uziBullets = _root.uziBullets + 30;
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip "g" in Symbol 683 MovieClip Frame 2
onClipEvent (load) {
if (random(10) > 5) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(20);
}
}
Symbol 683 MovieClip Frame 3
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
stop();
_root.sniperBullets = _root.sniperBullets + 20;
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 3
stop();
Symbol 701 MovieClip Frame 1
stop();
Symbol 701 MovieClip Frame 2
stop();
Symbol 701 MovieClip Frame 3
stop();
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
stop();
Symbol 705 MovieClip Frame 3
stop();
Symbol 706 Button
on (release) {
_root.gotoAndStop("level3");
}
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 2
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 2
stop();
Symbol 735 MovieClip Frame 3
stop();
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 2
stop();
Symbol 739 MovieClip Frame 3
stop();
Symbol 740 Button
on (release) {
_root.gotoAndStop("level4");
}
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 2
stop();
Symbol 776 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 2
stop();
Symbol 780 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 2
stop();
_root.miniBullets = _root.miniBullets + 120;
Symbol 787 Button
on (release) {
_root.health = 100;
_root.gotoAndStop("menu");
}
Symbol 793 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 2
stop();
Symbol 793 MovieClip Frame 3
stop();
Symbol 797 MovieClip Frame 1
stop();
Symbol 797 MovieClip Frame 2
stop();
Symbol 797 MovieClip Frame 3
stop();
Symbol 798 Button
on (release) {
_root.gotoAndStop("level5");
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 823 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 2
stop();
Symbol 823 MovieClip Frame 3
stop();
Symbol 827 MovieClip Frame 1
stop();
Symbol 827 MovieClip Frame 2
stop();
Symbol 827 MovieClip Frame 3
stop();
Symbol 830 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 2
stop();