Frame 2
stop();
Instance of Symbol 20 MovieClip in Frame 2
on (release) {
_root.gotoAndPlay("Stairfall");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (scaler == 1) {
this._xscale = 100;
this._rotation = this._rotation + 3;
}
if (scaler == 0) {
this._xscale = -100;
this._rotation = this._rotation - 3;
}
if (this._y > 500) {
this._y = -100;
scaler = random(2);
this._x = random(450) + 50;
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(50) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) {
driptime = random(40) + 10;
}
onClipEvent (enterFrame) {
if (this._yscale < driptime) {
this._xscale = this._xscale * 1.01;
this._yscale = this._yscale * 1.01;
} else {
this.play();
}
}
Frame 26
_root.DamageBest = 0;
Instance of Symbol 63 MovieClip "reset" in Frame 26
on (release) {
clear();
_root.play();
_root.erasetheblood = true;
}
on (releaseOutside) {
clear();
_root.play();
_root.erasetheblood = true;
}
onClipEvent (enterFrame) {
if (_root.Damage > _root.DamageBest) {
_root.DamageBest = _root.Damage;
}
}
on (press) {
this.gotoAndStop(3);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (Key.getCode() == 82) {
clear();
_root.play();
_root.erasetheblood = true;
}
}
Instance of Symbol 77 MovieClip in Frame 26
on (rollOver) {
this.play();
}
on (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (Key.getCode() == 82) {
clear();
_root.play();
_root.erasetheblood = true;
}
}
Frame 27
Object.prototype.getFPS = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
numcount = 0;
cumule = 0;
this.createEmptyMovieClip("fps", this.getNextHighestDepth());
fps.onEnterFrame = function () {
numcount++;
currfps = getFPS();
fpps = "FPS. " + currfps;
cumule = cumule + currfps;
fppsavg = "avg. " + (Math.round((cumule / numcount) * 10) / 10);
};
function Vector(x, y) {
this.x = x;
this.y = y;
this.length = Math.sqrt((x * x) + (y * y));
}
function constrain(p0, p1, l) {
var _local4 = 0.025;
var _local9 = p1._x - p0._x;
var _local8 = p1._y - p0._y;
var _local1 = new Vector(_local9, _local8);
var _local5 = (_local1.length - l) / _local1.length;
var _local7 = (_local1.x * 0.5) * _local5;
var _local6 = (_local1.y * 0.5) * _local5;
p1._x = p1._x - (_local7 - _local4);
p1._y = p1._y - _local6;
p0._x = p0._x + (_local7 + _local4);
p0._y = p0._y + _local6;
}
function update() {
var _local3;
var _local2 = 0;
while (_local2 < joints.length) {
this[joints[_local2]].update();
_local2++;
}
}
function collisions() {
var _local2;
var _local6;
var _local5;
var _local4 = false;
var _local3 = 0;
while (_local3 < joints.length) {
_local2 = this[joints[_local3]];
if (_local2.collisions()) {
_local4 = true;
_local6 = _local2._x;
_local5 = _local2._y;
}
_local3++;
}
if (_local4) {
if (!soundplaying) {
var _local7 = new Sound(this);
_local7.onSoundComplete = function () {
soundplaying = false;
};
var _local8 = random(4);
var _local9 = -100 + ((head._x * 200) / 445);
_local7.attachSound("break" + _local8);
_local7.start(0, 0);
_local7.setVolume(75);
_local7.setPan(_local9);
soundplaying = true;
}
Damage = Damage + 10;
drawblood(_local6, _local5);
}
}
function constraints() {
var _local2 = 0;
while (_local2 < 2) {
constrain(lhand, lelbow, 12);
constrain(lelbow, neck, 12);
constrain(rhand, relbow, 12);
constrain(relbow, neck, 12);
constrain(neck, waist, 20);
constrain(lknee, waist, 20);
constrain(lfoot, lknee, 20);
constrain(rknee, waist, 20);
constrain(rfoot, rknee, 20);
constrain(head, neck, 3.5);
_local2++;
}
var _local1 = 0;
while (_local1 < 2) {
constrain(lhand2, lelbow2, 12);
constrain(lelbow2, neck2, 12);
constrain(rhand2, relbow2, 12);
constrain(relbow2, neck2, 12);
constrain(neck2, waist2, 20);
constrain(lknee2, waist2, 20);
constrain(lfoot2, lknee2, 20);
constrain(rknee2, waist2, 20);
constrain(rfoot2, rknee2, 20);
constrain(head2, neck2, 3.5);
_local1++;
}
}
function setup() {
constraints();
var _local2;
var _local3 = 0;
Damage = 0;
while (_local3 < joints.length) {
_local2 = this[joints[_local3]];
_local2.lx = _local2._x;
_local2.ly = _local2._y;
_local3++;
}
}
function drawblood(x, y) {
var _local2;
var _local1;
var _local3 = 0;
while (_local3 <= (random(3) + 3)) {
_local2 = attachMovie("Blood", "Blood" + blooddepth, blooddepth++);
_local2._x = x;
_local2._y = y;
_local1 = attachMovie("BloodB", ("BloodB" + blooddepth) + 1, blooddepth++);
_local1._x = x;
_local1._y = y;
_local3++;
}
}
function drawhead(col) {
var _local4 = 0;
var _local3 = 0;
var _local2 = 7;
head.beginFill(((col == undefined) ? 0 : (col)), 100);
head.moveTo(_local4 + _local2, _local3);
var _local1 = 0;
while (_local1 <= 6.283185) {
head.lineTo(_local4 + (Math.cos(_local1) * _local2), _local3 + (Math.sin(_local1) * _local2));
_local1 = _local1 + 0.069813;
}
head.endFill();
}
function draw(col) {
clear();
lineStyle(5, ((col == undefined) ? 0 : (col)), 100);
moveTo(lhand._x, lhand._y);
lineTo(lelbow._x, lelbow._y);
lineTo(neck._x, neck._y);
lineTo(relbow._x, relbow._y);
lineTo(rhand._x, rhand._y);
moveTo(neck._x, neck._y);
lineTo(waist._x, waist._y);
lineTo(lknee._x, lknee._y);
lineTo(lfoot._x, lfoot._y);
moveTo(waist._x, waist._y);
lineTo(rknee._x, rknee._y);
lineTo(rfoot._x, rfoot._y);
var _local2 = neck._x - head._x;
var _local1 = neck._y - head._y;
head._rotation = (Math.atan2(_local1, _local2) * 180) / 3.141593;
}
function onEnterFrame() {
update();
constraints();
collisions();
draw(ragdollcolor);
}
var dragging = null;
var blooddepth = 0;
var soundplaying = false;
var ragdollcolor = 10;
var joints = new Array("lhand", "lelbow", "rhand", "relbow", "neck", "waist", "lknee", "lfoot", "rknee", "rfoot", "head");
drawhead(ragdollcolor);
setup();
stop();
Instance of Symbol 85 MovieClip "head" in Frame 27
onClipEvent (keyDown) {
}
onClipEvent (enterFrame) {
mooAngle = Math.atan2(-_root.head.ys, -_root.head.xs);
pi = 57.2957795130823;
ArrowAngle = mooAngle * pi;
if ((this._x > 400) && (this._y < 100)) {
_root.arrowPower._rotation = ArrowAngle;
_root.arrowPower._xscale = (_root.head.xs * _root.head.xs) * 2;
_root.arrowPower._yscale = _root.arrowPower._xscale;
}
_root.Damage = Math.round(_root.Damage);
if ((Key.isDown(38) && (this._y < 300)) && (_root.Damage == 0)) {
if (((((((_root.rfoot.hitTest(_root.Ground1) || (_root.lfoot.hitTest(_root.Ground1))) || (_root.rhand.hitTest(_root.Ground1))) || (_root.lhand.hitTest(_root.Ground1))) || (_root.rfoot._y >= 360)) || (_root.lfoot._y >= 360)) || (_root.rhand._y >= 360)) || (_root.lhand._y >= 360)) {
if (this.Inrange == true) {
_root.neck._y = _root.neck._y + -30;
}
if (this.Inrange == false) {
_root.neck._y = _root.neck._y + -10;
}
} else {
_root.neck._y = _root.neck._y + -2;
}
}
if (Key.isDown(40) && (this._y < 300)) {
_y = (_y + 3);
}
if ((Key.isDown(39) && (this._y < 300)) && (_root.Damage == 0)) {
if (((((((_root.rfoot.hitTest(_root.Ground1) || (_root.lfoot.hitTest(_root.Ground1))) || (_root.rhand.hitTest(_root.Ground1))) || (_root.lhand.hitTest(_root.Ground1))) || (_root.rfoot._y >= 360)) || (_root.lfoot._y >= 360)) || (_root.rhand._y >= 360)) || (_root.lhand._y >= 360)) {
_x = (_x + 3);
if (_root.rknee._x > _root.lknee._x) {
}
if (_root.rknee._x < _root.lknee._x) {
}
} else if (cheese < 10) {
_x = (_x + 2);
cheese = cheese + 1;
}
}
if (Key.isDown(37) && (this._y < 300)) {
if (((((((_root.rfoot.hitTest(_root.Ground1) || (_root.lfoot.hitTest(_root.Ground1))) || (_root.rhand.hitTest(_root.Ground1))) || (_root.lhand.hitTest(_root.Ground1))) || (_root.rfoot._y >= 360)) || (_root.lfoot._y >= 360)) || (_root.rhand._y >= 360)) || (_root.lhand._y >= 360)) {
_x = (_x + -3);
if (_root.rknee._x > _root.lknee._x) {
}
if (_root.rknee._x < _root.lknee._x) {
}
} else if (cheese < 10) {
_x = (_x - 2);
cheese = cheese + 1;
}
}
if ((Key.isDown(87) && (this._y < 90)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (load) {
moo = 0;
}
onClipEvent (keyUp) {
if ((Key.getCode() == 37) || (Key.getCode() == 39)) {
cheese = 0;
}
if (Key.getCode() == 87) {
}
if (Key.getCode() == 32) {
_root.Ball.MyVelX = BX;
_root.Ball.MyVelY = BY;
_root.Enemy.EVelX = EX;
_root.Enemy.EVelY = EY;
moo = 0;
slomotime = 0;
}
}
onClipEvent (keyDown) {
if ((Key.getCode() == 32) && (moo == 0)) {
BX = _root.Ball.MyVelX;
BY = _root.Ball.MyVelY;
EX = _root.Enemy.EVelX;
EY = _root.Enemy.EVelY;
moo = 1;
}
if (Key.getCode() == 32) {
slomotime = slomotime + 1;
_root.SLoMo = slomotime;
}
}
Instance of Symbol 86 MovieClip "waist" in Frame 27
onClipEvent (enterFrame) {
if ((Key.isDown(83) && (this._y < 90)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
}
}
Instance of Symbol 86 MovieClip "rhand" in Frame 27
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(65) && (this._y < 90)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 65) {
}
}
Instance of Symbol 86 MovieClip "lhand" in Frame 27
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(68) && (this._y < 90)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 68) {
}
}
Instance of Symbol 86 MovieClip "neck" in Frame 27
onClipEvent (enterFrame) {
if ((Key.isDown(39) && (this._y < 300)) && (_root.Damage == 0)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + 3);
} else {
_x = (_x + 1);
}
}
if (Key.isDown(37) && (this._y < 300)) {
if ((((_root.rfoot._y > 355) || (_root.lfoot._y > 355)) || (_root.rhand._y > 355)) || (_root.lhand._y > 355)) {
_x = (_x + -3);
} else {
_x = (_x + -1);
}
}
}
Instance of Symbol 86 MovieClip "rfoot" in Frame 27
onClipEvent (load) {
moohey = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(90) && (this._y < 130)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 90) {
}
}
Instance of Symbol 86 MovieClip "lfoot" in Frame 27
onClipEvent (load) {
moohey = 0;
_root.Power = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(88) && (this._y < 130)) && (this._x > 400)) {
_x = (_x - 10);
_root.Power = _root.Power + 1;
}
}
onClipEvent (keyDown) {
}
onClipEvent (keyUp) {
if (Key.getCode() == 88) {
}
}
Instance of Symbol 88 MovieClip "Ground10" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 88 MovieClip "Ground9" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall9" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground8" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall8" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground7" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall7" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground6" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall6" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground5" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall5" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground4" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall4" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground3" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall3" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 88 MovieClip "Ground2" in Frame 27
onClipEvent (enterFrame) {
if (((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) {
_root.head._y = this._y - 4;
if (_root.head.ys > 7) {
_root.head.ys = _root.head.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.head.ys;
_root.drawblood(_root.head._x, _root.head._y);
} else {
_root.head.ys = _root.head.ys * -0.95;
}
}
if (((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) {
_root.neck._y = this._y - 4;
if (_root.neck.ys > 7) {
_root.neck.ys = _root.neck.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.neck.ys;
_root.drawblood(_root.neck._x, _root.neck._y);
} else {
_root.neck.ys = _root.neck.ys * -0.95;
}
}
if (((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) {
_root.lelbow._y = this._y - 4;
if (_root.lelbow.ys > 7) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lelbow.ys;
_root.drawblood(_root.lelbow._x, _root.lelbow._y);
} else {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
}
}
if (((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) {
_root.relbow._y = this._y - 4;
if (_root.relbow.ys > 7) {
_root.relbow.ys = _root.relbow.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.relbow.ys;
_root.drawblood(_root.relbow._x, _root.relbow._y);
} else {
_root.relbow.ys = _root.relbow.ys * -0.95;
}
}
if (((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) {
_root.lhand._y = this._y - 4;
if (_root.lhand.ys > 7) {
_root.lhand.ys = _root.lhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lhand.ys;
_root.drawblood(_root.lhand._x, _root.lhand._y);
} else {
_root.lhand.ys = _root.lhand.ys * -0.95;
}
}
if (((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) {
_root.rhand._y = this._y - 4;
if (_root.rhand.ys > 7) {
_root.rhand.ys = _root.rhand.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rhand.ys;
_root.drawblood(_root.rhand._x, _root.rhand._y);
} else {
_root.rhand.ys = _root.rhand.ys * -0.95;
}
}
if (((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) {
_root.waist._y = this._y - 4;
if (_root.waist.ys > 7) {
_root.waist.ys = _root.waist.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.waist.ys;
_root.drawblood(_root.waist._x, _root.waist._y);
} else {
_root.waist.ys = _root.waist.ys * -0.95;
}
}
if (((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) {
_root.lknee._y = this._y - 4;
if (_root.lknee.ys > 7) {
_root.lknee.ys = _root.lknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lknee.ys;
_root.drawblood(_root.lknee._x, _root.lknee._y);
} else {
_root.lknee.ys = _root.lknee.ys * -0.95;
}
}
if (((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) {
_root.rknee._y = this._y - 4;
if (_root.rknee.ys > 7) {
_root.rknee.ys = _root.rknee.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rknee.ys;
_root.drawblood(_root.rknee._x, _root.rknee._y);
} else {
_root.rknee.ys = _root.rknee.ys * -0.95;
}
}
if (((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) {
_root.lfoot._y = this._y - 4;
if (_root.lfoot.ys > 7) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.lfoot.ys;
_root.drawblood(_root.lfoot._x, _root.lfoot._y);
} else {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
}
}
if (((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 4;
if (_root.rfoot.ys > 7) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
if (!_root.soundplaying) {
var sbreak = new Sound(this);
sbreak.onSoundComplete = function () {
_root.soundplaying = false;
};
var rand = random(4);
var pan = (-100 + ((_root.head._x * 200) / 445));
sbreak.attachSound("break" + rand);
sbreak.start(0, 0);
sbreak.setVolume(75);
sbreak.setPan(pan);
_root.soundplaying = true;
}
_root.Damage = _root.Damage - _root.rfoot.ys;
_root.drawblood(_root.rfoot._x, _root.rfoot._y);
} else {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
}
}
}
Instance of Symbol 90 MovieClip "leftWall2" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 92 MovieClip "Ground1" in Frame 27
onClipEvent (enterFrame) {
if ((((_root.head._y >= this._y) && (_root.head._x >= this._x)) && (_root.head._x <= (this._x + this.width))) && (_root.head.ys > 0)) {
_root.head.ys = _root.head.ys * -0.95;
_root.head._y = this._y - 4;
}
if ((((_root.neck._y >= this._y) && (_root.neck._x >= this._x)) && (_root.neck._x <= (this._x + this.width))) && (_root.neck.ys > 0)) {
_root.neck.ys = _root.neck.ys * -0.95;
_root.neck._y = this._y - 4;
}
if ((((_root.lelbow._y >= this._y) && (_root.lelbow._x >= this._x)) && (_root.lelbow._x <= (this._x + this.width))) && (_root.lelbow.ys > 0)) {
_root.lelbow.ys = _root.lelbow.ys * -0.95;
_root.lelbow._y = this._y - 4;
}
if ((((_root.relbow._y >= this._y) && (_root.relbow._x >= this._x)) && (_root.relbow._x <= (this._x + this.width))) && (_root.relbow.ys > 0)) {
_root.relbow.ys = _root.relbow.ys * -0.95;
_root.relbow._y = this._y - 4;
}
if ((((_root.lhand._y >= this._y) && (_root.lhand._x >= this._x)) && (_root.lhand._x <= (this._x + this.width))) && (_root.lhand.ys > 0)) {
_root.lhand.ys = _root.lhand.ys * -0.95;
_root.lhand._y = this._y - 4;
}
if ((((_root.rhand._y >= this._y) && (_root.rhand._x >= this._x)) && (_root.rhand._x <= (this._x + this.width))) && (_root.rhand.ys > 0)) {
_root.rhand.ys = _root.rhand.ys * -0.95;
_root.rhand._y = this._y - 4;
}
if ((((_root.waist._y >= this._y) && (_root.waist._x >= this._x)) && (_root.waist._x <= (this._x + this.width))) && (_root.waist.ys > 0)) {
_root.waist.ys = _root.waist.ys * -0.95;
_root.waist._y = this._y - 4;
}
if ((((_root.lknee._y >= this._y) && (_root.lknee._x >= this._x)) && (_root.lknee._x <= (this._x + this.width))) && (_root.lknee.ys > 0)) {
_root.lknee.ys = _root.lknee.ys * -0.95;
_root.lknee._y = this._y - 4;
}
if ((((_root.rknee._y >= this._y) && (_root.rknee._x >= this._x)) && (_root.rknee._x <= (this._x + this.width))) && (_root.rknee.ys > 0)) {
_root.rknee.ys = _root.rknee.ys * -0.95;
_root.rknee._y = this._y - 4;
}
if ((((_root.lfoot._y >= this._y) && (_root.lfoot._x >= this._x)) && (_root.lfoot._x <= (this._x + this.width))) && (_root.lfoot.ys > 0)) {
_root.lfoot.ys = _root.lfoot.ys * -0.95;
_root.lfoot._y = this._y - 1;
}
if ((((_root.rfoot._y >= this._y) && (_root.rfoot._x >= this._x)) && (_root.rfoot._x <= (this._x + this.width))) && (_root.rfoot.ys > 0)) {
_root.rfoot.ys = _root.rfoot.ys * -0.95;
_root.rfoot._y = this._y - 1;
}
}
Instance of Symbol 90 MovieClip "leftWall1" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Instance of Symbol 90 MovieClip "leftWall10" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.head) && (_root.head.xs > 0)) {
_root.head.xs = _root.head.xs * -0.95;
_root.head._x = this._x - 4;
}
if (this.hitTest(_root.neck) && (_root.neck.xs > 0)) {
_root.neck.xs = _root.neck.xs * -0.95;
_root.neck._x = this._x - 4;
}
if (this.hitTest(_root.lelbow) && (_root.lelbow.xs > 0)) {
_root.lelbow.xs = _root.lelbow.xs * -0.95;
_root.lelbow._x = this._x - 4;
}
if (this.hitTest(_root.relbow) && (_root.relbow.xs > 0)) {
_root.relbow.xs = _root.relbow.xs * -0.95;
_root.relbow._y = this._x - 4;
}
if (this.hitTest(_root.lhand) && (_root.lhand.xs > 0)) {
_root.lhand.xs = _root.lhand.xs * -0.95;
_root.lhand._x = this._x - 4;
}
if (this.hitTest(_root.rhand) && (_root.rhand.xs > 0)) {
_root.rhand.xs = _root.rhand.xs * -0.95;
_root.rhand._x = this._x - 4;
}
if (this.hitTest(_root.lknee) && (_root.lknee.xs > 0)) {
_root.lknee.xs = _root.lknee.xs * -0.95;
_root.lknee._x = this._x - 4;
}
if (this.hitTest(_root.rknee) && (_root.rknee.xs > 0)) {
_root.rknee.xs = _root.rknee.xs * -0.95;
_root.rknee._x = this._x - 4;
}
if (this.hitTest(_root.lfoot) && (_root.lfoot.xs > 0)) {
_root.lfoot.xs = _root.lfoot.xs * -0.95;
_root.lfoot._x = this._x - 4;
}
if (this.hitTest(_root.rfoot) && (_root.rfoot.xs > 0)) {
_root.rfoot.xs = _root.rfoot.xs * -0.95;
_root.rfoot._x = this._yx - 4;
}
if (this.hitTest(_root.waist) && (_root.waist.xs > 0)) {
_root.waist.xs = _root.waist.xs * -0.95;
_root.waist._x = this._x - 4;
}
}
Frame 28
_root.erasetheblood = false;
gotoAndStop (27);
Symbol 5 MovieClip [bloodB] Frame 1
function load() {
_root.Score = _root.Score - 1;
bs = 0;
}
function onEnterFrame() {
if (_root.erasetheblood == true) {
this.removeMovieClip();
}
if (((((((((((((((((((((!this.hitTest(_root.Ground1)) && (!this.hitTest(_root.Ground2))) && (!this.hitTest(_root.Ground3))) && (!this.hitTest(_root.Ground4))) && (!this.hitTest(_root.Ground5))) && (!this.hitTest(_root.Ground6))) && (!this.hitTest(_root.Ground7))) && (!this.hitTest(_root.Ground8))) && (!this.hitTest(_root.Ground9))) && (!this.hitTest(_root.Ground10))) && (!this.hitTest(_root.leftWall1))) && (!this.hitTest(_root.leftWall2))) && (!this.hitTest(_root.leftWall3))) && (!this.hitTest(_root.leftWall4))) && (!this.hitTest(_root.leftWall5))) && (!this.hitTest(_root.leftWall6))) && (!this.hitTest(_root.leftWall7))) && (!this.hitTest(_root.leftWall8))) && (!this.hitTest(_root.leftWall9))) && (!this.hitTest(_root.leftWall10))) && ((this._y + ys) < 360)) {
xs = xs * decay;
_x = (_x + xs);
_y = (_y + ys);
bs = 0;
ys = ys + 0.5;
grr = false;
this._xscale = this._xscale * 0.95;
this._yscale = this._yscale * 0.95;
} else {
bs = bs + 1;
if (bs > 500) {
bs = 0;
}
if ((this._y + ys) >= 360) {
ys = 1;
}
}
if (this._xscale < 1) {
bs = 0;
}
clear();
lineStyle(10, 13369344, 50);
lineTo(xs, ys);
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
if ((_local3 < 1) && ((this._y + ys) >= 360)) {
}
}
var ms = ((Math.random() * 5) + 5);
var a = ((Math.random() * 2) * 3.141593);
var xs = (Math.cos(a) * ms);
var ys = (Math.sin(a) * ms);
var decay = (0.7 + (Math.random() * 0.25));
Symbol 6 MovieClip [blood] Frame 1
function load() {
_root.Score = _root.Score - 1;
bs = 0;
}
function onEnterFrame() {
if (_root.erasetheblood == true) {
this.removeMovieClip();
}
if (((((((((((((((((((((!this.hitTest(_root.Ground1)) && (!this.hitTest(_root.Ground2))) && (!this.hitTest(_root.Ground3))) && (!this.hitTest(_root.Ground4))) && (!this.hitTest(_root.Ground5))) && (!this.hitTest(_root.Ground6))) && (!this.hitTest(_root.Ground7))) && (!this.hitTest(_root.Ground8))) && (!this.hitTest(_root.Ground9))) && (!this.hitTest(_root.Ground10))) && (!this.hitTest(_root.leftWall1))) && (!this.hitTest(_root.leftWall2))) && (!this.hitTest(_root.leftWall3))) && (!this.hitTest(_root.leftWall4))) && (!this.hitTest(_root.leftWall5))) && (!this.hitTest(_root.leftWall6))) && (!this.hitTest(_root.leftWall7))) && (!this.hitTest(_root.leftWall8))) && (!this.hitTest(_root.leftWall9))) && (!this.hitTest(_root.leftWall10))) && ((this._y + ys) < 360)) {
xs = xs * decay;
_x = (_x + xs);
_y = (_y + ys);
bs = 0;
grr = false;
ys = ys + 0.5;
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
} else {
bs = bs + 1;
if (bs > 100) {
bs = 0;
}
if ((((((((((this.hitTest(_root.Ground1) || (this.hitTest(_root.Ground2))) || (this.hitTest(_root.Ground3))) || (this.hitTest(_root.Ground4))) || (this.hitTest(_root.Ground5))) || (this.hitTest(_root.Ground6))) || (this.hitTest(_root.Ground7))) || (this.hitTest(_root.Ground8))) || (this.hitTest(_root.Ground9))) || (this.hitTest(_root.Ground10))) || ((this._y + ys) >= 360)) {
xs = 1;
ys = 1;
}
if (((((((((this.hitTest(_root.leftWall1) || (this.hitTest(_root.leftWall2))) || (this.hitTest(_root.leftWall3))) || (this.hitTest(_root.leftWall4))) || (this.hitTest(_root.leftWall5))) || (this.hitTest(_root.leftWall6))) || (this.hitTest(_root.leftWall7))) || (this.hitTest(_root.leftWall8))) || (this.hitTest(_root.leftWall9))) || (this.hitTest(_root.leftWall10))) {
if (grr == false) {
grr = true;
ys = 1;
}
ys = ys + 0.1;
xs = 0;
}
}
if (this._xscale < 1) {
bs = 0;
}
clear();
lineStyle(7, 16711680, 100);
lineTo(xs, ys);
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
if ((_local3 < 1) && (this._y >= 360)) {
}
}
var ms = ((Math.random() * 5) + 5);
var a = ((Math.random() * 2) * 3.141593);
var xs = (Math.cos(a) * ms);
var ys = (Math.sin(a) * ms);
var decay = (0.77 + (Math.random() * 0.25));
Symbol 20 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
this._xscale = 0.5;
this._yscale = 1;
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 61
this.driptime = random(40) + 10;
this._xscale = 0.5;
this._yscale = 1;
Symbol 63 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
function update() {
if (this.hitTest(_root.Ball)) {
if ((xs != 0) || (ys != 0)) {
_root.Ball.MyVelX = _root.Ball.MyVelX + (xs / 5);
_root.Ball.MyVelY = -10 + (ys / 5);
}
}
if (((((_root.dragging == this) && (_y < 90)) && (_x > 400)) && (xs <= 0)) && (_root.Damage == 0)) {
xs = _root._xmouse - _x;
ys = _root._ymouse - _y;
} else {
if ((!this.hitTest(_root.Enemy)) && (!Key.isDown(32))) {
xs = _x - lx;
ys = _y - ly;
}
if ((!this.hitTest(_root.Enemy)) && (Key.isDown(32))) {
xs = xs * 0.99;
ys = ys * 0.99;
_root.Ball.MyVelX = _root.Ball.MyVelX * 0.99;
_root.Ball.MyVelY = _root.Ball.MyVelY * 0.99;
_root.Enemy.EVelX = _root.Enemy.EVelX * 0.99;
_root.Enemy.EVelY = _root.Enemy.EVelY * 0.99;
}
if (this.hitTest(_root.Enemy) && (_root.EnemyMode == 1)) {
xs = _root.Enemy.EVelX;
ys = _root.Enemy.EVelY;
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
if (this.hitTest(_root.block)) {
xs = 0;
ys = 0;
_y = (_y + (ys - 0.5));
c = true;
}
if (this.hitTest(_root.cursor) && (_root.HIT == true)) {
xs = xs + _root.cursor.MovX;
ys = -20;
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
}
var _local4 = Math.sqrt((xs * xs) + (ys * ys));
if (_local4 > ms) {
xs = xs * (ms / _local4);
ys = ys * (ms / _local4);
}
if (Math.abs(xs) < 1) {
xs = 0;
}
if (Math.abs(ys) < 0.25) {
ys = 0;
}
lx = _x;
ly = _y;
_x = (_x + (xs * 0.98));
_y = (_y + (ys + 0.5));
}
function force() {
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
return((_local3 >= 12) && (_root.dragging != this));
}
function collisions() {
var _local4 = false;
if (this._name != "head") {
if (InTange == true) {
if (_y > 300) {
_y = 300;
} else if (_y < 0) {
}
}
if (Inrange == false) {
if (_y > 360) {
_y = 360;
_local4 = true;
} else if (_y < 0) {
}
}
if (_x > Stage.width) {
_x = Stage.width;
_local4 = true;
} else if (_x < 0) {
_x = 0;
_local4 = true;
}
} else {
if (_root.rfoot._x > _root.lfoot._x) {
legDist = _root.rfoot._x - _root.lfoot._x;
Range = _root.lfoot._x + legDist;
_root.Xreach = _root.head._x - (_root.lfoot._x + (legDist / 2));
}
if (((_root.head._y <= _root.waist._y) && (_root.head._x >= (_root.waist._x - 15))) && (_root.head._x <= (_root.waist._x + 15))) {
Inrange = true;
if (_root.lfoot.hitTest(_root.Ground1) || (_root.rfoot.hitTest(_root.Ground1))) {
_root.head._y = _root.head._y + -4.5;
_root.head._x = _root.head._x + ((_root.waist._x - _root.head._x) / 10);
}
} else {
Inrange = false;
}
if (_root.rfoot._x < _root.lfoot._x) {
legDist = _root.lfoot._x - _root.rfoot._x;
Range = _root.rfoot._x + legDist;
_root.Xreach = _root.head._x - (_root.rfoot._x + (legDist / 2));
}
var _local3 = _width / 2.5;
if (InTange == true) {
if ((_y > (300 - _local3)) && (!Key.isDown(40))) {
_y = (300 - _local3);
}
if ((_y > (330 - _local3)) && (Key.isDown(40))) {
_y = 330;
_root.waist._x = _root.waist._x + (-xs);
} else if (_y < _local3) {
}
}
if (Inrange == false) {
if (_y > (360 - _local3)) {
_y = (360 - _local3);
_local4 = true;
} else if (_y < _local3) {
}
}
if (_x > (Stage.width - _local3)) {
_x = (Stage.width - _local3);
_local4 = true;
} else if (_x < _local3) {
_x = _local3;
_local4 = true;
}
}
if (_local4) {
return(force());
}
return(false);
}
function onPress() {
_root.dragging = this;
}
function onRelease() {
_root.dragging = null;
}
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var ms = 30;
var kl = {};
Key.addListener(kl);
kl.onKeyUp = function () {
var _local5 = Key.getCode();
if (_local5 == 32) {
var _local4 = _x - _root._xmouse;
var _local3 = _y - _root._ymouse;
var _local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local2 < 50) {
_x = (_x + ((_local4 / _local2) * ms));
_y = (_y + ((_local3 / _local2) * ms));
}
}
};
onReleaseOutside = onRelease;
Symbol 86 MovieClip Frame 1
function onKeyUp() {
if (Key.getCode() == 32) {
xs = xs * xs;
ys = ys * ys;
}
}
function load() {
w = 1;
}
function onEnterFrame() {
w = w + 1;
if (w <= 10) {
if (this.hitTest(_root.Ground[w]) && (ys > 0)) {
G = _root.Ground + w;
ys = ys * -0.95;
_y = 1;
c = true;
}
if (this.hitTest(_root.leftWall + w) && (xs > 0)) {
xs = xs * -1;
_x = (_root.leftWall(w)._x - 5);
c = true;
}
}
if (w > 10) {
w = 1;
}
}
function update() {
kneedistX = _root.lknee._x - _root.rknee._x;
kneedistY = _root.lknee._y - _root.rknee._y;
pi = 57.2957795130823;
angle = Math.atan2(kneedistY, kneedistX);
hyp = Math.sqrt((kneedistX * kneedistX) + (kneedistY * kneedistY));
MYANGLE = angle * pi;
if ((hyp < 10) && (hyp > -10)) {
_root.rknee._x = _root.rknee._x - 1;
_root.lknee._x = _root.lknee._x + 1;
}
elbowdistX = _root.lelbow._x - _root.relbow._x;
elbowdistY = _root.lelbow._y - _root.relbow._y;
pi = 57.2957795130823;
angle4 = Math.atan2(elbowdistY, elbowdistX);
hyp4 = Math.sqrt((elbowdistX * elbowdistX) + (elbowdistY * elbowdistY));
MYANGLE4 = angle4 * pi;
if ((hyp4 < 12) && (hyp4 > -12)) {
_root.relbow._x = _root.relbow._x - 1;
_root.lelbow._x = _root.lelbow._x + 1;
}
lfootdistX = _root.lfoot._x - _root.head._x;
lfootdistY = _root.lfoot._y - _root.head._y;
pi = 57.2957795130823;
angle5 = Math.atan2(lfootdistY, lfootdistX);
hyp5 = Math.sqrt((lfootdistX * lfootdistX) + (lfootdistY * lfootdistY));
MYANGLE5 = angle5 * pi;
if ((hyp5 < 30) && (hyp5 > -30)) {
_root.head._y = _root.head._y - 1;
_root.lfoot._y = _root.lfoot._y + 1;
}
rfootdistX = _root.rfoot._x - _root.head._x;
rfootdistY = _root.rfoot._y - _root.head._y;
pi = 57.2957795130823;
angle6 = Math.atan2(rfootdistY, rfootdistX);
hyp6 = Math.sqrt((rfootdistX * rfootdistX) + (rfootdistY * rfootdistY));
MYANGLE6 = angle6 * pi;
if ((hyp6 < 30) && (hyp6 > -30)) {
_root.head._y = _root.head._y - 1;
_root.rfoot._y = _root.rfoot._y + 1;
}
lfootdistX2 = _root.lfoot._x - _root.waist._x;
lfootdistY2 = _root.lfoot._y - _root.waist._y;
pi = 57.2957795130823;
angle7 = Math.atan2(lfootdistY2, lfootdistX2);
hyp7 = Math.sqrt((lfootdistX2 * lfootdistX2) + (lfootdistY2 * lfootdistY2));
MYANGLE7 = angle7 * pi;
if ((hyp7 < 10) && (hyp7 > -10)) {
_root.waist._y = _root.waist._y - 1;
_root.lfoot._y = _root.lfoot._y + 1;
}
rfootdistX2 = _root.rfoot._x - _root.waist._x;
rfootdistY2 = _root.rfoot._y - _root.waist._y;
pi = 57.2957795130823;
angle8 = Math.atan2(rfootdistY2, rfootdistX2);
hyp8 = Math.sqrt((rfootdistX2 * rfootdistX2) + (rfootdistY2 * rfootdistY2));
MYANGLE8 = angle8 * pi;
if ((hyp8 < 10) && (hyp8 > -10)) {
_root.waist._y = _root.waist._y - 1;
_root.rfoot._y = _root.rfoot._y + 1;
}
if (this.hitTest(_root.Ball)) {
if ((xs != 0) || (ys != 0)) {
_root.Ball.MyVelX = _root.Ball.MyVelX + (xs / 10);
_root.Ball.MyVelY = ys / 1;
}
}
if (((((_root.dragging == this) && (_y < 150)) && (_x > 400)) && (xs <= 0)) && (_root.Damage == 0)) {
xs = _root._xmouse - _x;
ys = _root._ymouse - _y;
} else {
if (((!this.hitTest(_root.block)) && (!this.hitTest(_root.Enemy))) && (!Key.isDown(32))) {
xs = _x - lx;
ys = _y - ly;
}
if (((!this.hitTest(_root.block)) && (!this.hitTest(_root.Enemy))) && (Key.isDown(32))) {
xs = xs * 0.99;
ys = ys * 0.99;
_root.Ball.MyVelX = _root.Ball.MyVelX * 0.99;
_root.Ball.MyVelY = _root.Ball.MyVelY * 0.99;
_root.Enemy.EVelX = _root.Enemy.EVelX * 0.99;
_root.Enemy.EVelY = _root.Enemy.EVelY * 0.99;
}
if (this.hitTest(_root.Enemy._x, _root.Enemy._y, false) && (_root.EnemyMode == 1)) {
xs = _root.Enemy.EVelX;
ys = _root.Enemy.EVelY;
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
if ((this.hitTest(_root.block3) && (xs > 0)) && (!this.hitTest(_root.block))) {
xs = xs * -1;
_x = (_root.block3._x - 5);
_y = (_y - 0.5);
c = true;
}
if (this.hitTest(_root.cursor) && (_root.HIT == true)) {
xs = xs + _root.cursor.MovX;
ys = -20;
if (!_root.soundplaying) {
var _local3 = new Sound(this);
_local3.onSoundComplete = function () {
_root.soundplaying = false;
};
var _local5 = random(4);
var _local6 = -100 + ((head._x * 200) / 445);
_local3.attachSound("break" + _local5);
_local3.start(0, 0);
_local3.setVolume(75);
_local3.setPan(_local6);
_root.soundplaying = true;
}
_root.drawblood(_x, _y);
c = true;
}
}
var _local4 = Math.sqrt((xs * xs) + (ys * ys));
if (_local4 > ms) {
xs = xs * (ms / _local4);
ys = ys * (ms / _local4);
}
if (Math.abs(xs) < 1) {
xs = 0;
}
if (Math.abs(ys) < 0.25) {
ys = 0;
}
lx = _x;
ly = _y;
_x = (_x + (xs * 0.98));
_y = (_y + (ys + 0.5));
}
function force() {
var _local3 = Math.sqrt((xs * xs) + (ys * ys));
return((_local3 >= 12) && (_root.dragging != this));
}
function collisions() {
var _local2 = false;
if (this._name != "head") {
if (_y > 360) {
_y = 360;
_local2 = true;
} else if (_y < 0) {
}
if (_x > Stage.width) {
_x = Stage.width;
_local2 = true;
} else if (_x < 0) {
_x = 0;
_local2 = true;
}
} else {
var _local3 = _width / 2.5;
if (_y > (360 - _local3)) {
_y = (360 - _local3);
_local2 = true;
} else if (_y < _local3) {
}
if (_x > (Stage.width - _local3)) {
_x = (Stage.width - _local3);
_local2 = true;
} else if (_x < _local3) {
_x = _local3;
_local2 = true;
}
}
if (_local2) {
return(force());
}
return(false);
}
function onPress() {
_root.dragging = this;
}
function onRelease() {
_root.dragging = null;
}
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var ms = 30;
var kl = {};
Key.addListener(kl);
kl.onKeyUp = function () {
var _local5 = Key.getCode();
if (_local5 == 32) {
var _local4 = _x - _root._xmouse;
var _local3 = _y - _root._ymouse;
var _local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local2 < 50) {
_x = (_x + ((_local4 / _local2) * ms));
_y = (_y + ((_local3 / _local2) * ms));
}
}
};
onReleaseOutside = onRelease;