Frame 1
mouse.hide();
stop();
Instance of Symbol 258 MovieClip in Frame 1
onClipEvent (load) {
startDrag ("", true);
}
Frame 2
_root.hat = 1;
_root.suit = 1;
Instance of Symbol 374 MovieClip "menu" in Frame 2
onClipEvent (load) {
_root.guns = false;
}
Frame 3
stop();
Instance of Symbol 412 MovieClip "bullet" in Frame 3
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 3)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 417 MovieClip "ground" in Frame 3
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(4);
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 3
onClipEvent (load) {
_root.shell._x = -1000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 3) {
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (health <= 0) {
dead = true;
}
}
if (_root.ground.obj1._currentframe > 1) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 3
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 3
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = 13;
suit = 5;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (health <= 0) {
dead = true;
}
}
if (health < 20) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 3
onClipEvent (load) {
gotoAndStop (12);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
gotoAndStop (1);
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 3
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 3)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 3
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 3)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 3
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 495 MovieClip in Frame 3
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 500 MovieClip in Frame 3
onClipEvent (load) {
time = 1;
}
onClipEvent (enterFrame) {
time = time + 1;
if ((_currentframe < 5) && (time > 300)) {
_alpha = (_alpha - 3);
}
if ((_currentframe < 5) && (_alpha < 0)) {
nextFrame();
_alpha = 100;
time = 1;
}
if (_root.enemy2.active == true) {
gotoAndStop (5);
}
}
Instance of Symbol 504 MovieClip "dark" in Frame 3
onClipEvent (load) {
_alpha = 150;
gotoAndStop (4);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
time = time + 1;
if (time > 100) {
gotoAndStop (1);
}
}
Instance of Symbol 508 MovieClip "character" in Frame 3
onClipEvent (load) {
speed = 5;
jumping = false;
gravity = 5;
jumpspeed = 20;
}
onClipEvent (enterFrame) {
if (key.isdown(68) && (!_root.ground.hitTest(_x + 30, _y + 30, true))) {
_x = (_x + speed);
_xscale = 100;
gotoAndStop (2);
_root.arm._yscale = 100;
_root.arm.arm.finger.gotoandstop(1);
if (getDepth() > _root.arm.getDepth()) {
swapDepths(_root.arm);
}
} else if (key.isdown(65) && (!_root.ground.hitTest(_x - 30, _y + 30, true))) {
_x = (_x - speed);
_xscale = -100;
gotoAndStop (2);
_root.arm._yscale = -100;
_root.arm.arm.finger.gotoandstop(2);
if (getDepth() < _root.arm.getDepth()) {
swapDepths(_root.arm);
}
} else {
gotoAndStop (1);
}
if ((!_root.ground.hitTest(_x, _y + 47, true)) && (jumping == false)) {
_y = (_y + gravity);
gravity = gravity + 1;
gotoAndStop (4);
}
if ((key.isdown(87) && (_currentframe != 4)) && (jumping == false)) {
jumping = true;
}
if (jumping == true) {
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
gotoAndStop (3);
}
if (_root.ground.hitTest(_x, _y + 47, true)) {
gravity = 5;
jumping = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 46, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x, _y - 46, true)) {
_y = (_y + 10);
jumpspeed = -1;
}
if (_root.i > 100) {
_root.i = 0;
}
}
Instance of Symbol 537 MovieClip "arm" in Frame 3
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root._ymouse - this._y);
_root.xChange = Math.round(_root._xmouse - this._x);
_rotation = myDegrees;
_x = _root.character._x;
_y = (_root.character._y + 10);
}
Instance of Symbol 539 MovieClip in Frame 3
onClipEvent (load) {
startDrag ("", true);
}
onClipEvent (enterFrame) {
_rotation = _root.arm._rotation;
_yscale = _root.character._xscale;
}
Instance of Symbol 551 MovieClip "hud" in Frame 3
onClipEvent (enterFrame) {
gotoAndStop(_root.arm.arm._currentframe);
if ((railAmmo < 100) && (rail == 1)) {
railAmmo = railAmmo + 0.5;
}
if (_root._currentframe == 2) {
_visible = false;
} else {
_visible = true;
}
if (this.health > 125) {
this.health = 125;
}
if (this.health < 0) {
_root.gotoandstop(2);
}
}
onClipEvent (load) {
pow = 0;
this.health = 100;
if (_root.guns == true) {
railAmmo = 100;
coltAmmo = 1000;
uspAmmo = 1000;
eagleAmmo = 1000;
pythonAmmo = 1000;
m16Ammo = 1000;
g36Ammo = 1000;
m93rAmmo = 1000;
ak47Ammo = 1000;
tek9Ammo = 1000;
uziAmmo = 1000;
g18Ammo = 1000;
railAmmo = 100;
rail = 1;
knife = 0;
lightsaber = 0;
chainsaw = 0;
} else {
coltAmmo = 0;
uspAmmo = 0;
eagleAmmo = 0;
pythonAmmo = 0;
m16Ammo = 0;
g36Ammo = 0;
m93rAmmo = 0;
ak47Ammo = 0;
tek9Ammo = 0;
uziAmmo = 0;
g18Ammo = 0;
railAmmo = 0;
rail = 0;
knife = 0;
lightsaber = 0;
chainsaw = 0;
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 4
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 4)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 4
onClipEvent (load) {
_root.shell._x = -1000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 4
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 4
onClipEvent (load) {
_visible = true;
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 4
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 4)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 556 MovieClip "ground" in Frame 4
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(5);
}
}
Instance of Symbol 494 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 5000);
}
}
Instance of Symbol 565 MovieClip "door" in Frame 5
onClipEvent (load) {
card = false;
}
onClipEvent (enterFrame) {
if ((key.isdown(key.space) && (card == true)) && (hitTest(_root.character))) {
play();
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 5
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 5
onClipEvent (load) {
_visible = true;
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 5
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 5
onClipEvent (load) {
_visible = true;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 5
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 5)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 5
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 5) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 495 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 5
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 5)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 5
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 5)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 569 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemy2._x;
_y = _root.enemy2._y;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.door.card = true;
_visible = false;
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 6
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 1;
dist = 5;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
if (gravity < 20) {
gravity = gravity + 1;
}
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
if ((_x < -300) && (_root.flooricon.time < 550)) {
active = true;
dead = false;
gotoAndStop (1);
_x = (285 + random(200));
_y = -100;
health = 20;
_name = "enemy1";
hat = random(20) + 1;
suit = random(15) + 1;
_root.enemyarm1.gotoandstop(random(4) + 1);
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 6
onClipEvent (load) {
_visible = true;
gotoAndStop(random(4) + 1);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
_x = -400;
} else {
_visible = true;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 6
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 6)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 6
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
gotoAndStop(_root.enemyarm2._currentframe);
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 495 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
gotoAndStop(_root.enemyarm2._currentframe);
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 6
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 6)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 6
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 6)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 6
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 1;
dist = 5;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
if (gravity < 20) {
gravity = gravity + 1;
}
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
if ((_x < -300) && (_root.flooricon.time < 550)) {
active = true;
dead = false;
gotoAndStop (1);
_x = (285 + random(200));
_y = -100;
health = 20;
_root.enemyarm2.gotoandstop(random(4) + 1);
_name = "enemy2";
hat = random(20) + 1;
suit = random(15) + 1;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 6
onClipEvent (load) {
_visible = true;
gotoAndStop(random(4) + 1);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
_x = -400;
} else {
_visible = true;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 585 MovieClip "flooricon" in Frame 6
onClipEvent (load) {
time = 1;
}
onClipEvent (enterFrame) {
time = time + 1;
if (time >= 700) {
_root.character._x = 114.2;
_root.character._y = 330.6;
_root.nextframe();
}
if ((time >= 200) && (time < 400)) {
gotoAndStop (3);
}
if ((time >= 400) && (time < 550)) {
gotoAndStop (4);
}
if ((time >= 550) && (time < 600)) {
gotoAndStop (5);
}
}
Instance of Symbol 565 MovieClip "door" in Frame 7
onClipEvent (load) {
gotoAndPlay (31);
}
Instance of Symbol 599 MovieClip "ground" in Frame 7
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(8);
}
}
Instance of Symbol 494 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 7
onClipEvent (load) {
active = true;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 7
onClipEvent (load) {
_visible = true;
gotoAndStop (3);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 7
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 7)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
if (hitTest(_root.flor2)) {
_root.flor2.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 7
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 7) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 7
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 7)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
if (hitTest(_root.flor2)) {
_root.flor2.play();
removeMovieClip("");
}
}
Instance of Symbol 494 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 504 MovieClip "dark" in Frame 7
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if ((_root.flor1._currentframe > 1) && (_root.flor2._currentframe == 1)) {
gotoAndStop (3);
} else if ((_root.flor1._currentframe == 1) && (_root.flor2._currentframe > 1)) {
gotoAndStop (2);
} else if ((_root.flor1._currentframe > 1) && (_root.flor2._currentframe > 1)) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
_alpha = 100;
}
Instance of Symbol 599 MovieClip "ground" in Frame 8
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(10);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 8
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 8)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 8
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 8
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 8
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 8)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 8
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 8
onClipEvent (load) {
_visible = true;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 495 MovieClip in Frame 8
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 8
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 8)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 8
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 8
onClipEvent (load) {
_visible = true;
_alpha = 100;
gotoAndStop (3);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 183 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (key.isdown(key.space))) {
_root.character._x = 20;
_root.gotoandstop(9);
}
}
Instance of Symbol 607 MovieClip "dark" in Frame 8
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
_alpha = 100;
}
Instance of Symbol 412 MovieClip "bullet" in Frame 9
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 9)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 9
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 9) {
removeMovieClip("");
}
}
Instance of Symbol 610 MovieClip "ground" in Frame 9
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 70;
_root.gotoandstop(10);
}
}
Instance of Symbol 494 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 495 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 495 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 495 MovieClip in Frame 9
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 504 MovieClip "dark" in Frame 9
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_root.flor1._currentframe > 1) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
_alpha = 100;
}
Instance of Symbol 599 MovieClip "ground" in Frame 10
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(11);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 10
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 10)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 10
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 10
onClipEvent (load) {
gotoAndStop (4);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 10
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 10)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 10
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 10
onClipEvent (load) {
_visible = true;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 495 MovieClip in Frame 10
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 10
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 10)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 10
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 10
onClipEvent (load) {
_visible = true;
_alpha = 100;
gotoAndStop (4);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 621 MovieClip "ground" in Frame 11
onClipEvent (enterFrame) {
if ((_root.character._x > 800) && (_root.bosshealth <= 0)) {
_root.character._x = 20;
_root.gotoandstop(12);
}
}
Instance of Symbol 639 MovieClip "boss" in Frame 11
onClipEvent (load) {
_root.bosshealth = 200;
}
onClipEvent (enterFrame) {
if ((_root.bosshealth <= 0) && (die == true)) {
stop();
_visible = false;
headA = new Object();
headA.x = head._x;
headA.y = head._y;
localToGlobal(headA);
xSpot = headA.x;
ySpot = headA.y;
_root.death._x = xSpot;
_root.death._y = ySpot;
_root.death._xscale = facing;
_root.death.play();
_name = "poo";
}
if (_root.bosshealth < 0) {
_root.bosshealth = 0;
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 11
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 11)) {
removeMovieClip("");
}
if (hitTest(_root.boss.head)) {
_root.bosshealth = _root.bosshealth - _root.hud.pow;
_root.boss.head.blood.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.boss.body)) {
_root.bosshealth = _root.bosshealth - _root.hud.pow;
_root.boss.body.blood.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 11
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 11) {
removeMovieClip("");
}
}
Instance of Symbol 664 MovieClip in Frame 12
onClipEvent (enterFrame) {
_x = (_x - 0.5);
}
Instance of Symbol 664 MovieClip in Frame 12
onClipEvent (enterFrame) {
_x = (_x - 0.5);
}
Instance of Symbol 684 MovieClip "ground" in Frame 12
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(13);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 12
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 12)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 12
onClipEvent (load) {
_root.shell._x = -1000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 504 MovieClip "dark" in Frame 12
onClipEvent (load) {
_alpha = 150;
gotoAndStop (4);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
time = time + 1;
if (time > 80) {
gotoAndStop (1);
}
}
Instance of Symbol 664 MovieClip in Frame 13
onClipEvent (enterFrame) {
_x = (_x - 1);
}
Instance of Symbol 664 MovieClip in Frame 13
onClipEvent (enterFrame) {
_x = (_x - 0.5);
}
Instance of Symbol 690 MovieClip "ground" in Frame 13
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(14);
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 13
onClipEvent (load) {
active = true;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 13
onClipEvent (load) {
_visible = true;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 13
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 13)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
if (hitTest(_root.flor2)) {
_root.flor2.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 13
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 13) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 13
onClipEvent (load) {
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 13
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 13)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 664 MovieClip in Frame 14
onClipEvent (enterFrame) {
_x = (_x - 0.5);
}
Instance of Symbol 690 MovieClip "ground" in Frame 14
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(15);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 14
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 14)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 14
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 14
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 14)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 14
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 14
onClipEvent (load) {
_visible = true;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 495 MovieClip in Frame 14
onClipEvent (load) {
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 14
onClipEvent (load) {
_root.dark._alpha = 0;
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 14)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 14
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 14
onClipEvent (load) {
_visible = true;
_alpha = 100;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 696 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.info._currentframe == 1)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (keyPress "<Space>") {
if (hitTest(_root.character)) {
_root.info.play();
}
}
Instance of Symbol 690 MovieClip "ground" in Frame 15
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(16);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 15
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 15)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 15
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 15) {
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_root.enemy1.dead == true) {
_x = _root.enemyarm1.barrelX;
_y = (_root.enemyarm1.barrelY + 20);
_xscale = _root.enemy1._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 15
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 15)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 495 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.enemy2.dead == true) {
_x = _root.enemyarm2.barrelX;
_y = (_root.enemyarm2.barrelY + 20);
_xscale = _root.enemy2._xscale;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (_y < 400)) {
_y = (_y + 2);
}
}
Instance of Symbol 412 MovieClip "enemybullet2" in Frame 15
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm2.barrelX;
_y = _root.enemyarm2.barrelY;
_rotation = _root.enemyarm2._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 15)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 15
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 15
onClipEvent (load) {
_visible = true;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 453 MovieClip "enemy2" in Frame 15
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm2" in Frame 15
onClipEvent (load) {
_visible = true;
gotoAndStop (3);
}
onClipEvent (enterFrame) {
active = _root.enemy2.active;
_x = _root.enemy2._x;
_y = (_root.enemy2._y + 22);
_yscale = _root.enemy2._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy2.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet2", "enemybullet2" + _root.i, _root.i);
}
}
Instance of Symbol 690 MovieClip "ground" in Frame 16
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(17);
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 16
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 16
onClipEvent (load) {
_visible = true;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 16
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 16)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 16
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 16
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 16)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 690 MovieClip "ground" in Frame 17
onClipEvent (enterFrame) {
if (_root.character._x > 800) {
_root.character._x = 20;
_root.gotoandstop(18);
}
}
Instance of Symbol 412 MovieClip "bullet" in Frame 17
onClipEvent (load) {
_root.bullet._x = -1000;
_root.bullet._y = 1000;
timer = 0;
_x = _root.barrelX;
_y = _root.barrelY;
_rotation = _root.gunRot;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
_root.bullet._rotation = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (_root.ground.obj1.hitTest(_x, _y, true)) {
_root.ground.obj1.play();
removeMovieClip("");
}
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 17)) {
removeMovieClip("");
}
if (hitTest(_root.enemy1.head)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy1.body)) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.head)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.enemy2.body)) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.flor1)) {
_root.flor1.play();
removeMovieClip("");
}
}
Instance of Symbol 183 MovieClip "shell" in Frame 17
onClipEvent (load) {
_root.shell._x = -2000;
sounds = 1;
bounces = 1;
rot = random(20) + 1;
gotoAndStop(_root.shellType);
_yscale = _root.character._xscale;
_x = _root.shellX;
_y = _root.shellY;
_rotation = (_root.arm._rotation + _root.arm.arm._rotation);
speed = 10;
if (_root.character._xscale == 100) {
rot = _rotation;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 2) + (random(5) + 1);
} else {
rot = _rotation - 150;
x = ((Math.sin(rot * (Math.PI/180)) * speed) * 1.5) + (random(5) + 1);
}
y = ((Math.cos(rot * (Math.PI/180)) * speed) * -0.5) - (random(5) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
if (y < 20) {
y = y + 1;
}
if (_root.ground.hitTest(_x, _y + 5, true) && (bounces < 4)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
_y = (_y - 7);
y = y * -0.5;
x = x * 0.5;
bounces = bounces + 1;
}
if (_root.ground.hitTest(_x + 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x - 5);
}
if (_root.ground.hitTest(_x - 10, _y, true)) {
if (sounds < 8) {
this.shell.play();
sounds = sounds + 1;
}
x = x * -1;
_x = (_x + 5);
}
if (bounces > 3) {
y = 0;
x = 0;
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = (_y + 1);
}
}
if ((bounces > 1) && (bounces < 4)) {
_rotation = (_rotation + rot);
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 412 MovieClip "enemybullet1" in Frame 17
onClipEvent (load) {
_root.bullet._x = 1000;
timer = 0;
_x = _root.enemyarm1.barrelX;
_y = _root.enemyarm1.barrelY;
_rotation = _root.enemyarm1._rotation;
rot = _rotation + 90;
speed = 30;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
splat = random(4) + 1;
if (splat == 1) {
splatFrame = 2;
} else if (splat == 2) {
splatFrame = 9;
} else if (splat == 3) {
splatFrame = 17;
} else {
splatFrame = 25;
}
}
onClipEvent (enterFrame) {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
if (((timer > 25) || (_root.ground.hitTest(_x, _y, true))) || (_root._currentframe != 17)) {
removeMovieClip("");
}
if (hitTest(_root.character.head)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood1.gotoandplay(splatFrame);
removeMovieClip("");
}
if (hitTest(_root.character.body)) {
_root.hud.health = _root.hud.health - 5;
_root.character.blood2.gotoandplay(splatFrame);
removeMovieClip("");
}
}
Instance of Symbol 453 MovieClip "enemy1" in Frame 17
onClipEvent (load) {
active = false;
dead = false;
health = 20;
hat = random(20) + 1;
suit = random(15) + 1;
speed = 3;
dist = random(100) + 100;
jump = false;
jumpspeed = 20;
gravity = 5;
falling = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (dead == true) {
if (_currentframe != 5) {
gotoAndStop (5);
walking = false;
falling = false;
jumping = false;
_name = noName;
}
} else if (((_x > (_root.character._x + dist)) && (falling == false)) && (!_root.ground.hitTest(_x - 20, _y + 20, true))) {
walking = true;
_x = (_x - speed);
} else if (((_x < (_root.character._x - dist)) && (falling == false)) && (!_root.ground.hitTest(_x + 20, _y + 20, true))) {
walking = true;
_x = (_x + speed);
} else {
gotoAndStop (1);
walking = false;
}
if ((walking == true) && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((walking == false) && (_root.ground.hitTest(_x - 20, _y + 20, true))) {
jump = true;
}
if ((walking == false) && (_root.ground.hitTest(_x + 20, _y + 20, true))) {
jump = true;
}
if (jump == true) {
gotoAndStop (4);
_y = (_y - jumpspeed);
jumpspeed = jumpspeed - 1;
}
if ((!_root.ground.hitTest(_x, _y + 57, true)) && (jump == false)) {
gotoAndStop (3);
falling = true;
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_root.ground.hitTest(_x, _y + 57, true)) {
falling = false;
gravity = 10;
jump = false;
jumpspeed = 20;
}
if (_root.ground.hitTest(_x, _y + 56, true)) {
_y = (_y - 1);
}
if (_root.ground.hitTest(_x + 19, _y + 20, true)) {
_x = (_x - 1);
}
if (_root.ground.hitTest(_x - 19, _y + 20, true)) {
_x = (_x + 1);
}
if (_root.ground.hitTest(_x, _y - 35, true)) {
_y = (_y + 10);
jumpspeed = jumpspeed * -1;
}
if (_root.character._x < _x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (health <= 0) {
dead = true;
}
if ((_root.character._x > 100) || (health < 20)) {
active = true;
}
}
Instance of Symbol 492 MovieClip "enemyarm1" in Frame 17
onClipEvent (load) {
_visible = true;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
active = _root.enemy1.active;
_x = _root.enemy1._x;
_y = (_root.enemy1._y + 22);
_yscale = _root.enemy1._xscale;
if (active == true) {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.character._y - this._y);
_root.xChange = Math.round(_root.character._x - this._x);
_rotation = myDegrees;
}
if (_root.enemy1.dead == true) {
_visible = false;
}
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
barrelX = muzzle.x;
barrelY = muzzle.y;
if (this.gun._currentframe == 2) {
_root.i++;
duplicateMovieClip ("_root.enemybullet1", "enemybullet1" + _root.i, _root.i);
}
}
Instance of Symbol 704 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
gotoAndStop (2);
if (key.isdown(key.space)) {
_root.gotoandstop(19);
}
} else {
gotoAndStop (1);
}
}
Symbol 35 MovieClip Frame 116
_parent.gotoandplay(2);
Symbol 80 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 101 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 101 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Instance of Symbol 122 MovieClip "suit" in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.suit);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.suit);
}
Symbol 150 MovieClip Frame 1
stop();
Instance of Symbol 150 MovieClip "hat" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.hat);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.hat);
}
Symbol 174 Button
on (release) {
_root.gotoandstop(2);
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
_xscale = (random(50) + 80);
_yscale = _xscale;
}
Symbol 196 MovieClip Frame 3
gotoAndPlay (2);
Symbol 255 Button
on (release) {
play();
}
Symbol 256 MovieClip Frame 1
stop();
Instance of Symbol 35 MovieClip in Symbol 256 MovieClip Frame 1
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Instance of Symbol 123 MovieClip in Symbol 256 MovieClip Frame 2
onClipEvent (load) {
this.suit.gotoandstop(3);
}
Instance of Symbol 151 MovieClip in Symbol 256 MovieClip Frame 2
onClipEvent (load) {
this.hat.gotoandstop(14);
}
Instance of Symbol 175 MovieClip in Symbol 256 MovieClip Frame 2
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
lded = _root.getBytesLoaded();
tot = _root.getBytesTotal();
per = (lded / tot) * 100;
_xscale = per;
if (_xscale == 100) {
gotoAndStop (2);
}
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 229
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 232
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 252
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 517
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 520
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 523
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 526
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 529
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 532
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 535
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 538
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 584
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 587
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 590
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 256 MovieClip Frame 593
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 256 MovieClip Frame 623
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 3
gotoAndStop (1);
Instance of Symbol 153 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
if (_parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 290 Button
on (release) {
_root.hat = 1;
}
Symbol 291 Button
on (release) {
_root.hat = 2;
}
Symbol 292 Button
on (release) {
_root.hat = 3;
}
Symbol 293 Button
on (release) {
_root.hat = 4;
}
Symbol 294 Button
on (release) {
_root.hat = 5;
}
Symbol 295 Button
on (release) {
_root.hat = 6;
}
Symbol 296 Button
on (release) {
_root.hat = 7;
}
Symbol 297 Button
on (release) {
_root.hat = 8;
}
Symbol 298 Button
on (release) {
_root.hat = 9;
}
Symbol 299 Button
on (release) {
_root.hat = 10;
}
Symbol 310 Button
on (release) {
_root.hat = 11;
}
Symbol 311 Button
on (release) {
_root.hat = 12;
}
Symbol 312 Button
on (release) {
_root.hat = 13;
}
Symbol 313 Button
on (release) {
_root.hat = 14;
}
Symbol 314 Button
on (release) {
_root.hat = 15;
}
Symbol 315 Button
on (release) {
_root.hat = 16;
}
Symbol 316 Button
on (release) {
_root.hat = 17;
}
Symbol 317 Button
on (release) {
_root.hat = 18;
}
Symbol 318 Button
on (release) {
_root.hat = 19;
}
Symbol 319 Button
on (release) {
_root.hat = 20;
}
Symbol 328 Button
on (release) {
_root.suit = 1;
}
Symbol 329 Button
on (release) {
_root.suit = 2;
}
Symbol 330 Button
on (release) {
_root.suit = 3;
}
Symbol 331 Button
on (release) {
_root.suit = 4;
}
Symbol 332 Button
on (release) {
_root.suit = 5;
}
Symbol 333 Button
on (release) {
_root.suit = 6;
}
Symbol 334 Button
on (release) {
_root.suit = 7;
}
Symbol 335 Button
on (release) {
_root.suit = 8;
}
Symbol 336 Button
on (release) {
_root.suit = 9;
}
Symbol 337 Button
on (release) {
_root.suit = 10;
}
Symbol 343 Button
on (release) {
_root.suit = 11;
}
Symbol 344 Button
on (release) {
_root.suit = 12;
}
Symbol 345 Button
on (release) {
_root.suit = 13;
}
Symbol 346 Button
on (release) {
_root.suit = 14;
}
Symbol 347 Button
on (release) {
_root.suit = 15;
}
Symbol 349 Button
on (release) {
_root.suit = random(15) + 1;
_root.hat = random(20) + 1;
}
Symbol 355 Button
on (release) {
if ((i++) >= 2) {
i = 0;
}
_quality = ["HIGH", "MEDIUM", "LOW"][i];
}
Symbol 361 Button
on (release) {
_root.guns = true;
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 379 Button
on (release) {
_root.menu.gotoandstop(6);
_root.gotoandstop(3);
}
Symbol 384 Button
on (release) {
_root.menu.gotoandstop(2);
}
Symbol 389 Button
on (release) {
_root.menu.gotoandstop(3);
}
Symbol 394 Button
on (release) {
_root.menu.gotoandstop(4);
}
Symbol 399 Button
on (release) {
_root.menu.gotoandstop(1);
}
Symbol 404 Button
on (release) {
_root.menu.gotoandstop(5);
}
Symbol 409 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 29
stop();
Symbol 416 MovieClip Frame 30
gotoAndStop (29);
Instance of Symbol 122 MovieClip "suit" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.suit);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent._parent.suit);
}
Instance of Symbol 150 MovieClip "hat" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.hat);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent._parent.hat);
}
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 2
play();
Symbol 448 MovieClip Frame 8
gotoAndStop (1);
removeMovieClip("");
stop();
Symbol 448 MovieClip Frame 9
play();
Symbol 448 MovieClip Frame 16
gotoAndStop (1);
removeMovieClip("");
stop();
Symbol 448 MovieClip Frame 17
play();
Symbol 448 MovieClip Frame 24
stop();
Symbol 448 MovieClip Frame 25
play();
Symbol 448 MovieClip Frame 32
stop();
Symbol 452 MovieClip Frame 26
_parent._x = -400;
_parent._y = 800;
Symbol 453 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 461 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 467 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 467 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 470 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 470 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 473 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 473 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 473 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 473 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 476 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 476 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 476 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 476 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 480 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 480 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 480 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 98 MovieClip in Symbol 480 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 485 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 485 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 485 MovieClip Frame 6
gotoAndPlay (2);
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 487 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 487 MovieClip Frame 5
gotoAndPlay (2);
Symbol 491 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 491 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 491 MovieClip Frame 4
gotoAndPlay (2);
Symbol 492 MovieClip Frame 1
stop();
Instance of Symbol 461 MovieClip "gun" in Symbol 492 MovieClip Frame 1
onClipEvent (enterFrame) {
fire = random(30) + 1;
if ((fire == 2) && (_parent.active == true)) {
play();
}
}
Instance of Symbol 467 MovieClip "gun" in Symbol 492 MovieClip Frame 2
onClipEvent (enterFrame) {
fire = random(20) + 1;
if ((fire == 2) && (_parent.active == true)) {
play();
}
}
Instance of Symbol 101 MovieClip "gun" in Symbol 492 MovieClip Frame 3
onClipEvent (enterFrame) {
fire = random(30) + 1;
if ((fire == 2) && (_parent.active == true)) {
play();
}
}
Instance of Symbol 470 MovieClip "gun" in Symbol 492 MovieClip Frame 4
onClipEvent (enterFrame) {
fire = random(30) + 1;
if ((fire == 2) && (_parent.active == true)) {
play();
}
}
Instance of Symbol 473 MovieClip "gun" in Symbol 492 MovieClip Frame 5
onClipEvent (enterFrame) {
fire = random(20) + 1;
if ((fire == 2) && (_parent.active == true)) {
play();
}
if (_currentframe > 5) {
gotoAndStop (1);
}
}
Instance of Symbol 461 MovieClip in Symbol 495 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.coltAmmo = _root.hud.coltAmmo + 7;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 467 MovieClip in Symbol 495 MovieClip Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.uspAmmo = _root.hud.uspAmmo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 101 MovieClip in Symbol 495 MovieClip Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.eagleAmmo = _root.hud.eagleAmmo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 470 MovieClip in Symbol 495 MovieClip Frame 4
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.pythonAmmo = _root.hud.pythonAmmo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 473 MovieClip in Symbol 495 MovieClip Frame 5
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.m16Ammo = _root.hud.m16Ammo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 476 MovieClip in Symbol 495 MovieClip Frame 6
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.g36Ammo = _root.hud.g36Ammo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 480 MovieClip in Symbol 495 MovieClip Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.m93rAmmo = _root.hud.m93rAmmo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 485 MovieClip in Symbol 495 MovieClip Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.ak47Ammo = _root.hud.ak47Ammo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 495 MovieClip Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.tek9Ammo = _root.hud.tek9Ammo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 487 MovieClip in Symbol 495 MovieClip Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.uziAmmo = _root.hud.uziAmmo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Instance of Symbol 491 MovieClip in Symbol 495 MovieClip Frame 11
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.g18Ammo = _root.hud.g18Ammo + 15;
_parent._y = 500;
_root.sound.gotoandplay(2);
}
}
Symbol 500 MovieClip Frame 1
stop();
Instance of Symbol 153 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_parent._parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 153 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == 100) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_parent._parent._xscale == 100) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 153 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 153 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == 100) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 153 MovieClip in Symbol 507 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 153 MovieClip in Symbol 507 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._xscale == -100) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 508 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 4
gotoAndPlay (2);
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 8
stop();
Symbol 536 MovieClip Frame 1
if (_root.hud.coltAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
stop();
Instance of Symbol 461 MovieClip in Symbol 536 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.hud.coltAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hud.coltAmmo = _root.hud.coltAmmo - 1;
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 28;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 2
if (_root.hud.uspAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 467 MovieClip in Symbol 536 MovieClip Frame 2
onClipEvent (mouseDown) {
if (_root.hud.uspAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hud.uspAmmo = _root.hud.uspAmmo - 1;
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 25;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 3
if (_root.hud.eagleAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 101 MovieClip in Symbol 536 MovieClip Frame 3
onClipEvent (mouseDown) {
if (_root.hud.eagleAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hud.eagleAmmo = _root.hud.eagleAmmo - 1;
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 50;
_parent._x = _parent._x - 20;
_parent._y = _parent._y - 20;
}
}
Symbol 536 MovieClip Frame 4
if (_root.hud.pythonAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 470 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
shotCount = 0;
}
onClipEvent (mouseDown) {
if (_root.hud.pythonAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hud.pythonAmmo = _root.hud.pythonAmmo - 1;
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
shotCount = shotCount + 1;
_parent._rotation = _parent._rotation - 38;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
num = _root.i;
numPlus = _root.i + 6;
if (shotCount == 6) {
_root.i = num;
while (_root.i < numPlus) {
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
shotCount = 0;
_root.i++;
}
}
}
}
Symbol 536 MovieClip Frame 5
if (_root.hud.m16Ammo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 473 MovieClip in Symbol 536 MovieClip Frame 5
onClipEvent (mouseDown) {
if (_root.hud.m16Ammo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 2;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.m16Ammo < 1) {
gotoAndStop (1);
}
if (((_currentframe == 2) || (_currentframe == 7)) || (_currentframe == 12)) {
_root.hud.m16Ammo = _root.hud.m16Ammo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 6
if (_root.hud.g36Ammo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 476 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (mouseDown) {
if (_root.hud.g36Ammo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 2;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.g36Ammo < 1) {
gotoAndStop (1);
}
if (((_currentframe == 2) || (_currentframe == 5)) || (_currentframe == 8)) {
_root.hud.g36Ammo = _root.hud.g36Ammo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 7
if (_root.hud.m93rAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 480 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (mouseDown) {
if (_root.hud.m93rAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.m93rAmmo < 1) {
gotoAndStop (1);
}
if (((_currentframe == 2) || (_currentframe == 4)) || (_currentframe == 6)) {
_root.hud.m93rAmmo = _root.hud.m93rAmmo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 20;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 8
if (_root.hud.ak47Ammo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 485 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (mouseDown) {
if (_root.hud.ak47Ammo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 2;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.ak47Ammo < 1) {
gotoAndStop (1);
}
if (_currentframe == 3) {
_root.hud.ak47Ammo = _root.hud.ak47Ammo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 5;
}
}
Symbol 536 MovieClip Frame 9
if (_root.hud.tek9Ammo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 196 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (mouseDown) {
if (_root.hud.tek9Ammo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.tek9Ammo < 1) {
gotoAndStop (1);
}
if (_currentframe == 3) {
_root.hud.tek9Ammo = _root.hud.tek9Ammo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - (random(10) + 1);
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 3;
}
}
Symbol 536 MovieClip Frame 10
if (_root.hud.uziAmmo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 487 MovieClip in Symbol 536 MovieClip Frame 10
onClipEvent (mouseDown) {
if (_root.hud.uziAmmo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.uziAmmo < 1) {
gotoAndStop (1);
}
if (_currentframe == 3) {
_root.hud.uziAmmo = _root.hud.uziAmmo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 11
if (_root.hud.g18Ammo < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 491 MovieClip in Symbol 536 MovieClip Frame 11
onClipEvent (mouseDown) {
if (_root.hud.g18Ammo > 0) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.shellType = 1;
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.hud.g18Ammo < 1) {
gotoAndStop (1);
}
if (_currentframe == 3) {
_root.hud.g18Ammo = _root.hud.g18Ammo - 1;
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_root.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.i, _root.i);
_parent._rotation = _parent._rotation - (random(20) + 1);
_parent._x = _parent._x - 10;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 12
if (_root.hud.rail < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 512 MovieClip in Symbol 536 MovieClip Frame 12
onClipEvent (mouseDown) {
if (_root.hud.railAmmo > 99) {
play();
} else {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
}
if (_root.character._xscale == 100) {
_root.gunRot = _root.arm._rotation + _root.arm.arm._rotation;
} else {
_root.gunRot = _root.arm._rotation - _root.arm.arm._rotation;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hud.railAmmo = _root.hud.railAmmo - 100;
_root.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.i, _root.i);
_parent._rotation = _parent._rotation - 20;
_parent._x = _parent._x - 100;
_parent._y = _parent._y - 10;
}
}
Symbol 536 MovieClip Frame 13
if (_root.hud.knife < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 518 MovieClip in Symbol 536 MovieClip Frame 13
onClipEvent (mouseDown) {
play();
}
Symbol 536 MovieClip Frame 14
if (_root.hud.lightsaber < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 529 MovieClip in Symbol 536 MovieClip Frame 14
onClipEvent (mouseDown) {
play();
}
Symbol 536 MovieClip Frame 15
if (_root.hud.chainsaw < 1) {
_root.arm.arm.weapons = _root.arm.arm.weapons + 1;
nextFrame();
}
Instance of Symbol 533 MovieClip "saw" in Symbol 536 MovieClip Frame 15
onClipEvent (load) {
idle = true;
timer = 1;
}
onClipEvent (mouseDown) {
idle = false;
}
onClipEvent (mouseUp) {
idle = true;
}
onClipEvent (enterFrame) {
if (timer > 4) {
timer = 1;
}
if (idle == false) {
_parent._rotation = -(random(30) + 1);
_parent._y = -(random(10) + 1);
play();
} else {
gotoAndStop (1);
if (timer < 2) {
_parent._y = _parent._y + 2.5;
timer = timer + 1;
} else {
_parent._y = _parent._y - 2.5;
timer = timer + 1;
}
}
}
Instance of Symbol 535 MovieClip in Symbol 536 MovieClip Frame 16
onClipEvent (mouseDown) {
play();
}
onClipEvent (enterFrame) {
if (((((_currentframe == 2) || (_currentframe == 3)) || (_currentframe == 9)) || (_currentframe == 10)) && (hittest(_root.enemy1.head))) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood1.play();
}
if (((((_currentframe == 2) || (_currentframe == 3)) || (_currentframe == 9)) || (_currentframe == 10)) && (hittest(_root.enemy1.body))) {
_root.enemy1.health = _root.enemy1.health - _root.hud.pow;
_root.enemy1.blood2.play();
}
if (((((_currentframe == 2) || (_currentframe == 3)) || (_currentframe == 9)) || (_currentframe == 10)) && (hittest(_root.enemy2.head))) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood1.play();
}
if (((((_currentframe == 2) || (_currentframe == 3)) || (_currentframe == 9)) || (_currentframe == 10)) && (hittest(_root.enemy2.body))) {
_root.enemy2.health = _root.enemy2.health - _root.hud.pow;
_root.enemy2.blood2.play();
}
}
Instance of Symbol 536 MovieClip "arm" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
startX = _x;
startY = _y;
weapons = 1;
}
onClipEvent (enterFrame) {
shell = new Object();
shell.x = eject._x;
shell.y = eject._y;
localToGlobal(shell);
_root.shellX = shell.x;
_root.shellY = shell.y;
muzzle = new Object();
muzzle.x = barrel._x;
muzzle.y = barrel._y;
localToGlobal(muzzle);
_root.barrelX = muzzle.x;
_root.barrelY = muzzle.y;
if (_x < startX) {
_x = (_x + 2);
}
if (_y < startY) {
_y = (_y + 2);
}
if (_rotation < 0) {
_rotation = (_rotation + 5);
}
if (_rotation > 0) {
_rotation = 0;
}
if (_rotation < -90) {
_rotation = -90;
}
if (_x < 0) {
_x = 0;
}
if (_y < -30) {
_y = -30;
}
gotoAndStop(weapons);
if (weapons > 15) {
weapons = 0;
}
}
on (keyPress "f") {
weapons = weapons + 1;
}
Symbol 551 MovieClip Frame 1
stop();
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 1
onClipEvent (load) {
_parent.pow = 5;
}
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.coltAmmo;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
_parent.pow = 5;
}
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.uspAmmo;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.eagleAmmo;
}
onClipEvent (load) {
_parent.pow = 10;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 4
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.pythonAmmo;
}
onClipEvent (load) {
_parent.pow = 7;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.m16Ammo;
}
onClipEvent (load) {
_parent.pow = 4;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 6
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.g36Ammo;
}
onClipEvent (load) {
_parent.pow = 5;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 7
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.m93rAmmo;
}
onClipEvent (load) {
_parent.pow = 5;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 8
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.ak47Ammo;
}
onClipEvent (load) {
_parent.pow = 7;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 9
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.tek9Ammo;
}
onClipEvent (load) {
_parent.pow = 4;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 10
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.uziAmmo;
}
onClipEvent (load) {
_parent.pow = 5;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 11
onClipEvent (enterFrame) {
_parent.ammocounter = _parent.g18Ammo;
}
onClipEvent (load) {
_parent.pow = 4;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 12
onClipEvent (load) {
_parent.pow = 100;
}
Instance of Symbol 175 MovieClip in Symbol 551 MovieClip Frame 12
onClipEvent (load) {
_xscale = 50;
stop();
}
Instance of Symbol 175 MovieClip in Symbol 551 MovieClip Frame 12
onClipEvent (load) {
_xscale = (_parent.railAmmo / 2);
_alpha = _parent.railAmmo;
}
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_xscale = (_parent.railAmmo / 2);
_alpha = _parent.railAmmo;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 13
onClipEvent (load) {
_parent.pow = 4;
}
Instance of Symbol 546 MovieClip in Symbol 551 MovieClip Frame 15
onClipEvent (load) {
_parent.pow = 1;
}
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 30
_root.character._x = 400;
_root.gotoandstop(6);
Symbol 585 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 1
stop();
Instance of Symbol 593 MovieClip in Symbol 597 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (random(100) + 1);
}
Symbol 597 MovieClip Frame 3
stop();
Symbol 597 MovieClip Frame 4
gotoAndStop (3);
Symbol 627 MovieClip Frame 1
_name = "body";
Symbol 629 MovieClip Frame 1
_name = "head";
Symbol 639 MovieClip Frame 1
facing = 100;
die = false;
Symbol 639 MovieClip Frame 27
die = true;
Symbol 639 MovieClip Frame 52
attack = random(6) + 1;
if (attack == 1) {
gotoAndPlay (53);
} else if (attack == 3) {
gotoAndPlay (167);
} else {
gotoAndPlay (38);
}
Symbol 639 MovieClip Frame 83
facing = -100;
Symbol 639 MovieClip Frame 101
attack = random(9) + 1;
if (attack == 1) {
gotoAndPlay (102);
} else if (attack == 3) {
gotoAndPlay (133);
} else if (attack == 6) {
gotoAndPlay (222);
} else {
gotoAndPlay (87);
}
Symbol 639 MovieClip Frame 102
die = true;
Symbol 639 MovieClip Frame 119
die = false;
Instance of Symbol 637 MovieClip in Symbol 639 MovieClip Frame 119
onClipEvent (enterFrame) {
if (hittest(_root.character)) {
_root.hud.health = _root.hud.health - 5;
}
}
Symbol 639 MovieClip Frame 126
die = true;
Symbol 639 MovieClip Frame 132
gotoAndPlay (87);
Symbol 639 MovieClip Frame 133
die = true;
Symbol 639 MovieClip Frame 160
facing = 100;
Symbol 639 MovieClip Frame 166
gotoAndPlay (38);
Symbol 639 MovieClip Frame 167
die = true;
Symbol 639 MovieClip Frame 188
die = false;
Instance of Symbol 637 MovieClip in Symbol 639 MovieClip Frame 196
onClipEvent (enterFrame) {
if (hittest(_root.character)) {
_root.hud.health = _root.hud.health - 5;
}
}
Instance of Symbol 637 MovieClip in Symbol 639 MovieClip Frame 200
onClipEvent (load) {
if (hittest(_root.character)) {
_root.hud.health = _root.hud.health - 5;
}
}
Symbol 639 MovieClip Frame 207
die = true;
Symbol 639 MovieClip Frame 221
gotoAndPlay (37);
Symbol 639 MovieClip Frame 222
facing = -100;
die = true;
Symbol 639 MovieClip Frame 243
die = false;
Instance of Symbol 637 MovieClip in Symbol 639 MovieClip Frame 253
onClipEvent (enterFrame) {
if (hittest(_root.character)) {
_root.hud.health = _root.hud.health - 5;
}
}
Instance of Symbol 637 MovieClip in Symbol 639 MovieClip Frame 258
onClipEvent (load) {
if (hittest(_root.character)) {
_root.hud.health = _root.hud.health - 5;
}
}
Symbol 639 MovieClip Frame 267
die = true;
Symbol 639 MovieClip Frame 281
gotoAndPlay (87);
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 108
stop();
Instance of Symbol 494 MovieClip in Symbol 657 MovieClip Frame 108
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Symbol 657 MovieClip Frame 108
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Symbol 657 MovieClip Frame 108
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Instance of Symbol 494 MovieClip in Symbol 657 MovieClip Frame 108
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.hud.health = _root.hud.health + 20;
_y = (_y + 500);
}
}
Symbol 657 MovieClip Frame 109
gotoAndStop (108);
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 14
stop();
Symbol 683 MovieClip Frame 15
gotoAndStop (14);
Instance of Symbol 683 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (key.isdown(key.space))) {
play();
}
}
Symbol 696 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 704 MovieClip Frame 1
stop();
Symbol 713 MovieClip Frame 151
_root.gotoandstop(1);