Frame 1
for (name in _root) {
name.removeMovieClip();
}
Frame 2
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
allBytes = Math.floor(tBytes / 1024);
percentLoaded = Math.floor((lBytes / tBytes) * 100);
loadbar1._xscale = percentLoaded * 2;
percent1.percent.text = ((percentLoaded + "% of ") + allBytes) + "K loaded.";
if (lBytes >= tBytes) {
gotoAndPlay (15);
}
Frame 3
gotoAndPlay (2);
Frame 15
function wait(interval) {
stop();
this.onEnterFrame = function () {
count++;
if (count > interval) {
count = 0;
play();
}
};
}
wait(132);
Frame 17
wait(125);
Frame 19
wait(200);
Frame 21
stop();
this.onEnterFrame = null;
Frame 22
this.onEnterFrame = null;
stop();
layer++;
attachMovie("spindle", "spindle", layer);
layer++;
spindle._x = 300;
spindle._y = 250;
_global.maxX = 700;
_global.minX = 30;
_global.maxY = 300;
_global.minY = 200;
baddiePlace = new Object();
baddiePlace._x = 600;
baddiePlace._y = 200;
headBounce = new Sound();
headBounce.attachSound("hit0");
Symbol 4 MovieClip [zero] Frame 1
gotoAndPlay (2);
Symbol 4 MovieClip [zero] Frame 21
stop();
this.removeMovieClip();
Symbol 7 MovieClip [one] Frame 1
gotoAndPlay (2);
Symbol 7 MovieClip [one] Frame 21
this.removeMovieClip();
Symbol 46 MovieClip Frame 16
gotoAndPlay (1);
Symbol 47 MovieClip [dusty] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if ((Math.abs(_root[bullseye]._x - _x) < 80) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (78);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (78);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HP = 110;
smart = true;
depthDelay = 5;
zigZag = 1;
waitCount = 60;
HPmax = 110;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 10;
speed = 2;
tillAttack = 0;
interval = 80;
bullseye = "spindle";
solid = true;
title = "Dusty";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 47 MovieClip [dusty] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 47 MovieClip [dusty] Frame 13
gotoAndPlay (2);
Symbol 47 MovieClip [dusty] Frame 14
if (HP <= 0) {
gotoAndPlay (96);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 47 MovieClip [dusty] Frame 19
gotoAndPlay (2);
Symbol 47 MovieClip [dusty] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 47 MovieClip [dusty] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 47 MovieClip [dusty] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = null;
Symbol 47 MovieClip [dusty] Frame 48
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (3 * dir));
};
Symbol 47 MovieClip [dusty] Frame 57
if (!hitTarget) {
gotoAndPlay (2);
numHits = 0;
}
response = "hit";
if (hitArea.hitTest(_root.spindle) && (!_root[bullseye].falling)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (2 * dir));
};
Symbol 47 MovieClip [dusty] Frame 62
this.onEnterFrame = null;
response = "fall";
if (hitArea.hitTest(_root[bullseye]) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 47 MovieClip [dusty] Frame 78
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 47 MovieClip [dusty] Frame 95
gotoAndPlay (78);
Symbol 47 MovieClip [dusty] Frame 96
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 47 MovieClip [dusty] Frame 105
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 47 MovieClip [dusty] Frame 114
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (115);
}
};
Symbol 47 MovieClip [dusty] Frame 124
gotoAndPlay (2);
Symbol 47 MovieClip [dusty] Frame 125
shotSpot._y = -50 - (Math.random() * 50);
numShots++;
attackMode = "zigZag";
showHP();
_x = (_x + ((speed + 5) * dir));
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (127);
} else {
gotoAndPlay (96);
}
}
if (numShots > 7) {
gotoAndPlay (96);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 47 MovieClip [dusty] Frame 126
gotoAndPlay (2);
Symbol 47 MovieClip [dusty] Frame 127
lift = 6;
rotation = 24;
if (HP >= (HPmax * _root.spindle.decap)) {
gotoAndPlay (96);
} else {
HP = 0;
showHP();
}
stretch = (Math.random() * 6) - 3;
this.onEnterFrame = function () {
headOff._x = headOff._x + stretch;
headOff._y = headOff._y - lift;
lift = lift - 1;
if (headOff._y >= 0) {
lift = lift * -0.6;
_root.headBounce.start();
headOff._y = 0;
}
headOff._rotation = headOff._rotation + rotation;
rotation = rotation * 0.95;
};
noHit = true;
this.solid = false;
Symbol 47 MovieClip [dusty] Frame 198
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 72 MovieClip [locoRio] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if ((Math.abs(_root[bullseye]._x - _x) < 80) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (69);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (69);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HP = 90;
smart = false;
depthDelay = 5;
zigZag = 1;
waitCount = 60;
HPmax = 90;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 10;
speed = 4;
tillAttack = 0;
interval = 80;
bullseye = "spindle";
solid = true;
title = "Loco Rio";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 72 MovieClip [locoRio] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 72 MovieClip [locoRio] Frame 13
gotoAndPlay (2);
Symbol 72 MovieClip [locoRio] Frame 14
if (HP <= 0) {
gotoAndPlay (87);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 72 MovieClip [locoRio] Frame 19
gotoAndPlay (2);
Symbol 72 MovieClip [locoRio] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 72 MovieClip [locoRio] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 72 MovieClip [locoRio] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = function () {
};
Symbol 72 MovieClip [locoRio] Frame 48
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (4 * dir));
};
Symbol 72 MovieClip [locoRio] Frame 53
if (!hitTarget) {
gotoAndPlay (2);
}
if (hitArea.hitTest(_root[bullseye]) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 72 MovieClip [locoRio] Frame 62
response = "fall";
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 72 MovieClip [locoRio] Frame 68
gotoAndPlay (2);
Symbol 72 MovieClip [locoRio] Frame 69
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 72 MovieClip [locoRio] Frame 86
gotoAndPlay (69);
Symbol 72 MovieClip [locoRio] Frame 87
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 72 MovieClip [locoRio] Frame 96
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 72 MovieClip [locoRio] Frame 105
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (106);
}
};
Symbol 72 MovieClip [locoRio] Frame 115
gotoAndPlay (2);
Symbol 72 MovieClip [locoRio] Frame 118
shotSpot._y = -50 - (Math.random() * 50);
numShots++;
attackMode = "zigZag";
showHP();
_x = (_x + ((speed + 5) * dir));
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (120);
} else {
gotoAndPlay (87);
}
}
if (numShots > 7) {
gotoAndPlay (87);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 72 MovieClip [locoRio] Frame 119
gotoAndPlay (2);
Symbol 72 MovieClip [locoRio] Frame 120
lift = 6;
rotation = 24;
if (HP >= (HPmax * _root.spindle.decap)) {
gotoAndPlay (87);
} else {
HP = 0;
showHP();
}
stretch = (Math.random() * 6) - 3;
this.onEnterFrame = function () {
headOff._x = headOff._x + stretch;
headOff._y = headOff._y - lift;
lift = lift - 1;
if (headOff._y >= 0) {
lift = lift * -0.6;
_root.headBounce.start();
headOff._y = 0;
}
headOff._rotation = headOff._rotation + rotation;
rotation = rotation * 0.95;
};
noHit = true;
this.solid = false;
Symbol 72 MovieClip [locoRio] Frame 191
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 78 MovieClip [chopper] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if ((Math.abs(_root[bullseye]._x - _x) < 80) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (69);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (69);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HP = 100;
smart = false;
depthDelay = 5;
zigZag = 1;
waitCount = 60;
HPmax = 100;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 10;
speed = 3;
tillAttack = 0;
interval = 80;
bullseye = "spindle";
solid = true;
title = "Chopper";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 78 MovieClip [chopper] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 78 MovieClip [chopper] Frame 13
gotoAndPlay (2);
Symbol 78 MovieClip [chopper] Frame 14
if (HP <= 0) {
gotoAndPlay (87);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 78 MovieClip [chopper] Frame 19
gotoAndPlay (2);
Symbol 78 MovieClip [chopper] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 78 MovieClip [chopper] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 78 MovieClip [chopper] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = function () {
};
Symbol 78 MovieClip [chopper] Frame 47
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (4 * dir));
};
Symbol 78 MovieClip [chopper] Frame 52
if (!hitTarget) {
gotoAndPlay (2);
numHits = 0;
}
if (hitArea.hitTest(_root[bullseye]) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 78 MovieClip [chopper] Frame 58
this.onEnterFrame = null;
Symbol 78 MovieClip [chopper] Frame 61
response = "fall";
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
_root.spindle.hitSound();
}
Symbol 78 MovieClip [chopper] Frame 68
gotoAndPlay (2);
Symbol 78 MovieClip [chopper] Frame 69
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 78 MovieClip [chopper] Frame 86
gotoAndPlay (69);
Symbol 78 MovieClip [chopper] Frame 87
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 78 MovieClip [chopper] Frame 96
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 78 MovieClip [chopper] Frame 105
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (106);
}
};
Symbol 78 MovieClip [chopper] Frame 115
gotoAndPlay (2);
Symbol 78 MovieClip [chopper] Frame 116
shotSpot._y = -50 - (Math.random() * 50);
numShots++;
attackMode = "zigZag";
showHP();
_x = (_x + ((speed + 5) * dir));
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (118);
} else {
gotoAndPlay (87);
}
}
if (numShots > 7) {
gotoAndPlay (87);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 78 MovieClip [chopper] Frame 117
gotoAndPlay (2);
Symbol 78 MovieClip [chopper] Frame 118
lift = 6;
rotation = 24;
if (HP >= (HPmax * _root.spindle.decap)) {
gotoAndPlay (87);
} else {
HP = 0;
showHP();
}
stretch = (Math.random() * 6) - 3;
this.onEnterFrame = function () {
headOff._x = headOff._x + stretch;
headOff._y = headOff._y - lift;
lift = lift - 1;
if (headOff._y >= 0) {
_root.headBounce.start();
lift = lift * -0.6;
headOff._y = 0;
}
headOff._rotation = headOff._rotation + rotation;
rotation = rotation * 0.95;
};
noHit = true;
this.solid = false;
Symbol 78 MovieClip [chopper] Frame 189
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 101 MovieClip [jorge] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if (((interval > 10) && (Math.abs(_root[bullseye]._x - _x) < 180)) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
interval = 0;
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
if (Math.abs(_root[bullseye]._x - _x) < 60) {
attackMode = "backOff";
}
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
interval++;
dir = (-1 * (_root[bullseye]._x - _x)) / Math.abs(_root[bullseye]._x - _x);
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 150) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 150) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if (((!xPlace) && (!yPlace)) && (attackMode != "backOff")) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "backOff" :
if (Math.abs(_root[bullseye]._x - _x) < 400) {
_x = (_x - (speed * xPlace));
_y = (_y - (speed * yPlace));
} else {
attackMode = "standOff";
}
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 90)) {
if (Math.random() > 0.5) {
attackMode = "backOff";
} else {
attackMode = "zigZag";
}
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
if (Math.abs(_root[bullseye]._x - _x) > 180) {
_x = (_x + (speed * xPlace));
}
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (70);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (70);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "backOff";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HP = 90;
smart = true;
depthDelay = 5;
zigZag = 1;
waitCount = 60;
HPmax = 90;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 10;
speed = 2;
tillAttack = 0;
interval = 80;
bullseye = "spindle";
solid = true;
title = "Jorge";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 101 MovieClip [jorge] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 101 MovieClip [jorge] Frame 13
gotoAndPlay (2);
Symbol 101 MovieClip [jorge] Frame 14
if (HP <= 0) {
gotoAndPlay (88);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 101 MovieClip [jorge] Frame 19
gotoAndPlay (2);
Symbol 101 MovieClip [jorge] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 101 MovieClip [jorge] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 101 MovieClip [jorge] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = function () {
};
Symbol 101 MovieClip [jorge] Frame 52
response = "hit";
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir;
hitTarget = true;
this.onEnterFrame = function () {
_root[bullseye].dir = dir;
_root[bullseye]._xscale = 100 * dir;
_root[bullseye]._x = _x - (210 * dir);
_root[bullseye]._y = _y;
_root[bullseye].HP = _root[bullseye].HP - 2;
chokeCount++;
if ((chokeCount / 3) == Math.floor(chokeCount / 3)) {
_root[bullseye].gotoAndPlay(response);
}
};
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 101 MovieClip [jorge] Frame 56
if (!hitTarget) {
gotoAndPlay (2);
numHits = 0;
}
Symbol 101 MovieClip [jorge] Frame 65
_root[bullseye].gotoAndPlay("fall");
this.onEnterFrame = null;
Symbol 101 MovieClip [jorge] Frame 70
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 101 MovieClip [jorge] Frame 87
gotoAndPlay (70);
Symbol 101 MovieClip [jorge] Frame 88
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 101 MovieClip [jorge] Frame 97
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 101 MovieClip [jorge] Frame 106
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (107);
}
};
Symbol 101 MovieClip [jorge] Frame 116
gotoAndPlay (2);
Symbol 101 MovieClip [jorge] Frame 119
shotSpot._y = -50 - (Math.random() * 50);
attackMode = "zigZag";
numShots++;
showHP();
_x = (_x + ((speed + 5) * dir));
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (121);
} else {
gotoAndPlay (88);
}
}
if (numShots > 7) {
gotoAndPlay (88);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 101 MovieClip [jorge] Frame 120
gotoAndPlay (2);
Symbol 101 MovieClip [jorge] Frame 121
lift = 6;
rotation = 24;
if (HP >= (HPmax * _root.spindle.decap)) {
gotoAndPlay (88);
} else {
HP = 0;
showHP();
}
stretch = (Math.random() * 6) - 3;
this.onEnterFrame = function () {
headOff._x = headOff._x + stretch;
headOff._y = headOff._y - lift;
lift = lift - 1;
if (headOff._y >= 0) {
_root.headBounce.start();
lift = lift * -0.6;
headOff._y = 0;
}
headOff._rotation = headOff._rotation + rotation;
rotation = rotation * 0.95;
};
noHit = true;
this.solid = false;
Symbol 101 MovieClip [jorge] Frame 192
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 111 MovieClip [gorille] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if ((Math.abs(_root[bullseye]._x - _x) < 80) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (76);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (76);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HPmax = 150;
smart = true;
depthDelay = 5;
HP = 150;
zigZag = 1;
waitCount = 60;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 17;
speed = 2;
tillAttack = 0;
interval = 40;
bullseye = "spindle";
solid = true;
title = "Gorill\u00E9";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 111 MovieClip [gorille] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 111 MovieClip [gorille] Frame 13
gotoAndPlay (2);
Symbol 111 MovieClip [gorille] Frame 14
if (HP <= 0) {
gotoAndPlay (94);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 111 MovieClip [gorille] Frame 19
gotoAndPlay (2);
Symbol 111 MovieClip [gorille] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 111 MovieClip [gorille] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 111 MovieClip [gorille] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = null;
Symbol 111 MovieClip [gorille] Frame 46
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (3 * dir));
};
Symbol 111 MovieClip [gorille] Frame 55
if (!hitTarget) {
gotoAndPlay (2);
numHits = 0;
}
response = "hit";
if (hitArea.hitTest(_root.spindle) && (!_root[bullseye].falling)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (2 * dir));
};
Symbol 111 MovieClip [gorille] Frame 63
this.onEnterFrame = null;
response = "fall";
if (hitArea.hitTest(_root[bullseye]) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 111 MovieClip [gorille] Frame 76
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 111 MovieClip [gorille] Frame 93
gotoAndPlay (76);
Symbol 111 MovieClip [gorille] Frame 94
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (5 * dir));
};
Symbol 111 MovieClip [gorille] Frame 103
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 111 MovieClip [gorille] Frame 112
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (113);
}
};
Symbol 111 MovieClip [gorille] Frame 122
gotoAndPlay (2);
Symbol 111 MovieClip [gorille] Frame 123
shotSpot._y = -50 - (Math.random() * 50);
numShots++;
attackMode = "zigZag";
showHP();
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (125);
} else {
gotoAndPlay (94);
}
}
if (numShots > 7) {
gotoAndPlay (94);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 111 MovieClip [gorille] Frame 124
gotoAndPlay (2);
Symbol 111 MovieClip [gorille] Frame 125
gotoAndPlay (94);
Symbol 111 MovieClip [gorille] Frame 196
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 113 MovieClip [sepillo] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if ((Math.abs(_root[bullseye]._x - _x) < 80) && (Math.abs(_root[bullseye]._y - _y) < 20)) {
gotoAndPlay (44);
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if ((_x == standOffX) && (_y == standOffY)) {
gotoAndPlay (76);
}
if (reWait) {
standOffX = Math.floor((Math.random() * 600) + 50);
standOffY = Math.floor((Math.random() * 100) + 200);
gotoAndPlay (76);
}
if (_x < (standOffX - speed)) {
_x = (_x + (speed * 0.5));
} else if (_x > (standOffX + speed)) {
_x = (_x - (speed * 0.5));
} else {
_x = standOffX;
}
if (_y < (standOffY - speed)) {
_y = (_y + (speed * 0.5));
} else if (_y > (standOffY + speed)) {
_y = (_y - (speed * 0.5));
} else {
_y = standOffY;
}
return;
case "zigZag" :
if (((dir == _root[bullseye].dir) || (Math.abs(_root[bullseye]._y - _y) > 50)) || (Math.abs(_root[bullseye]._x - _x) < 60)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HPmax = 170;
smart = true;
depthDelay = 5;
HP = 170;
zigZag = 1;
waitCount = 60;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 12;
speed = 3;
tillAttack = 0;
interval = 40;
bullseye = "spindle";
solid = true;
title = "Sepillo";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 113 MovieClip [sepillo] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 113 MovieClip [sepillo] Frame 13
gotoAndPlay (2);
Symbol 113 MovieClip [sepillo] Frame 14
if (HP <= 0) {
gotoAndPlay (94);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 113 MovieClip [sepillo] Frame 19
gotoAndPlay (2);
Symbol 113 MovieClip [sepillo] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 113 MovieClip [sepillo] Frame 43
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 113 MovieClip [sepillo] Frame 44
hitTarget = false;
response = "hit";
this.onEnterFrame = null;
Symbol 113 MovieClip [sepillo] Frame 46
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (3 * dir));
};
Symbol 113 MovieClip [sepillo] Frame 55
if (!hitTarget) {
gotoAndPlay (2);
numHits = 0;
}
response = "hit";
if (hitArea.hitTest(_root.spindle) && (!_root[bullseye].falling)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
this.onEnterFrame = function () {
_x = (_x - (2 * dir));
};
Symbol 113 MovieClip [sepillo] Frame 63
this.onEnterFrame = null;
response = "stun";
if (hitArea.hitTest(_root[bullseye]) && (Math.abs(_root[bullseye]._y - _y) < 15)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 113 MovieClip [sepillo] Frame 76
stop();
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = false;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((_x != standOffX) || (_y != standOffY)) {
reWait = false;
gotoAndPlay (2);
}
if ((dir == _root[bullseye].dir) && (waitCount > 50)) {
attackMode = "approach";
}
if (((Math.abs(_root.spindle._x - _x) < 150) && (waitCount > 10)) && (yPlace == 0)) {
waitCount = 0;
reWait = false;
attackMode = "fight";
gotoAndPlay (44);
}
};
Symbol 113 MovieClip [sepillo] Frame 93
gotoAndPlay (76);
Symbol 113 MovieClip [sepillo] Frame 94
noHit = true;
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 113 MovieClip [sepillo] Frame 103
if (HP <= 0) {
gotoAndPlay (20);
}
this.onEnterFrame = eval (null)();
Symbol 113 MovieClip [sepillo] Frame 112
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (113);
}
};
Symbol 113 MovieClip [sepillo] Frame 122
gotoAndPlay (2);
Symbol 113 MovieClip [sepillo] Frame 123
shotSpot._y = -50 - (Math.random() * 50);
attackMode = "zigZag";
numShots++;
showHP();
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (125);
} else {
gotoAndPlay (94);
}
}
if (numShots > 7) {
gotoAndPlay (94);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 113 MovieClip [sepillo] Frame 124
gotoAndPlay (2);
Symbol 113 MovieClip [sepillo] Frame 125
gotoAndPlay (94);
Symbol 113 MovieClip [sepillo] Frame 196
_root.numKilled++;
_root.numBaddies--;
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 118 MovieClip [bloodShot] Frame 5
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha < 10) {
this.removeMovieClip();
}
};
Symbol 170 MovieClip Frame 1
function hitCheck() {
guyShot = false;
for (name in _root) {
if ((((((!guyShot) && (_root[name] != this)) && (!_root[name].noHit)) && (hitArea.hitTest(_root[name]))) && (_root[name].friendFoe == "foe")) && (Math.abs(_root.spindle._y - _root[name]._y) < 25)) {
_root[name].gotoAndPlay(response);
_root[name].HP = _root[name].HP - damage;
guyShot = true;
}
}
}
stop();
Symbol 170 MovieClip Frame 2
response = "fall";
damage = 2;
hitCheck();
this.onEnterFrame = function () {
_parent._x = _parent._x - (6 * _parent.dir);
_parent.kick = true;
};
Symbol 170 MovieClip Frame 6
gotoAndStop (1);
Symbol 170 MovieClip Frame 7
response = "shot";
hitCheck();
damage = 1;
if (_parent.lift < 0) {
_parent.lift = 0;
}
this.onEnterFrame = function () {
_y = (_y - 4);
_parent._x = _parent._x + (8 * _parent.dir);
_parent.shoot = true;
};
Symbol 170 MovieClip Frame 9
hitCheck();
Symbol 170 MovieClip Frame 11
hitCheck();
Symbol 170 MovieClip Frame 13
hitCheck();
Symbol 170 MovieClip Frame 15
this.onEnterFrame = null;
gotoAndStop (1);
Symbol 203 MovieClip Frame 15
stop();
Symbol 205 MovieClip [spindle] Frame 1
function hitSound() {
num = Math.floor(Math.random() * 3);
this["hit" + num].start();
}
function missSound() {
num = Math.floor(Math.random() * 2);
this["miss" + num].start(0.05);
}
function hitCheck() {
guyShot = false;
if (((((currentGuy && (currentGuy.HP > 0)) && (!guyShot)) && (!currentGuy.noHit)) && (hitArea.hitTest(currentGuy))) && (Math.abs(currentGuy._y - _y) < 18)) {
currentGuy.gotoAndPlay(response);
currentGuy.HP = currentGuy.HP - damage;
guyShot = true;
hitSound();
} else {
for (name in _root) {
if ((((((!guyShot) && (_root[name] != this)) && (!_root[name].noHit)) && (hitArea.hitTest(_root[name]))) && (_root[name].friendFoe == "foe")) && (Math.abs(_root[name]._y - _y) < 18)) {
_root[name].gotoAndPlay(response);
_root[name].HP = _root[name].HP - damage;
guyShot = true;
currentGuy = _root[name];
hitSound();
}
}
if (!guyShot) {
missSound();
}
}
}
function hitCheck2() {
guyShot = false;
if (((((currentGuy && (currentGuy.HP > 0)) && (!guyShot)) && (!currentGuy.noHit)) && (hitArea.hitTest(currentGuy))) && (Math.abs(currentGuy._y - _y) < 18)) {
currentGuy.gotoAndPlay(response);
currentGuy.HP = currentGuy.HP - damage;
guyShot = true;
} else {
for (name in _root) {
if ((((((!guyShot) && (_root[name] != this)) && (!_root[name].noHit)) && (hitArea.hitTest(_root[name]))) && (_root[name].friendFoe == "foe")) && (Math.abs(_root[name]._y - _y) < 18)) {
_root[name].gotoAndPlay(response);
_root[name].HP = _root[name].HP - damage;
guyShot = true;
currentGuy = _root[name];
}
}
}
}
function fight() {
if (Key.isDown(39) || (Key.isDown(37))) {
_x = (_x - (1 * dir));
}
if ((!Key.isDown(fightKey)) && (!Key.isDown(shootKey))) {
advance = true;
}
if (Key.isDown(fightKey) && (advance == true)) {
gotoAndPlay(nextHit);
}
if ((Key.isDown(38) && (nextHit != "punch3")) && (nextHit != "punch4")) {
nextHit = "punch3";
}
if ((Key.isDown(shootKey) && (Key.isDown(40))) && (advance == true)) {
gotoAndPlay (216);
} else if (Key.isDown(shootKey) && (advance == true)) {
gotoAndPlay(nextGun);
}
}
function switchMode() {
if (Key.isDown(32)) {
switchCount++;
if (switchCount == 1) {
if (hitMode == "fire") {
_root.stat2.quake.gotoAndPlay(1);
hitMode = "quake";
} else if (hitMode == "quake") {
_root.stat2.fire.gotoAndPlay(1);
hitMode = "fire";
}
}
} else {
switchCount = 0;
}
}
function idle() {
if (carry == true) {
gotoAndPlay (1);
}
noHit = false;
checkBounds();
checkDepth();
if (Key.isDown(pauseKey)) {
pause();
}
if (Key.isDown(hitKey)) {
gotoAndPlay (118);
}
if (Key.isDown(fallKey)) {
gotoAndPlay (125);
}
if (Key.isDown(jumpKey)) {
gotoAndPlay (162);
}
if (Key.isDown(shootKey)) {
gotoAndPlay (94);
}
if (Key.isDown(fightKey)) {
gotoAndPlay (168);
}
if (Key.isDown(39)) {
dir = -1;
gotoAndPlay (83);
}
if (Key.isDown(37)) {
dir = 1;
gotoAndPlay (83);
}
if (Key.isDown(38) || (Key.isDown(40))) {
gotoAndPlay (83);
}
_xscale = (100 * dir);
}
function checkDepth() {
depthCountCheck++;
switchMode();
if ((depthCountCheck / 3) == Math.floor(depthCountCheck / 3)) {
for (name in _root) {
if (currentGuy && ((((_root[name]._x < currentGuy._x) && (_root[name]._x > _x)) && (dir == -1)) || (((_root[name]._x > currentGuy._x) && (_root[name]._x < _x)) && (dir == 1)))) {
currentGuy = _root[name];
}
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
if (_x > _global.maxX) {
if (_root.roll == true) {
_root._x = _root._x - speed;
_root.BG2._x = _root.BG2._x + (speed * 0.8);
_root.solidBG._x = _root.solidBG._x + (speed * 0.95);
_root.stat2._x = _root.stat2._x + speed;
_root.stat1._x = _root.stat1._x + speed;
_root.nmeHP._x = _root.nmeHP._x + speed;
_global.maxX = _global.maxX + speed;
_global.minX = _global.minX + speed;
_root.lives._x = _root.lives._x + speed;
}
_x = _global.maxX;
}
if (_x < _global.minX) {
_x = minX;
}
}
function walk() {
if (carry == true) {
gotoAndPlay (1);
}
checkBounds();
if (Key.isDown(jumpKey)) {
gotoAndPlay (162);
} else if (Key.isDown(fightKey)) {
gotoAndPlay (168);
} else if (Key.isDown(shootKey)) {
gotoAndPlay (94);
} else if (Key.isDown(39) and Key.isDown(38)) {
dir = -1;
_x = (_x + (speed * 0.75));
_y = (_y - (speed * 0.75));
} else if (Key.isDown(39) and Key.isDown(40)) {
dir = -1;
_x = (_x + (speed * 0.75));
_y = (_y + (speed * 0.75));
} else if (Key.isDown(37) and Key.isDown(38)) {
dir = 1;
_x = (_x - (speed * 0.75));
_y = (_y - (speed * 0.75));
} else if (Key.isDown(37) and Key.isDown(40)) {
dir = 1;
_x = (_x - (speed * 0.75));
_y = (_y + (speed * 0.75));
} else if (Key.isDown(39)) {
dir = -1;
_x = (_x + speed);
} else if (Key.isDown(37)) {
dir = 1;
_x = (_x - speed);
} else if (Key.isDown(38)) {
_y = (_y - speed);
} else if (Key.isDown(40)) {
_y = (_y + speed);
} else {
gotoAndPlay (12);
}
_xscale = (100 * dir);
}
function jump() {
checkDepth();
checkBounds();
jumping = true;
if (Key.isDown(shootKey) && (shoot == false)) {
jumpBody.gotoAndPlay("shoot");
}
if (Key.isDown(fightKey) && (kick == false)) {
jumpBody.gotoAndPlay("kick");
}
if (Key.isDown(39) and Key.isDown(38)) {
dir = -1;
_x = (_x + (speed * 0.75));
_y = (_y - (speed * 0.75));
} else if (Key.isDown(39) and Key.isDown(40)) {
dir = -1;
_x = (_x + (speed * 0.75));
_y = (_y + (speed * 0.75));
} else if (Key.isDown(37) and Key.isDown(38)) {
dir = 1;
_x = (_x - (speed * 0.75));
_y = (_y - (speed * 0.75));
} else if (Key.isDown(37) and Key.isDown(40)) {
dir = 1;
_x = (_x - (speed * 0.75));
_y = (_y + (speed * 0.75));
} else if (Key.isDown(39)) {
dir = -1;
_x = (_x + speed);
} else if (Key.isDown(37)) {
dir = 1;
_x = (_x - speed);
} else if (Key.isDown(38)) {
_y = (_y - speed);
} else if (Key.isDown(40)) {
_y = (_y + speed);
}
speed = baseSpeed;
_xscale = (100 * dir);
}
function showHP() {
_root.stat2.hpMask._xscale = (100 * HP) / HPmax;
}
this.onEnterFrame = eval (null)();
lives = 100;
dir = -1;
_xscale = -100;
kick = false;
fallKey = 66;
shootKey = 65;
fightKey = 83;
jumpKey = 68;
hitKey = 67;
HPmax = 250;
HP = 250;
baseSpeed = 12;
speed = baseSpeed;
friendFoe = "spindle";
hit0 = new Sound();
hit1 = new Sound();
hit2 = new Sound();
hit3 = new Sound();
miss0 = new Sound();
miss1 = new Sound();
hit0.attachSound("hit0");
hit1.attachSound("hit1");
hit2.attachSound("hit2");
hit3.attachSound("hit3");
miss0.attachSound("miss0");
miss1.attachSound("miss1");
showHP();
Symbol 205 MovieClip [spindle] Frame 12
this.onEnterFrame = function () {
idle();
currentGuy = null;
};
Symbol 205 MovieClip [spindle] Frame 82
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 83
this.onEnterFrame = function () {
walk();
checkDepth();
};
Symbol 205 MovieClip [spindle] Frame 93
gotoAndPlay (83);
Symbol 205 MovieClip [spindle] Frame 94
this.onEnterFrame = null;
damage = 2;
if (Key.isDown(40)) {
gotoAndPlay (216);
}
Symbol 205 MovieClip [spindle] Frame 99
response = "shot";
damage = 2;
hitCheck2();
this.onEnterFrame = function () {
checkDepth();
if (Key.isDown(38)) {
gotoAndPlay (108);
}
if (Key.isDown(39)) {
dir = -1;
_xscale = (100 * dir);
}
if (Key.isDown(37)) {
dir = 1;
_xscale = (100 * dir);
}
if (!Key.isDown(shootKey)) {
gotoAndPlay (12);
}
};
Symbol 205 MovieClip [spindle] Frame 101
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 107
gotoAndPlay (99);
Symbol 205 MovieClip [spindle] Frame 109
damage = 5;
response = "fall";
hitCheck2();
this.onEnterFrame = function () {
depthCheck();
if (!Key.isDown(38)) {
gotoAndPlay (99);
}
if (!Key.isDown(shootKey)) {
gotoAndPlay (12);
}
};
Symbol 205 MovieClip [spindle] Frame 115
response = "shot";
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 117
gotoAndPlay (109);
Symbol 205 MovieClip [spindle] Frame 118
showHP();
hitSound();
noHit = true;
hits = hits + 1;
if (jumping) {
gotoAndPlay (125);
}
this.onEnterFrame = function () {
_x = (_x + (3 * dir));
checkBounds();
};
Symbol 205 MovieClip [spindle] Frame 124
noHit = false;
carry = false;
if (HP <= 0) {
gotoAndPlay (125);
} else {
gotoAndPlay (12);
}
Symbol 205 MovieClip [spindle] Frame 125
jumping = false;
stun = 0;
noHit = true;
falling = true;
showHP();
this.onEnterFrame = function () {
_x = (_x + (speed * dir));
};
Symbol 205 MovieClip [spindle] Frame 136
this.onEnterFrame = null;
Symbol 205 MovieClip [spindle] Frame 149
noHit = false;
falling = false;
if (HP <= 0) {
gotoAndPlay (150);
} else {
gotoAndPlay (12);
}
Symbol 205 MovieClip [spindle] Frame 150
noHit = true;
this.onEnterFrame = function () {
};
Symbol 205 MovieClip [spindle] Frame 155
lives--;
Symbol 205 MovieClip [spindle] Frame 161
stop();
this.onEnterFrame = function () {
checkBounds();
_alpha = (_alpha - 3);
if (_alpha <= 0) {
if (lives > 0) {
HP = HPmax;
_x = minX;
_y = minY;
_alpha = 100;
gotoAndPlay (1);
_root.lives.gotoAndStop(lives);
} else {
_root.lives.gotoAndStop("zero");
_root.gotoAndPlay("gameOver" + _root.level);
this.removeMovieClip();
}
}
};
Symbol 205 MovieClip [spindle] Frame 162
initY = jumpBody._y;
lift = 10;
this.onEnterFrame = function () {
jump();
jumpBody._y = jumpBody._y - lift;
lift = lift - 1;
if (jumpBody._y >= initY) {
jumpBody._y = initY;
kick = false;
shoot = false;
jumping = false;
gotoAndPlay (12);
}
};
Symbol 205 MovieClip [spindle] Frame 167
stop();
Symbol 205 MovieClip [spindle] Frame 168
this.onEnterFrame = null;
gotoAndPlay (174);
Symbol 205 MovieClip [spindle] Frame 173
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 174
advance = false;
response = "hit";
nextGun = "gunHit1";
nextHit = "punch2";
damage = 3;
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 176
hitCheck();
Symbol 205 MovieClip [spindle] Frame 182
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 183
advance = false;
nextHit = "punch5";
hitCheck();
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 191
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 192
advance = false;
nextHit = "punch4";
nextGun = "punch4";
hitCheck();
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 200
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 201
advance = false;
response = "fall";
hitCheck();
damage = 6;
this.onEnterFrame = function () {
};
Symbol 205 MovieClip [spindle] Frame 215
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 216
advance = false;
hitCheck();
response = "fall";
damage = 3;
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 227
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 228
advance = "false";
nextHit = "punch6";
response = "hit";
hitCheck();
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 237
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 238
advance = "false";
nextHit = "punch3";
hitCheck();
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 247
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 248
advance = "false";
nextGun = "gunHit2";
damage = 4;
response = "hit";
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 250
hitCheck();
Symbol 205 MovieClip [spindle] Frame 256
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 257
advance = "false";
damage = 3;
hitCheck();
nextGun = "gunHit3";
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 265
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 266
advance = "false";
nextGun = "punch3";
nextHit = "punch7";
hitCheck();
this.onEnterFrame = function () {
if (Key.isDown(38)) {
nextGun = "gunHit4";
}
fight();
};
Symbol 205 MovieClip [spindle] Frame 274
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 275
noHit = true;
advance = "false";
response = "shot";
hitCheck2();
damage = 4;
this.onEnterFrame = function () {
_x = (_x + (9 * dir));
};
Symbol 205 MovieClip [spindle] Frame 277
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 279
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 281
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 283
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 285
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 287
response = "fall";
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 289
noHit = false;
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 290
advance = false;
decap = 0.4;
response = "shotDie";
damage = 10;
this.onEnterFrame = function () {
};
Symbol 205 MovieClip [spindle] Frame 295
hitCheck2();
Symbol 205 MovieClip [spindle] Frame 304
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 305
advance = "false";
nextGun = "gunHit5";
nextHit = "punch8";
hitCheck();
this.onEnterFrame = function () {
fight();
};
Symbol 205 MovieClip [spindle] Frame 313
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 314
advance = false;
decap = 0.3;
damage = 8;
response = "shotDie";
hitCheck();
this.onEnterFrame = function () {
};
Symbol 205 MovieClip [spindle] Frame 325
gotoAndPlay (12);
Symbol 205 MovieClip [spindle] Frame 326
jumping = false;
stun = 0;
noHit = true;
falling = true;
showHP();
this.onEnterFrame = function () {
_x = (_x + (speed * dir));
};
Symbol 205 MovieClip [spindle] Frame 337
this.onEnterFrame = null;
Symbol 205 MovieClip [spindle] Frame 350
noHit = false;
falling = false;
if (HP <= 0) {
gotoAndPlay (150);
} else {
gotoAndPlay (12);
}
Symbol 205 MovieClip [spindle] Frame 351
showHP();
hitSound();
if (stun == 1) {
gotoAndPlay (125);
}
noHit = false;
stun = 1;
this.onEnterFrame = function () {
_x = (_x + (1 * dir));
checkBounds();
};
Symbol 205 MovieClip [spindle] Frame 410
noHit = false;
carry = false;
gotoAndPlay (12);
Symbol 232 MovieClip Frame 10
stop();
Symbol 247 MovieClip [smokey] Frame 1
function showHP() {
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
if (_root.nmeHP.nmeHPmask._xscale < 0) {
_root.nmeHP.nmeHPmask._xscale = 0;
}
_root.nmeHP.nmeName.text = title;
}
function punch() {
if (((Math.abs(_root[bullseye]._x - _x) < 180) && (Math.abs(_root[bullseye]._y - _y) < 30)) && (waitToHit > interval)) {
gotoAndPlay (54);
waitToHit = 0;
}
if ((attackMode == "fight") && ((Math.abs(_root[bullseye]._x - _x) > 150) || (Math.abs(_root[bullseye]._y - _y) > 100))) {
attackMode = "approach";
}
}
function attack() {
switchStance++;
_x = (_x + ((speed * goSide) * 3));
_y = (_y + ((speed * goUp) * 3));
if (switchStance > (50 / (speed * 3))) {
goUp = Math.random() - 0.5;
goSide = Math.random() - 0.5;
switchStance = 0;
}
punch();
}
function wander() {
waitToHit++;
if (attackMode != "standOff") {
reWait = true;
}
if ((_root[bullseye]._y + 20) < _y) {
yPlace = -1;
} else if ((_root[bullseye]._y - 20) > _y) {
yPlace = 1;
} else {
yPlace = 0;
}
if ((_root[bullseye]._x + 50) < _x) {
xPlace = -1;
dir = 1;
} else if ((_root[bullseye]._x - 50) > _x) {
xPlace = 1;
dir = -1;
} else {
xPlace = 0;
}
if ((!xPlace) && (!yPlace)) {
attackMode = "fight";
}
_xscale = (100 * dir);
switch (attackMode) {
case "approach" :
approach++;
if ((dir != _root[bullseye].dir) && (Math.abs(_root[bullseye]._x - _x) > 60)) {
attackMode = "zigZag";
}
if (approach >= 50) {
attackMode = "standOff";
approach = 0;
}
_x = (_x + (speed * xPlace));
_y = (_y + (speed * yPlace));
punch();
return;
case "standOff" :
if (dir == _root[bullseye].dir) {
attackMode = "approach";
}
if (reWait) {
gotoAndPlay (112);
}
return;
case "zigZag" :
if (((!smart) || (Math.abs(_y - _root[bullseye]._y) < 25)) || (Math.abs(_x - _root[bullseye]._x) < 150)) {
attackMode = "approach";
}
zig++;
if (zig >= 30) {
zigZag = zigZag * (-1);
zig = 0;
}
_x = (_x + ((speed * 0.75) * xPlace));
if (Math.abs(_y - _root[bullseye]._y) < 25) {
_y = (_y + ((speed * 0.75) * zigZag));
}
punch();
return;
case "fight" :
attack();
return;
default :
attackMode = "approach";
}
}
function checkDepth() {
depthCountCheck++;
if ((depthCountCheck / depthDelay) == Math.floor(depthCountCheck / depthDelay)) {
for (name in _root) {
if (((_root[name].friendFoe != null) && (_root[name].getDepth() < this.getDepth())) && (_root[name]._y > this._y)) {
this.swapDepths(_root[name]);
} else if ((_root[name].getDepth() > this.getDepth()) && (_root[name]._y < this._y)) {
this.swapDepths(_root[name]);
}
}
}
}
function checkBounds() {
if (_root.checkSolids) {
for (name in _root) {
if ((_root[name] != this) && (_root[name].solid)) {
if ((((_x <= _root[name].rightBound) && (_x > _root[name].leftBound)) && (_y > _root[name].topBound)) && (_y < _root[name].bottomBound)) {
if (_y >= (_root[name].bottomBound - speed)) {
_y = (_y + speed);
}
if (_y <= (_root[name].topBound + speed)) {
_y = (_y - speed);
}
if (_x >= (_root[name].rightBound - speed)) {
_x = (_x + speed);
}
if (_x <= (_root[name].leftBound + speed)) {
_x = (_x - speed);
}
}
}
}
}
if (_y < _global.minY) {
_y = minY;
}
if (_y > _global.maxY) {
_y = maxY;
}
}
HP = 90;
smart = true;
depthDelay = 5;
zigZag = 1;
waitCount = 60;
HPmax = 90;
dir = 1;
shotSpot = new Object();
changeUp = 0;
tolerance = 1;
power = 30;
speed = 2;
tillAttack = 0;
interval = 25;
bullseye = "spindle";
solid = true;
title = "Smokey";
friendFoe = "foe";
goUp = (Math.random() * 2) - 1;
goSide = (Math.random() * 2) - 1;
reWait = true;
Symbol 247 MovieClip [smokey] Frame 2
noHit = false;
this.onEnterFrame = function () {
checkDepth();
wander();
checkBounds();
};
Symbol 247 MovieClip [smokey] Frame 13
gotoAndPlay (2);
Symbol 247 MovieClip [smokey] Frame 14
if (HP <= 0) {
gotoAndPlay (161);
}
showHP();
this.onEnterFrame = function () {
checkBounds();
};
Symbol 247 MovieClip [smokey] Frame 19
gotoAndPlay (2);
Symbol 247 MovieClip [smokey] Frame 20
this.onEnterFrame = function () {
};
noHit = true;
this.solid = false;
Symbol 247 MovieClip [smokey] Frame 35
for (name in _root) {
if ((_root[name] != this) && (_root[name].friendFoe == "foe")) {
_root[name].gotoAndPlay("fall");
_root[name].HP = _root[name].HP - 20;
}
}
Symbol 247 MovieClip [smokey] Frame 53
_root.numKilled++;
_root.numBaddies--;
stop();
this.removeMovieClip();
Symbol 247 MovieClip [smokey] Frame 54
hitTarget = false;
response = "fireFall";
this.onEnterFrame = null;
Symbol 247 MovieClip [smokey] Frame 56
this.onEnterFrame = null;
response = "stun";
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 25)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 247 MovieClip [smokey] Frame 58
this.onEnterFrame = null;
response = "stun";
if ((((!hitTarget) && (hitArea.hitTest(_root[bullseye]))) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 25)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 247 MovieClip [smokey] Frame 60
this.onEnterFrame = null;
response = "stun";
if ((((!hitTarget) && (hitArea.hitTest(_root[bullseye]))) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 25)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 247 MovieClip [smokey] Frame 62
this.onEnterFrame = null;
response = "stun";
if ((((!hitTarget) && (hitArea.hitTest(_root[bullseye]))) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 25)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
}
Symbol 247 MovieClip [smokey] Frame 67
noHit = true;
Symbol 247 MovieClip [smokey] Frame 94
noHit = false;
Symbol 247 MovieClip [smokey] Frame 102
this.onEnterFrame = null;
response = "fireFall";
if ((hitArea.hitTest(_root[bullseye]) && (!_root[bullseye].noHit)) && (Math.abs(_root[bullseye]._y - _y) < 25)) {
_root[bullseye].dir = dir * -1;
hitTarget = true;
_root[bullseye].HP = _root[bullseye].HP - power;
_root[bullseye].gotoAndPlay(response);
_root.nmeHP.nmeName.text = title;
_root.nmeHP.nmeHPmask._xscale = (HP / HPmax) * 100;
attackMode = "standOff";
}
Symbol 247 MovieClip [smokey] Frame 111
noHit = false;
gotoAndPlay (2);
Symbol 247 MovieClip [smokey] Frame 112
reWait = false;
this.onEnterFrame = function () {
if (attackMode != "standOff") {
reWait = true;
gotoAndPlay (2);
}
checkDepth();
wander();
waitCount++;
if ((Math.abs(_root.spindle._x - _x) < 180) && (waitCount > 10)) {
waitCount = 0;
attackMode = "fight";
reWait = true;
gotoAndPlay (54);
}
};
Symbol 247 MovieClip [smokey] Frame 160
gotoAndPlay (112);
Symbol 247 MovieClip [smokey] Frame 161
noHit = true;
if (HP <= 0) {
gotoAndPlay (20);
}
showHP();
numShots = 0;
this.onEnterFrame = function () {
_x = (_x + (16 * dir));
};
Symbol 247 MovieClip [smokey] Frame 170
this.onEnterFrame = eval (null)();
Symbol 247 MovieClip [smokey] Frame 179
stop();
downMax = (Math.random() * 40) + 20;
this.onEnterFrame = function () {
downCount++;
if (downCount > downMax) {
downCount = 0;
noHit = false;
this.onEnterFrame = null;
gotoAndPlay (180);
}
};
Symbol 247 MovieClip [smokey] Frame 189
gotoAndPlay (2);
Symbol 247 MovieClip [smokey] Frame 190
shotSpot._y = -50 - (Math.random() * 50);
numShots++;
attackMode = "zigZag";
showHP();
_x = (_x + ((speed + 5) * dir));
attachMovie("bloodShot", "bloodShot" + numShots, numShots, shotSpot);
if (HP <= 0) {
if (Math.random() > 0.75) {
gotoAndPlay (192);
} else {
gotoAndPlay (161);
}
}
if (numShots > 7) {
gotoAndPlay (161);
numShots = 0;
}
this.onEnterFrame = null;
Symbol 247 MovieClip [smokey] Frame 191
gotoAndPlay (2);
Symbol 247 MovieClip [smokey] Frame 192
lift = 6;
rotation = 24;
if (HP >= (HPmax * _root.spindle.decap)) {
gotoAndPlay (161);
} else {
gotoAndPlay (20);
}
Symbol 255 MovieClip Frame 1
gotoAndPlay (2);
Symbol 255 MovieClip Frame 133
stop();
Symbol 261 Button
on (release) {
gotoAndPlay (22);
}
Symbol 269 MovieClip Frame 1
gotoAndPlay (2);
Symbol 269 MovieClip Frame 10
function trails(interval, proddist, andist) {
count++;
if ((count % interval) == 0) {
prodTrail._x = prod._x + proddist;
anTrail._x = an._x - andist;
if (Math.random() > 0.5) {
attachMovie("one", "one" + count, count, anTrail);
} else {
attachMovie("zero", "zero" + count, count, anTrail);
}
if (Math.random() > 0.5) {
attachMovie("one", "one" + count, count + 1, prodTrail);
} else {
attachMovie("zero", "zero" + count, count + 1, prodTrail);
}
}
}
prodTrail = new Object();
anTrail = new Object();
this.onEnterFrame = function () {
trails(2, 40, 60);
};
Symbol 269 MovieClip Frame 45
this.onEnterFrame = null;
Symbol 269 MovieClip Frame 90
this.onEnterFrame = function () {
trails(2, 77, 60);
};
Symbol 269 MovieClip Frame 109
this.onEnterFrame = null;
Symbol 269 MovieClip Frame 110
stop();
Symbol 372 MovieClip Frame 133
gotoAndPlay (71);
Symbol 379 MovieClip Frame 90
gotoAndPlay (21);
Symbol 380 MovieClip Frame 1
gotoAndPlay (2);
Symbol 380 MovieClip Frame 51
stop();
Symbol 381 MovieClip Frame 1
gotoAndPlay (2);
Symbol 381 MovieClip Frame 120
stop();
Symbol 385 Button
on (release) {
gotoAndPlay (22);
}
Symbol 409 Button
on (release) {
layer++;
_root.attachMovie("dusty", "dusty" + layer, _root.layer);
layer++;
}
Symbol 410 Button
on (release) {
layer++;
_root.attachMovie("chopper", "chopper" + layer, _root.layer);
layer++;
}
Symbol 411 Button
on (release) {
layer++;
_root.attachMovie("locoRio", "locoRio" + layer, _root.layer);
layer++;
}
Symbol 412 Button
on (release) {
layer++;
_root.attachMovie("jorge", "jorge" + layer, _root.layer);
layer++;
}
Symbol 413 Button
on (release) {
layer++;
_root.attachMovie("gorille", "gorille" + layer, _root.layer);
layer++;
}
Symbol 416 Button
on (release) {
layer++;
_root.attachMovie("smokey", "smokey" + layer, _root.layer);
layer++;
}
Symbol 417 Button
on (release) {
layer++;
_root.attachMovie("sepillo", "sepillo" + layer, _root.layer);
layer++;
}