Frame 1
stop();
Frame 3
stop();
Frame 4
stop();
scene1 = true;
Frame 6
function fixDepth(object) {
var _local1 = object._y;
var _local2 = 260;
var _local3 = (5000 + _local1) - _local2;
object.swapDepths(_local3);
}
function objectDepth(thing) {
var _local3 = thing._y;
var _local4 = 260;
var _local2 = (5000 + _local3) - _local4;
if ((thing._x > 385) && (thing._x < 420)) {
_local2 = _local2 + thing._height;
}
if (((thing._x + thing._width) < 400) && ((thing._x + thing._width) > 385)) {
_local2 = _local2 + thing._height;
}
thing.swapDepths(_local2);
}
function playerMove(any) {
if (moveAll == true) {
if (moveLeft == true) {
any._x = any._x - 5;
}
if (moveRight == true) {
any._x = any._x + 5;
}
if (moveDown == true) {
any._y = any._y + 5;
}
if (moveUp == true) {
any._y = any._y - 5;
}
}
}
function playerMovex(any) {
if (moveAll == true) {
if (moveDown == true) {
any._y = any._y + 5;
}
if (moveUp == true) {
any._y = any._y - 5;
}
}
}
function wallL(wall) {
if (wall.hitTest(_root.player.LEft)) {
_root.player.hitLeft = true;
} else {
_root.player.hitLeft = false;
}
}
function towardsPlayer(ee, sPeed) {
var _local4 = _root.player._x - ee._x;
var _local3 = _root.player._y - ee._y;
var _local5 = Math.atan(Math.abs(_local3) / Math.abs(_local4));
var _local7 = sPeed * Math.cos(_local5);
var _local6 = sPeed * Math.sin(_local5);
if (_local4 > 0) {
ee._x = ee._x + _local7;
}
if (_local4 < 0) {
ee._x = ee._x - _local7;
}
if (_local3 > 0) {
ee._y = ee._y + _local6;
}
if (_local3 < 0) {
ee._y = ee._y - _local6;
}
}
function awayPlayer(ee, sPeed) {
var _local3 = (pL._x + 4) - ee._x;
var _local2 = (pL._y + 4) - ee._y;
var _local4 = Math.atan(Math.abs(_local2) / Math.abs(_local3));
var _local6 = sPeed * Math.cos(_local4);
var _local5 = sPeed * Math.sin(_local4);
if (_local3 > 0) {
ee._x = ee._x - _local6;
}
if (_local3 < 0) {
ee._x = ee._x + _local6;
}
if (_local2 > 0) {
ee._y = ee._y - _local5;
}
if (_local2 < 0) {
ee._y = ee._y + _local5;
}
}
function float(thing, intense, speedY) {
thing.count = thing.count + 1;
var _local2 = intense * Math.cos(thing.count / speedY);
thing._y = thing._y + (_local2 + 0.02);
}
function floatx(thingy, intense, speedY) {
thingy.count3 = thingy.count3 + 1;
var _local2 = intense * Math.sin(thingy.count3 / speedY);
thingy._x = thingy._x + _local2;
}
function pulse(sThing, intense, speedScale) {
sThing.count2++;
sCale = intense * Math.cos(sThing.count2 / speedScale);
sThing._xscale = sThing._xscale + sCale;
sThing._yscale = sThing._yscale + sCale;
}
function rotateToPlayer(EE, x, y) {
var _local1 = pL._x - x;
var _local3 = pL._y - y;
var _local2 = Math.atan(_local3 / _local1) * 57.2957795130823;
if (_local1 < 0) {
_local2 = _local2 + 180;
}
EE._rotation = _local2;
}
function randomDrop(aObject, thisx, thisy) {
var _local2 = random(20);
crap++;
if ((_local2 == 6) || (_local2 == 10)) {
_root.attachMovie("itemAmmo", "itemAmmo" + crap, _root.getNextHighestDepth());
_root["itemAmmo" + crap]._x = thisx;
_root["itemAmmo" + crap]._y = thisy;
}
if ((_local2 == 16) || (_local2 == 18)) {
_root.attachMovie("itemRation", "itemRation" + crap, _root.getNextHighestDepth());
_root["itemRation" + crap]._x = thisx;
_root["itemRation" + crap]._y = thisy;
}
}
function rotateToPlayer(EE, x, y) {
var _local2 = _root.player._x - x;
var _local4 = _root.player._y - y;
var _local3 = Math.atan(_local4 / _local2) * 57.2957795130823;
if (_local2 < 0) {
_local3 = _local3 + 180;
}
EE._rotation = _local3;
}
function rotateToMouse(EE, x, y) {
var _local2 = _root._xmouse - x;
var _local4 = _root._ymouse - y;
var _local3 = Math.atan(_local4 / _local2) * 57.2957795130823;
if (_local2 < 0) {
_local3 = _local3 + 180;
}
EE._rotation = _local3;
}
stop();
crap = 0;
moveLeft = false;
moveRight = false;
moveDown = false;
moveUp = false;
pdepth = 5000;
smokeD = 6000;
guardAlertN = 0;
snipeShoot = false;
scene2once = false;
scene3once = false;
scene4once = false;
scene5once = false;
scene6once = false;
scene7once = false;
smokeVar = 0;
smokeVar1 = 0;
pY = 225;
bN = 0;
b = 0;
eB = 0;
eBD = 9109;
allD = 0;
bulletD = 9100;
moveAll = true;
alert = false;
clean = false;
sneakMusic = true;
ambientMusic = false;
alarmMusic = false;
musicBoss = false;
ration = 1;
key1 = false;
key2 = false;
key3 = false;
gameOver = false;
ammo = 36;
fd = false;
health = 100;
shootSilencer = false;
checkPoint = 6;
this.onEnterFrame = function () {
if (alert == true) {
sneakMusic = false;
alarmMusic = true;
}
if (alert == false) {
alarmMusic = false;
}
if (smokeD > 6150) {
smokeD = 6000;
}
if (smokeVar > 50) {
smokeVar = 0;
}
if (smokeVar1 > 100) {
smokeVar1 = 0;
}
if (eB > 20) {
eB = 0;
}
if (eBD > 9129) {
eBD = 9109;
}
if (bN > 10) {
bN = 0;
}
if (bulletD > 9108) {
bulletD = 9100;
}
};
Symbol 8 MovieClip [loadscreen] Frame 1
this._x = 380;
this._y = 10;
this.onEnterFrame = function () {
_root.moveAll = false;
};
Symbol 8 MovieClip [loadscreen] Frame 25
this.onEnterFrame = function () {
_root.moveAll = true;
};
Symbol 8 MovieClip [loadscreen] Frame 28
_root.moveAll = true;
this.removeMovieClip();
Symbol 10 MovieClip [kill] Frame 5
this.removeMovieClip();
Symbol 12 MovieClip [bullet] Frame 1
speed = 25;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
var _local3 = 0;
while (_local3 <= 22) {
if (this.hitTest(_root["box" + _local3])) {
this.removeMovieClip();
}
_local3++;
}
if (faceUp == true) {
this._y = this._y - speed;
}
if (faceDown == true) {
this._y = this._y + speed;
}
if (faceRight == true) {
this._x = this._x + speed;
}
if (faceLeft == true) {
this._x = this._x - speed;
}
}
};
Symbol 14 MovieClip [eBullet] Frame 1
speed = 25;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
if (_root.moveAll == true) {
_root.playerMove(this);
var _local3 = 0;
while (_local3 <= 22) {
if (this.hitTest(_root["box" + _local3])) {
this.removeMovieClip();
}
_local3++;
}
if (this.hitTest(_root.player) || (this.hitTest(_root.player.DOwn))) {
_root.health = _root.health - 5;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
this.removeMovieClip();
}
if (faceUp == true) {
this._y = this._y - speed;
}
if (faceDown == true) {
this._y = this._y + speed;
}
if (faceRight == true) {
this._x = this._x + speed;
}
if (faceLeft == true) {
this._x = this._x - speed;
}
}
};
Symbol 16 MovieClip [wall] Frame 1
_root.allD++;
d = _root.allD;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
_root.objectDepth(this);
};
Symbol 30 MovieClip [rationInvent] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.ration > 0) {
this.gotoAndStop(2);
}
if (_root.ration == 0) {
this.gotoAndStop(1);
}
};
Symbol 36 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.ration > 0) {
this.gotoAndStop(2);
}
if (_root.ration <= 0) {
this.gotoAndStop(1);
}
};
Symbol 41 MovieClip [smoke] Frame 1
this._x = x;
this._y = y;
numb = random(2);
numb2 = random(2);
x1 = random(4) + 1;
y1 = random(4) + 1;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
if (numb == 1) {
this._x = this._x + x1;
}
if (numb == 0) {
this._x = this._x - x1;
}
if (numb2 == 0) {
this._y = this._y - y1;
}
if (numb2 == 1) {
this._y = this._y + y1;
}
}
};
Symbol 41 MovieClip [smoke] Frame 8
this.removeMovieClip();
Symbol 42 MovieClip [found!] Frame 22
this.removeMovieClip();
Symbol 44 MovieClip [soundUse] Frame 43
this.removeMovieClip();
Symbol 46 MovieClip [soundSilencer] Frame 8
this.removeMovieClip();
Symbol 48 MovieClip [soundGunEmpty] Frame 3
this.removeMovieClip();
Symbol 50 MovieClip [soundKnife] Frame 8
this.removeMovieClip();
Symbol 52 MovieClip [soundGunshot] Frame 11
this.removeMovieClip();
Symbol 54 MovieClip [soundBHit] Frame 11
this.removeMovieClip();
Symbol 56 MovieClip [soundAmmo] Frame 12
this.removeMovieClip();
Symbol 58 MovieClip [soundAlHit] Frame 11
this.removeMovieClip();
Symbol 61 MovieClip [enemyDie] Frame 1
numb = random(2);
numb2 = random(2);
x1 = random(6) + 1;
y1 = random(6) + 1;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
if (numb == 1) {
this._x = this._x + x1;
}
if (numb == 0) {
this._x = this._x - x1;
}
if (numb2 == 0) {
this._y = this._y - y1;
}
if (numb2 == 1) {
this._y = this._y + y1;
}
}
};
Symbol 61 MovieClip [enemyDie] Frame 10
this.removeMovieClip();
Symbol 74 MovieClip [eleg] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 85 MovieClip [eleg2] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 88 MovieClip [eSight] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.player.DOwn) || (this.hitTest(_root.player.Up))) {
if (_root.alert == false) {
_root.attachMovie("found!", "found!", _root.getNextHighestDepth());
}
_root.alert = true;
_parent._parent.playerSight = true;
}
if ((this.hitTest(_root.player.DOwn) == false) && (this.hitTest(_root.player.Up) == false)) {
_parent._parent.playerSight = false;
}
};
Symbol 90 MovieClip [ekill] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.player.kill)) {
var _local4 = 0;
while (_local4 < 8) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("enemyDie", "enemyDie" + _root.smokeVar, _root.smokeD);
_root["enemyDie" + _root.smokeVar]._x = _parent._parent.x - 15;
_root["enemyDie" + _root.smokeVar]._y = _parent._parent.y;
_local4++;
}
_parent._parent.remove = true;
_root.attachMovie("soundBHit", "soundBHit", _root.getNextHighestDepth());
}
var _local5 = 0;
while (_local5 <= 11) {
if (this.hitTest(_root["bullet" + _local5])) {
_root.attachMovie("soundBHit", "soundBHit", _root.getNextHighestDepth());
_root["bullet" + _local5].removeMovieClip();
var _local4 = 0;
while (_local4 < 8) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("enemyDie", "enemyDie" + _root.smokeVar, _root.smokeD);
_root["enemyDie" + _root.smokeVar]._x = _parent._parent.x - 15;
_root["enemyDie" + _root.smokeVar]._y = _parent._parent.y;
_local4++;
}
_parent._parent.remove = true;
}
_local5++;
}
};
Symbol 102 MovieClip [eleg4] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 110 MovieClip [eleg3] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 127 MovieClip [eleg5] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
}
if (_parent._parent.walking == false) {
this.gotoAndStop(1);
}
};
Symbol 134 MovieClip [eleg6] Frame 1
this.onEnterFrame = function () {
if (_parent._parent.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 138 MovieClip [tankmen] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent.faceUp == true) {
this.gotoAndStop(1);
_parent._xscale = 100;
}
if (_parent._parent.faceDown == true) {
this.gotoAndStop(3);
_parent._xscale = 100;
}
if (_parent._parent.faceRight == true) {
this.gotoAndStop(2);
_parent._xscale = 100;
}
if (_parent._parent.faceLeft == true) {
_parent._xscale = 100;
this.gotoAndStop(4);
}
};
Symbol 139 MovieClip [guardi] Frame 1
this.onEnterFrame = function () {
x = _parent._x;
y = _parent._y;
if (_parent.walking == true) {
walking = true;
} else {
walking = false;
}
if (playerSight == true) {
_parent.playerSight = true;
} else {
_parent.playerSight = false;
}
if (remove == true) {
_parent.remove = true;
}
};
Symbol 141 MovieClip [eTestUp] Frame 1
this.onEnterFrame = function () {
var _local4 = 0;
while (_local4 < 23) {
if (this.hitTest(_root["box" + _local4])) {
_parent.hitU = true;
}
_local4++;
}
};
Symbol 143 MovieClip [eTestDown] Frame 1
this.onEnterFrame = function () {
var _local4 = 0;
while (_local4 < 23) {
if (this.hitTest(_root["box" + _local4])) {
_parent.hitD = true;
}
_local4++;
}
};
Symbol 145 MovieClip [eTestLeft] Frame 1
this.onEnterFrame = function () {
var _local4 = 0;
while (_local4 < 23) {
if (this.hitTest(_root["box" + _local4])) {
_parent.hitL = true;
}
_local4++;
}
};
Symbol 147 MovieClip [eTestRight] Frame 1
this.onEnterFrame = function () {
var _local4 = 0;
while (_local4 < 23) {
if (this.hitTest(_root["box" + _local4])) {
_parent.hitR = true;
}
_local4++;
}
};
Symbol 148 MovieClip [guardAlert] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 70;
walk2timer = 70;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 150 MovieClip [smoke2] Frame 1
this._x = x;
this._y = y;
numb = random(2);
numb2 = random(2);
x1 = random(4) + 1;
y1 = random(4) + 1;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
if (numb == 1) {
this._x = this._x + x1;
}
if (numb == 0) {
this._x = this._x - x1;
}
if (numb2 == 0) {
this._y = this._y - y1;
}
if (numb2 == 1) {
this._y = this._y + y1;
}
}
};
Symbol 150 MovieClip [smoke2] Frame 14
this.removeMovieClip();
Symbol 152 MovieClip [soundwhoosh] Frame 4
this.removeMovieClip();
Symbol 154 MovieClip [snipeShot] Frame 29
this.removeMovieClip();
Symbol 159 MovieClip [finalbossShotanimation] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.fire1 == true) {
this.play();
}
};
Symbol 159 MovieClip [finalbossShotanimation] Frame 2
this.onEnterFrame = function () {
if (_root.finalBoss.fire1 == false) {
this.gotoAndStop(1);
}
};
Symbol 159 MovieClip [finalbossShotanimation] Frame 56
_root.health = _root.health - 10;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
Symbol 161 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.fire2 == true) {
this.play();
}
};
Symbol 161 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.finalBoss.fire2 == false) {
this.gotoAndStop(1);
}
};
Symbol 161 MovieClip Frame 56
_root.health = _root.health - 10;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
Symbol 164 MovieClip [finalBossplayer] Frame 1
health = 125;
Symbol 167 MovieClip [playerHit] Frame 6
this.removeMovieClip();
Symbol 168 MovieClip [soundM16] Frame 15
this.removeMovieClip();
Symbol 171 MovieClip [shootflash] Frame 4
this.removeMovieClip();
Symbol 174 MovieClip [smoke3] Frame 1
this._x = x;
this._y = y;
y1 = 1;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
this._y = this._y - y1;
}
};
Symbol 174 MovieClip [smoke3] Frame 13
this.removeMovieClip();
Symbol 185 MovieClip [boucyCodec] Frame 1
h = this._height;
timer = random(20);
this.onEnterFrame = function () {
timer--;
this._height = this._height - 2;
if (timer <= 0) {
if (this._height < (h - 60)) {
this._height = this._height + random(60);
timer = random(20);
}
}
};
Symbol 193 MovieClip [codecFlash] Frame 1
c = 140;
l = 0;
this.onEnterFrame = function () {
if (l > 1) {
l = 0;
}
c--;
if (c <= 0) {
l++;
c = 140;
}
if (l == 0) {
this._y++;
}
if (l == 1) {
this._y--;
}
};
Symbol 202 Button [Next]
on (press) {
this.nextFrame();
}
Symbol 206 Button [Next]
on (press) {
this.play();
}
Symbol 212 MovieClip [cutscene2] Frame 1
_root.moveAll = false;
Symbol 212 MovieClip [cutscene2] Frame 41
stop();
Symbol 212 MovieClip [cutscene2] Frame 57
_root.moveAll = true;
_root.sneakMusic = false;
_root.foundMusic = false;
_root.ambientMusic = true;
Symbol 212 MovieClip [cutscene2] Frame 60
this.removeMovieClip();
Symbol 213 MovieClip [teleport9] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (once == false) {
cleaner = true;
once = true;
_root.attachMovie("cutscene4", "cutscene4", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = true;
_root.gotoAndStop(24);
_root.checkPoint = 24;
this.removeMovieClip();
}
};
Symbol 231 MovieClip [cutscene3] Frame 1
_root.moveAll = false;
Symbol 231 MovieClip [cutscene3] Frame 170
_root.ambientMusic = false;
Symbol 231 MovieClip [cutscene3] Frame 171
_root.musicBoss = true;
Symbol 231 MovieClip [cutscene3] Frame 197
_root.moveAll = true;
_root.ambientMusic = false;
_root.musicBoss = true;
this.removeMovieClip();
Symbol 258 MovieClip [cutscene4] Frame 1
_root.moveAll = false;
Symbol 258 MovieClip [cutscene4] Frame 69
_root.musicBoss = false;
_root.ambientMusic = true;
Symbol 258 MovieClip [cutscene4] Frame 153
stop();
Symbol 258 MovieClip [cutscene4] Frame 184
_root.moveAll = true;
this.removeMovieClip();
Symbol 284 MovieClip [cutscene5] Frame 1
_root.moveAll = false;
Symbol 284 MovieClip [cutscene5] Frame 34
stop();
Symbol 284 MovieClip [cutscene5] Frame 47
stop();
Symbol 284 MovieClip [cutscene5] Frame 71
_root.moveAll = true;
Symbol 284 MovieClip [cutscene5] Frame 77
this.removeMovieClip();
Symbol 287 MovieClip [teleport13] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(40);
_root.checkPoint = 40;
}
};
Symbol 290 MovieClip [foot1] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 291 MovieClip [foot] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 297 MovieClip [knife2] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent.knife == true) {
this.play();
}
};
Symbol 313 MovieClip [knife1] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent.knife == true) {
this.play();
}
};
Symbol 362 MovieClip [cutscene6] Frame 1
_root.moveAll = false;
_root.sneakMusic = false;
_root.alarmMusic = false;
Symbol 362 MovieClip [cutscene6] Frame 135
_root.musicBoss = true;
Symbol 362 MovieClip [cutscene6] Frame 292
_root.moveAll = true;
this.removeMovieClip();
Symbol 380 MovieClip [cutscene7] Frame 1
_root.moveAll = false;
_root.moveAll = false;
Symbol 380 MovieClip [cutscene7] Frame 62
_root.musicBoss = false;
Symbol 380 MovieClip [cutscene7] Frame 207
_root.moveAll = true;
_root.musicBoss = false;
_root.sneakMusic = false;
_root.ambientMusic = true;
this.removeMovieClip();
Symbol 422 MovieClip [cutscene8] Frame 1
_root.moveAll = false;
Symbol 422 MovieClip [cutscene8] Frame 93
_root.moveAll = true;
this.removeMovieClip();
Symbol 429 MovieClip [knifea] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent.knife == true) {
this.play();
}
};
Symbol 431 MovieClip [knife] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent.knife == true) {
this.play();
}
};
Symbol 485 MovieClip [finalbossBoss] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.hit == true) {
this.play();
}
};
Symbol 486 Button
on (press) {
_root.attachMovie("soundM16", "soundM16", _root.getNextHighestDepth());
_root.attachMovie("shootflash", "shootflash", _root.getNextHighestDepth());
_root.shootflash._x = -5;
_root.shootflash._y = -5;
_root.finalBoss.health--;
_root.finalBoss.hit = true;
}
Symbol 528 MovieClip [cutscene9] Frame 1
_root.moveAll = false;
_root.alert = false;
_root.alarmMusic = false;
this.onEnterFrame = function () {
_root.ambientMusic = true;
};
Symbol 528 MovieClip [cutscene9] Frame 448
stop();
_root.ambientMusic = false;
Symbol 528 MovieClip [cutscene9] Frame 492
_root.ambientMusic = false;
_root.attachMovie("musicDrumBass", "musicDrumBass", _root.getNextHighestDepth());
Symbol 528 MovieClip [cutscene9] Frame 1331
_root.moveAll = true;
_root.attachMovie("finalBoss", "finalBoss", 7400);
_root.finalBoss._x = 400;
_root.finalBoss._y = 225;
_root.gotoAndStop(62);
this.removeMovieClip();
Symbol 529 MovieClip [teleport22] Frame 1
stop();
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (once == false) {
cleaner = true;
once = true;
_root.attachMovie("cutscene9", "cutscene9", 10010);
_root.cutscene9._x = 420;
_root.cutscene9._y = 330;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(60);
_root.checkPoint = 60;
}
};
Symbol 530 MovieClip [musicDrumBass] Frame 2896
if (_root.bossF == true) {
this.gotoAndPlay(1);
}
if (_root.bossF == false) {
this.removeMovieClip();
}
Symbol 533 MovieClip [credits] Frame 1
_root.bossF = true;
Symbol 533 MovieClip [credits] Frame 1191
_root.gotoAndStop(3);
this.removeMovieClip();
Symbol 536 Button [continue]
on (press) {
_root.clean = false;
_root.gotoAndStop(6);
_root.moveAll = true;
_root.health = 140;
_root.ration = 2;
_root.ammo = 36;
_root.gameOver = false;
this.removeMovieClip();
}
Symbol 539 MovieClip [gameover] Frame 1
_root.gameOver = true;
stop();
Symbol 547 MovieClip [finalbossHUD] Frame 1
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 549 MovieClip [finalbosshealthbar] Frame 1
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
this._xscale = _root.finalBoss.health;
};
Symbol 551 MovieClip [finalbossPlayerGun] Frame 1
this.onEnterFrame = function () {
_root.rotateToMouse(this, 500, 500);
};
Symbol 553 MovieClip [finalbossJeep] Frame 1
count = 0;
this.onEnterFrame = function () {
_root.float(this, 1, 1);
};
Symbol 559 Button
on (press) {
_root.attachMovie("soundM16", "soundM16", _root.getNextHighestDepth());
_root.attachMovie("shootflash", "shootflash", _root.getNextHighestDepth());
_root.shootflash._x = -5;
_root.shootflash._y = -5;
_root.finalBoss.missle2 = false;
this.gotoAndStop(1);
}
Symbol 561 MovieClip [finalbossmissle2] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.missle2 == true) {
this.play();
}
};
Symbol 561 MovieClip [finalbossmissle2] Frame 30
_root.health = _root.health - 10;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
_root.finalBoss.missle2 = false;
this.gotoAndStop(1);
Symbol 562 Button [finalbossmissle1button]
on (press) {
_root.attachMovie("soundM16", "soundM16", _root.getNextHighestDepth());
_root.attachMovie("shootflash", "shootflash", _root.getNextHighestDepth());
_root.shootflash._x = -5;
_root.shootflash._y = -5;
_root.finalBoss.missle1 = false;
this.gotoAndStop(1);
}
Symbol 563 Button [finalbossShooter]
on (press) {
_root.finalBoss.fire1 = false;
_root.attachMovie("soundM16", "soundM16", _root.getNextHighestDepth());
_root.attachMovie("shootflash", "shootflash", _root.getNextHighestDepth());
_root.shootflash._x = -5;
_root.shootflash._y = -5;
}
Symbol 569 Button [finalbossshooter2]
on (press) {
_root.finalBoss.fire2 = false;
_root.attachMovie("soundM16", "soundM16", _root.getNextHighestDepth());
_root.attachMovie("shootflash", "shootflash", _root.getNextHighestDepth());
_root.shootflash._x = -5;
_root.shootflash._y = -5;
}
Symbol 572 MovieClip [finalbossMGbody] Frame 1
count = 5;
this.onEnterFrame = function () {
_root.float(this, 1, 1);
};
Symbol 578 MovieClip [finalbossmissleup] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.missle == true) {
this.play();
}
};
Symbol 578 MovieClip [finalbossmissleup] Frame 2
this.onEnterFrame = function () {
_root.finalBoss.missle = false;
};
Symbol 578 MovieClip [finalbossmissleup] Frame 11
_root.finalBoss.missle1 = true;
_root.finalBoss.missle2 = true;
this.gotoAndStop(1);
Symbol 581 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.finalBoss.missle1 == true) {
this.play();
}
};
Symbol 581 MovieClip Frame 30
_root.health = _root.health - 10;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
_root.finalBoss.missle1 = false;
this.gotoAndStop(1);
Symbol 582 MovieClip [finalbogMG!] Frame 1
count2 = 0;
Symbol 601 MovieClip [finalBoss] Frame 1
fire1 = false;
fire2 = false;
hit = false;
missle = false;
missleTimer = 80;
fireTimer = 50;
health = 150;
this.onEnterFrame = function () {
if (health <= 0) {
_root.attachMovie("credits", "credits", _root.getNextHighestDepth());
this.removeMovieClip();
}
hit = false;
fireTimer--;
missleTimer--;
if (fireTimer <= 0) {
fire1 = true;
fire2 = true;
fireTimer = 50;
}
if (missleTimer <= 0) {
missle = true;
missleTimer = 100 + random(75);
}
};
Symbol 604 MovieClip [hanzouHUD] Frame 1
stop();
this.swapDepths(8000);
this.onEnterFrame = function () {
if (_root.hd == true) {
this.gotoAndStop(2);
}
if (_root.clean == true) {
this.removeMovieClip;
}
};
Symbol 606 MovieClip [hanzouHealth] Frame 1
stop();
this.swapDepths(8001);
this.onEnterFrame = function () {
if (_root.hd == true) {
this.gotoAndStop(2);
}
if (_root.clean == true) {
this.removeMovieClip;
}
this._xscale = _root.hanzou.health;
};
Symbol 608 MovieClip [hanzouHit] Frame 1
this.onEnterFrame = function () {
var _local4 = 0;
while (_local4 <= 11) {
if (this.hitTest(_root["bullet" + _local4])) {
_root.attachMovie("soundAlHit", "soundAlHit", _root.getNextHighestDepth());
_root["bullet" + _local4].removeMovieClip();
_parent.health = _parent.health - 5;
_parent.reset = true;
}
_local4++;
}
};
Symbol 610 MovieClip [bossSwrod] Frame 1
count = 0;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.float(this, 5, 1);
_root.rotateToPlayer(this, _parent._parent._x, _parent._parent._y);
if (this.hitTest(_root.player.Up)) {
_parent._parent.reset = true;
_root.health = _root.health - 5;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
}
}
};
Symbol 613 MovieClip [hanzouBoss] Frame 1
reset = false;
moveTimer = 30;
moving = false;
health = 100;
this.onEnterFrame = function () {
if (health <= 0) {
_root.hd = true;
_root.attachMovie("teleport22", "teleport22", _root.getNextHighestDepth());
this.removeMovieClip();
}
_root.fixDepth(this);
if (_root.clean == true) {
this.removeMovieClip();
}
_root.alert = true;
_root.alarmMusic = false;
_root.musicBoss = true;
_root.playerMove(this);
if (_root.moveAll == true) {
if (reset == true) {
moving = false;
_root.attachMovie("soundwhoosh", "soundwhoosh", _root.getNextHighestDepth());
var _local3 = 0;
while (_local3 < 6) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke2", "smoke2" + _root.smokeVar, _root.smokeD);
_root["smoke2" + _root.smokeVar].x = this._x;
_root["smoke2" + _root.smokeVar].y = this._y;
_root["smoke2" + _root.smokeVar]._xscale = 500;
_root["smoke2" + _root.smokeVar]._yscale = 500;
_local3++;
}
this._x = random(500) + 150;
this._y = random(300) + 100;
reset = false;
moveTimer = 30;
}
moveTimer--;
if (moveTimer <= 0) {
moving = true;
}
if (moving == true) {
_root.towardsPlayer(this, 8);
}
}
};
Symbol 614 MovieClip [bGround] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 615 MovieClip [lvl11t] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 617 MovieClip [hangerDoor] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 619 MovieClip [wall4] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 620 MovieClip [lvl11low] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 623 MovieClip [floorninja] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.gotoAndStop(2);
}
};
Symbol 624 MovieClip [teleport21] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if ((((this.hitTest(_root.player.Up) && (_root.key3 == true)) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("cutscene8", "cutscene8", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(54);
_root.checkPoint = 54;
}
};
Symbol 625 MovieClip [teleport20] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(48);
_root.checkPoint = 48;
}
};
Symbol 626 MovieClip [lvl10top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 628 MovieClip [bGround2] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 629 MovieClip [lvl10bot] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 631 MovieClip [key3map] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.key3 == true) {
this.gotoAndStop(2);
}
if (this.hitTest(_root.player.Up)) {
_root.key3 = true;
this.gotoAndStop(2);
}
};
Symbol 631 MovieClip [key3map] Frame 2
stop();
Symbol 632 MovieClip [teleport17] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if ((((this.hitTest(_root.player.Up) && (_root.key3 == true)) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(44);
_root.checkPoint = 44;
}
};
Symbol 634 MovieClip [teleportsniper] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("cutscene7", "cutscene7", 10010);
_root.cutscene7._x = 100;
_root.cutscene7._y = 50;
_root.scene7once = true;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = true;
_root.gotoAndStop(42);
_root.checkPoint = 42;
}
};
Symbol 636 MovieClip [snipeLaser] Frame 1
stop();
this.swapDepths(7003);
addy = 0;
this.onEnterFrame = function () {
if (_root.scene7once == true) {
this.removeMovieClip();
gotoAndStop (2);
}
this._rotation = this._rotation - addy;
if (addy > 0) {
addy--;
}
if (_root.clean == true) {
this.removeMovieClip;
}
if (_root.snipeShoot == true) {
_root.snipeShoot = false;
addy = addy + 5;
}
_root.float(this, 1, 1);
_root.playerMovex(this);
_root.rotateToPlayer(this, this._x, this._y);
};
Symbol 636 MovieClip [snipeLaser] Frame 2
stop();
Symbol 638 MovieClip [snipeKillZone] Frame 1
timer = 300;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip;
}
if ((_root.moveAll == true) && (_root.scene6once == true)) {
_root.playerMove(this);
timer--;
if (timer <= 0) {
_root.attachMovie("snipeShot", "snipeShot", _root.getNextHighestDepth());
if (this.hitTest(_root.player.DOwn)) {
_root.health = _root.health - 20;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
_root.snipeShoot = true;
}
timer = 60;
}
}
};
Symbol 639 MovieClip [lvlsnipetop] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 640 MovieClip [lvlsnipebottom] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 641 MovieClip [guardUpDpwnfaceDown] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 310;
walk2timer = 310;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 310;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = false;
faceDown = true;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 310;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 642 MovieClip [guardUpDownFaceUp] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 310;
walk2timer = 310;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = false;
faceUp = true;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 310;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 310;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 643 MovieClip [guardDownUpfaceUp] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 310;
walk2timer = 310;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = false;
faceUp = true;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 310;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 310;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 644 MovieClip [guarddownupFacedown] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 310;
walk2timer = 310;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 310;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = false;
faceDown = true;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 310;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 645 MovieClip [teleport18] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(46);
_root.checkPoint = 46;
}
};
Symbol 646 MovieClip [teleport16] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if ((((this.hitTest(_root.player.Up) && (_root.key3 == false)) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
if (_root.scene6once == true) {
_root.attachMovie("loadscreen", "loadscreen", _root.getNextHighestDepth());
}
if (_root.scene6once == false) {
_root.attachMovie("cutscene6", "cutscene6", 10010);
_root.scene6once = true;
}
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(36);
_root.checkPoint = 36;
}
};
Symbol 647 MovieClip [lvl9top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 648 MovieClip [lvl9bot] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 649 MovieClip [teleport19] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((_root.key3 == true) && (this.hitTest(_root.player.RIght))) && (once == false)) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(50);
_root.checkPoint = 50;
}
};
Symbol 650 MovieClip [guardupsquareReg] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk2timer = 260;
walk1timer = 115;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 260;
rest = true;
}
}
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 115;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 115;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 260;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 651 MovieClip [guardleftsquarehuge] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk2timer = 250;
walk1timer = 350;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 250;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 350;
rest = true;
}
}
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 350;
rest = true;
}
}
if ((rest == false) && (number == 3)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 250;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 652 MovieClip [guardupSquarehuge] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk2timer = 250;
walk1timer = 350;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 250;
rest = true;
}
}
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 350;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 350;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 250;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 653 MovieClip [teleport15] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
_root.cutscene2._x = -2;
_root.cutscene2._y = -2;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(34);
_root.checkPoint = 34;
}
};
Symbol 654 MovieClip [lvl8top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 655 MovieClip [lvl8bottom] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 658 MovieClip [floo4] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 661 MovieClip [laser] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
_root.fixDepth(this);
if (_root.smoking == true) {
this.gotoAndStop(2);
}
if (_root.smoking == false) {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.Up)) {
_root.health = _root.health - 5;
}
};
Symbol 662 MovieClip [teleport14] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
_root.cutscene2._x = -2;
_root.cutscene2._y = -2;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(32);
_root.checkPoint = 32;
}
};
Symbol 664 MovieClip [doorwayTop] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 665 MovieClip [lvl7bottom] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 667 MovieClip [alucardhealthbar] Frame 1
this.swapDepths(9001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
this._xscale = _root.alucard.health;
};
Symbol 670 MovieClip [alucardhud] Frame 1
this.swapDepths(9000);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 672 MovieClip [alucardHitTest] Frame 1
hitTimer = 50;
this.onEnterFrame = function () {
hitTimer--;
if (this.hitTest(_root.player.kill)) {
_root.attachMovie("soundAlHit", "soundAlHit", _root.getNextHighestDepth());
_parent.health = _parent.health - 2;
_parent.intense = _parent.intense + 0.5;
_parent.speed = _parent.speed - 1;
_parent.aTimer = _parent.aTimer - 1;
}
var _local4 = 0;
while (_local4 <= 11) {
if (this.hitTest(_root["bullet" + _local4])) {
_root.attachMovie("soundAlHit", "soundAlHit", _root.getNextHighestDepth());
_root["bullet" + _local4].removeMovieClip();
_parent.health = _parent.health - 3;
_parent.intense = _parent.intense + 0.5;
_parent.speed = _parent.speed - 1;
_parent.aTimer = _parent.aTimer - 1;
}
_local4++;
}
if (this.hitTest(_root.player.Up) && (hitTimer <= 0)) {
_root.health = _root.health - 5;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
hitTimer = 50;
}
};
Symbol 674 MovieClip [mask] Frame 1
count2 = 0;
this.onEnterFrame = function () {
_root.pulse(this, 2, 2);
};
Symbol 677 MovieClip [alucardBoss] Frame 1
intense = 5;
speed = 20;
pI = 2;
pS = 1;
count = 0;
count2 = 0;
count3 = 0;
attackT = 90;
flip = false;
throwN = 0;
health = 100;
aTimer = 90;
this.onEnterFrame = function () {
if (health <= 0) {
_root.attachMovie("teleport9", "teleport9", _root.getNextHighestDepth());
}
if (_root.clean == true) {
this.removeMovieClip();
}
if (_root.moveAll == true) {
attackT--;
if (attackT <= 0) {
throwN++;
_root["throw" + throwN].prep = true;
attackT = aTimer;
}
if (_root.player._x < this._x) {
this._xscale = -100;
}
if (_root.player._x > this._x) {
this._xscale = 100;
}
this.swapDepths(8000);
_root.playerMove(this);
_root.float(this, intense, speed);
_root.floatx(this, intense, speed);
_root.pulse(this, pI, pS);
}
};
Symbol 682 MovieClip [alsToys] Frame 1
stop();
this.onEnterFrame = function () {
if (_parent.pic == 0) {
this.gotoAndStop(1);
}
if (_parent.pic == 1) {
this.gotoAndStop(2);
}
if (_parent.pic == 2) {
this.gotoAndStop(3);
}
if (_parent.pic == 3) {
this.gotoAndStop(4);
}
if (_parent.pic == 4) {
this.gotoAndStop(5);
}
};
Symbol 683 MovieClip [throw] Frame 1
pulse = false;
floatx = false;
float = false;
count = random(20);
count2 = 0;
count3 = random(20);
prep = false;
prepT = 60;
attack = false;
remove = false;
pic = random(5);
this.onEnterFrame = function () {
_root.fixDepth(this);
if (_root.clean == true) {
this.removeMovieClip();
}
if (_root.moveAll == true) {
_root.float(this, 3, 3);
_root.floatx(this, 3, 3);
_root.playerMove(this);
if (prepT <= 0) {
prep = false;
attack = true;
}
if (prep == true) {
prepT--;
this._y = this._y - 0.5;
pulse = true;
}
if (pulse == true) {
_root.pulse(this, 2, 2);
}
if ((attack == true) && (_root.moveAll == true)) {
var _local3 = 0;
while (_local3 <= 11) {
if (this.hitTest(_root["bullet" + _local3])) {
_root["bullet" + _local3].removeMovieClip();
this.remove = true;
}
_local3++;
}
if (this.hitTest(_root.player.kill)) {
this.remove = true;
}
if (this.hitTest(_root.player.Up)) {
_root.health = _root.health - 5;
_root.attachMovie("playerHit", "playerHit", _root.getNextHighestDepth());
remove = true;
}
_root.towardsPlayer(this, 5);
if (remove == true) {
_root.attachMovie("soundBHit", "soundBHit", _root.getNextHighestDepth());
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
}
}
};
Symbol 685 MovieClip [key2map] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.key2 == true) {
this.gotoAndStop(2);
}
if (this.hitTest(_root.player.Up)) {
_root.key2 = true;
this.gotoAndStop(2);
}
};
Symbol 685 MovieClip [key2map] Frame 2
stop();
Symbol 687 MovieClip [itemRation] Frame 1
this.onEnterFrame = function () {
_root.fixDepth(this);
_root.playerMove(this);
if (this.hitTest(_root.player.Up)) {
_root.ration++;
_root.attachMovie("soundRation", "soundRation", _root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 689 MovieClip [itemAmmo] Frame 1
this.onEnterFrame = function () {
_root.fixDepth(this);
_root.playerMove(this);
if (this.hitTest(_root.player.Up)) {
_root.ammo = _root.ammo + 12;
_root.attachMovie("soundAmmo", "soundAmmo", _root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 690 MovieClip [teleport10] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if ((_root.key2 == true) || (this.hitTest(_root.player.RIght))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
_root.cutscene2._x = -2;
_root.cutscene2._y = -2;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = true;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(28);
_root.checkPoint = 28;
}
};
Symbol 691 MovieClip [lvl5] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 692 MovieClip [lvl5D] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 694 MovieClip [alucardFloor] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 695 MovieClip [teleport11] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
_root.cutscene2._x = -2;
_root.cutscene2._y = -2;
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(22);
_root.checkPoint = 22;
}
};
Symbol 696 MovieClip [teleport8] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("cutscene3", "cutscene3", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = true;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(26);
_root.checkPoint = 26;
}
};
Symbol 697 MovieClip [lvl6top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 698 MovieClip [lvl6loe] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 701 MovieClip [floo3] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 702 MovieClip [guardLeftSquareBig2] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk1timer = 285;
walk2timer = 220;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 220;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 285;
rest = true;
}
}
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 285;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 220;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 703 MovieClip [guardDownLeftsmallSquare] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 130;
walk1speed = 130;
walk2speed = 135;
walk2timer = 135;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = walk2speed;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = walk1speed;
rest = true;
}
}
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = walk1speed;
rest = true;
}
}
if ((rest == false) && (number == 2)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = walk2speed;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 705 MovieClip [key1Map] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.key1 == true) {
this.gotoAndStop(2);
}
if (this.hitTest(_root.player.Up)) {
_root.key1 = true;
this.gotoAndStop(2);
}
};
Symbol 705 MovieClip [key1Map] Frame 2
stop();
Symbol 706 MovieClip [teleport5] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(16);
_root.checkPoint = 16;
}
};
Symbol 707 MovieClip [lvl4top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 708 MovieClip [lvl4below] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 709 MovieClip [teleport12] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if ((this.hitTest(_root.player.Up) && (_root.key2 == true)) && (once == false)) {
cleaner = true;
once = true;
if (_root.scene5once == true) {
_root.attachMovie("loadscreen", "loadscreen", _root.getNextHighestDepth());
}
if (_root.scene5once == false) {
_root.attachMovie("cutscene5", "cutscene5", 10010);
_root.scene5once = true;
}
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(30);
_root.checkPoint = 30;
}
};
Symbol 710 MovieClip [guardUpDownShort] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 100;
rest = false;
walking = false;
faceUp = true;
faceDown = false;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 70;
walk2timer = 70;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 70;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 70;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 100;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 711 MovieClip [guardRightSquareBig] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = true;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 255;
walk2timer = 165;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 165;
rest = true;
}
}
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 270;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 270;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 165;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 712 MovieClip [guardLeftSquareBig] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk1timer = 255;
walk2timer = 165;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 3) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 3)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk2timer = 165;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = true;
faceRight = false;
faceUp = false;
this._x = this._x - speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 270;
rest = true;
}
}
if ((rest == false) && (number == 2)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 270;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 165;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 713 MovieClip [teleport7] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((_root.key1 == true) && (this.hitTest(_root.player.LEft))) && (once == false)) {
cleaner = true;
once = true;
if (_root.scene2once == true) {
_root.attachMovie("loadscreen", "loadscreen", _root.getNextHighestDepth());
}
if (_root.scene2once == false) {
_root.scene2once = true;
_root.attachMovie("cutscene2", "cutscene2", 10010);
_root.cutscene2._x = -2;
_root.cutscene2._y = -2;
}
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = false;
_root.ambientMusic = true;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(20);
_root.checkPoint = 20;
}
};
Symbol 714 MovieClip [teleport3] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (this.hitTest(_root.player.RIght) && (once == false)) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(10);
_root.checkPoint = 10;
}
};
Symbol 715 MovieClip [teleport2] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(8);
_root.checkPoint = 8;
}
};
Symbol 716 MovieClip [lvl2above] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 717 MovieClip [lvl2below] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 718 MovieClip [guardUpDownFaceLeft] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 60;
rest = false;
walking = false;
faceUp = true;
faceDown = false;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 168;
walk2timer = 168;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 168;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 168;
rest = true;
}
}
if (rest == true) {
faceLeft = true;
faceDown = false;
faceRight = false;
faceUp = false;
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 719 MovieClip [guardLeftRightMed] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 60;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk1timer = 160;
walk2timer = 160;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 160;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = false;
faceDown = false;
faceLeft = true;
faceRight = false;
this._x = this._x - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 160;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 60;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 720 MovieClip [blackground] Frame 1
stop();
groundVisible = true;
_root.grounds++;
_root.attachMovie("bGround", "bGround" + _root.grounds, _root.grounds);
_root["bGround" + _root.grounds]._x = this._x;
_root["bGround" + _root.grounds]._y = this._y;
this.onEnterFrame = function () {
};
Symbol 721 MovieClip [teleport6] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(18);
_root.checkPoint = 18;
}
};
Symbol 722 MovieClip [teleport4] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(14);
_root.checkPoint = 14;
}
};
Symbol 723 MovieClip [lvl3top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 724 MovieClip [lvl3below] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 727 MovieClip [floo2] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 728 MovieClip [guardRightLeftMed] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 60;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = true;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 160;
walk2timer = 160;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 160;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = false;
faceDown = false;
faceLeft = true;
faceRight = false;
this._x = this._x - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 160;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 60;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 738 MovieClip [Alert] Frame 1
this.swapDepths(7618);
stop();
this.onEnterFrame = function () {
if (_root.alert == true) {
this.nextFrame();
}
};
Symbol 738 MovieClip [Alert] Frame 2
sec = 9;
ten = 2;
milsec = 99;
inc = 5;
stop();
this.onEnterFrame = function () {
if ((ten == 0) && (sec == 0)) {
_root.alert = false;
_root.sneakMusic = true;
this.gotoAndStop(1);
}
this.secs.text = sec;
this.milli.text = milsec;
this.tens.text = ten;
milsec = milsec - inc;
if (milsec < 5) {
milsec = 99;
sec--;
}
if (sec < 0) {
sec = 9;
ten--;
}
};
Symbol 741 MovieClip [ammoNumberField] Frame 1
this.onEnterFrame = function () {
this.rationamount.text = _root.ammo;
this.rationamount1.text = _root.ammo;
};
Symbol 761 MovieClip [inventory2] Frame 1
this.swapDepths(7615);
this.onEnterFrame = function () {
_root.movePlayer(this);
};
Symbol 762 MovieClip [topScreen] Frame 1
this.swapDepths(7604);
this.onEnterFrame = function () {
_root.movePlayer(this);
};
Symbol 764 MovieClip [playerHealth] Frame 1
this.onEnterFrame = function () {
if ((_root.moveAll = true)) {
this._xscale = _root.health;
}
};
Symbol 767 MovieClip [bottomScreen] Frame 1
this.swapDepths(7601);
this.onEnterFrame = function () {
_root.movePlayer(this);
};
Symbol 770 MovieClip [rationNumberfield] Frame 1
this.onEnterFrame = function () {
this.rationamount.text = _root.ration;
this.rationamount1.text = _root.ration;
};
Symbol 773 MovieClip [key3Text] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key3 == true) {
this.gotoAndStop(2);
}
if (_root.key3 == false) {
this.gotoAndStop(1);
}
};
Symbol 775 MovieClip [key3] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key3 == true) {
this.gotoAndStop(2);
}
if (_root.key3 == false) {
this.gotoAndStop(1);
}
};
Symbol 779 MovieClip [keu2Txt] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key2 == true) {
this.gotoAndStop(2);
}
if (_root.key2 == false) {
this.gotoAndStop(1);
}
};
Symbol 781 MovieClip [key2] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key2 == true) {
this.gotoAndStop(2);
}
if (_root.key2 == false) {
this.gotoAndStop(1);
}
};
Symbol 785 MovieClip [key1Text] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key1 == true) {
this.gotoAndStop(2);
}
if (_root.key1 == false) {
this.gotoAndStop(1);
}
};
Symbol 787 MovieClip [key1] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.key1 == true) {
this.gotoAndStop(2);
}
if (_root.key1 == false) {
this.gotoAndStop(1);
}
};
Symbol 794 MovieClip [inventory1] Frame 1
this.swapDepths(7603);
this.onEnterFrame = function () {
_root.movePlayer(this);
};
Symbol 795 MovieClip [guardLeftRightLong] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 60;
rest = false;
walking = false;
faceUp = false;
faceDown = false;
faceRight = false;
faceLeft = true;
_root.allD++;
d = _root.allD;
walk1timer = 615;
walk2timer = 615;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 1)) {
walking = true;
faceDown = false;
faceLeft = false;
faceRight = true;
faceUp = false;
this._x = this._x + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 615;
rest = true;
}
}
if ((rest == false) && (number == 0)) {
walking = true;
faceUp = false;
faceDown = false;
faceLeft = true;
faceRight = false;
this._x = this._x - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 615;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 60;
}
}
}
if ((_root.alert == true) && (_root.moveAll == true)) {
alert = true;
}
if (alert == true) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 796 MovieClip [bossMusic] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.musicBoss == true) {
this.play();
}
};
Symbol 796 MovieClip [bossMusic] Frame 2
this.onEnterFrame = function () {
if (_root.musicBoss == false) {
this.gotoAndStop(1);
}
};
Symbol 797 MovieClip [foundMusic] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.alarmMusic == true) {
this.play();
}
};
Symbol 797 MovieClip [foundMusic] Frame 2
this.onEnterFrame = function () {
if (_root.alert == false) {
this.gotoAndStop(1);
}
};
Symbol 798 MovieClip [musicAmbience] Frame 1
this.onEnterFrame = function () {
if (_root.ambientMusic == true) {
this.play();
}
};
Symbol 798 MovieClip [musicAmbience] Frame 2
this.onEnterFrame = function () {
if (_root.ambientMusic == false) {
this.gotoAndStop(1);
}
};
Symbol 799 MovieClip [musicSneaking] Frame 1
this.onEnterFrame = function () {
if (_root.sneakMusic == true) {
this.play();
}
};
Symbol 799 MovieClip [musicSneaking] Frame 2
this.onEnterFrame = function () {
if (_root.sneakMusic == false) {
this.gotoAndStop(1);
}
};
Symbol 800 MovieClip [guard] Frame 1
moveDown = false;
moveRight = false;
moveUp = false;
moveLeft = false;
up = false;
right = false;
down = false;
left = false;
hitL = false;
hitR = false;
hitU = false;
hitD = false;
shoot = false;
shootTimer = 10;
bTimer = 15;
alert = false;
playerSight = false;
restTimer = 40;
rest = false;
walking = false;
faceUp = false;
faceDown = true;
faceRight = false;
faceLeft = false;
_root.allD++;
d = _root.allD;
walk1timer = 70;
walk2timer = 70;
remove = false;
number = 0;
speed = 2;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
_root.playerMove(this);
if (remove == true) {
_root.randomDrop(this, this._x, this._y);
this.removeMovieClip();
}
_root.fixDepth(this);
if (number > 1) {
number = 0;
}
if ((_root.moveAll == true) && (alert == false)) {
if ((rest == false) && (number == 0)) {
walking = true;
faceDown = true;
faceLeft = false;
faceRight = false;
faceUp = false;
this._y = this._y + speed;
walk1timer--;
if (walk1timer <= 0) {
walking = false;
faceDown = false;
walk1 = false;
walk1timer = 70;
rest = true;
}
}
if ((rest == false) && (number == 1)) {
walking = true;
faceUp = true;
faceDown = false;
faceLeft = false;
faceRight = false;
this._y = this._y - speed;
walk2timer--;
if (walk2timer <= 0) {
walking = false;
faceUp = false;
walk2 = false;
walk2timer = 70;
rest = true;
}
}
if (rest == true) {
walking = false;
restTimer--;
if (restTimer <= 0) {
rest = false;
number++;
restTimer = 40;
}
}
}
if (_root.alert == true) {
alert = true;
}
if ((alert == true) && (_root.moveAll == true)) {
if (shoot == true) {
shootTimer--;
if (shootTimer <= 0) {
shoot = false;
shootTimer = 10;
}
}
bTimer--;
if (bTimer <= 0) {
if (playerSight == true) {
_root.attachMovie("soundGunshot", "soundGunshot", _root.getNextHighestDepth());
walking = false;
bTimer = 15;
shoot = true;
_root.eB++;
_root.eBD++;
_root.attachMovie("eBullet", "eBullet" + _root.eB, _root.eBD);
if (faceLeft == true) {
_root["eBullet" + _root.eB]._x = this._x - 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB].faceLeft = true;
_root["eBullet" + _root.eB]._yscale = 200;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 60;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceRight == true) {
_root["eBullet" + _root.eB]._x = this._x + 50;
_root["eBullet" + _root.eB]._y = this._y;
_root["eBullet" + _root.eB]._yscale = 200;
_root["eBullet" + _root.eB].faceRight = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 35;
_root["smoke" + _root.smokeVar].y = this._y - 20;
_local3++;
}
}
if (faceDown == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y + 25;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceDown = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
if (faceUp == true) {
_root["eBullet" + _root.eB]._x = this._x - 15;
_root["eBullet" + _root.eB]._yscale = 425;
_root["eBullet" + _root.eB]._y = this._y - 40;
_root["eBullet" + _root.eB]._rotation = 90;
_root["eBullet" + _root.eB].faceUp = true;
var _local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 15;
_root["smoke" + _root.smokeVar].y = this._y - 60;
_local3++;
}
}
}
}
if (_root.moveAll == true) {
if (shoot == false) {
py = _root.player._y;
px = _root.player._x + 10;
midy = false;
midx = false;
xDU = this._x;
xL = this._x;
xR = this._x;
if ((faceDown == true) || (faceUp == true)) {
x = xDU;
}
if (faceLeft == true) {
x = xL;
}
if (faceRight == true) {
x = xR;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
midx = true;
left = false;
walking = false;
right = false;
}
if ((py < (this._y + 5)) && (py > (this._y - 5))) {
midy = true;
down = false;
up = false;
walking = false;
}
if ((py > this._y) && (hitD == false)) {
up = false;
down = true;
}
if (hitD == true) {
down = false;
}
if ((py < (this._y - 50)) && (hitU == false)) {
down = false;
up = true;
}
if (hitU == true) {
up = false;
}
if ((px < (x - 60)) && (hitL == false)) {
left = true;
right = false;
}
if ((px > x) && (hitR == false)) {
left = false;
right = true;
}
if (up == true) {
left = false;
right = false;
down = false;
}
if (down == true) {
left = false;
right = false;
up = false;
}
if (right == true) {
left = false;
down = false;
up = false;
}
if (left == true) {
right = false;
down = false;
up = false;
}
if ((left == true) && (hitL == false)) {
walking = true;
this._x = this._x - 4;
hitR = false;
faceDown = false;
faceRight = false;
faceUp = false;
faceLeft = true;
}
if ((right == true) && (hitR == false)) {
walking = true;
this._x = this._x + 4;
hitL = false;
faceDown = false;
faceRight = true;
faceUp = false;
faceLeft = false;
}
if ((up == true) && (hitU == false)) {
walking = true;
this._y = this._y - 4;
hitD = false;
faceDown = false;
faceUp = true;
faceLeft = false;
faceRight = false;
}
if ((down == true) && (hitD == false)) {
walking = true;
this._y = this._y + 4;
hitU = false;
faceDown = true;
faceUp = false;
faceLeft = false;
faceRight = false;
}
if ((_root.player._y < (this._y + 5)) && (_root.player._y > (this._y - 5))) {
hitL = false;
hitR = false;
}
if ((x >= (px - 5)) && (x <= (px + 5))) {
hitD = false;
hitU = false;
}
}
}
}
};
Symbol 801 MovieClip [teleport] Frame 1
cleaner = false;
timer = 2;
once = false;
this.onEnterFrame = function () {
_root.playerMove(this);
if (((this.hitTest(_root.player.Up) || (this.hitTest(_root.player.RIght))) || (this.hitTest(_root.player.DOwn))) || (this.hitTest(_root.player.LEft) && (once == false))) {
cleaner = true;
once = true;
_root.attachMovie("loadscreen", "loadscreen", 10010);
}
if (cleaner == true) {
_root.moveAll = false;
_root.clean = true;
timer--;
}
if (timer <= 0) {
_root.clean = false;
_root.sneakMusic = true;
_root.ambientMusic = false;
_root.alarmMusic = false;
_root.musicBoss = false;
_root.gotoAndStop(12);
_root.checkPoint = 12;
}
};
Symbol 802 MovieClip [guardSpawn] Frame 1
timer = 50;
this.onEnterFrame = function () {
if (_root.moveAll == true) {
_root.playerMove(this);
}
if (_root.alert == true) {
timer--;
if (timer <= 0) {
_root.guardAlertN++;
_root.attachMovie("guardAlert", "guardAlert" + _root.guardAlertN, _root.getNextHighestDepth());
_root["guardAlert" + _root.guardAlertN]._x = this._x;
_root["guardAlert" + _root.guardAlertN]._y = this._y;
timer = 100;
}
}
};
Symbol 814 MovieClip [foot3] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 826 MovieClip [foot4] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 828 MovieClip [foot5] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 829 MovieClip [foot6] Frame 1
this.onEnterFrame = function () {
if (_root.walking == true) {
this.play();
} else {
this.gotoAndStop(1);
}
};
Symbol 839 MovieClip [pico] Frame 1
stop();
this.onEnterFrame = function () {
_parent.fU = true;
_parent.fD = false;
_parent.fR = false;
_parent.fL = false;
};
Symbol 839 MovieClip [pico] Frame 2
stop();
this.onEnterFrame = function () {
_parent.fU = false;
_parent.fD = false;
_parent.fR = true;
_parent.fL = false;
};
Symbol 839 MovieClip [pico] Frame 3
stop();
this.onEnterFrame = function () {
_parent.fU = false;
_parent.fD = true;
_parent.fR = false;
_parent.fL = false;
};
Symbol 840 MovieClip [player] Frame 1
this.swapDepths(5000);
hitLeft = false;
hitRight = false;
hitDown = false;
hitUp = false;
faceUp = true;
faceDown = false;
faceRight = false;
faceLeft = false;
fR = false;
fU = false;
fD = false;
fL = false;
knife = false;
kTimer = 8;
sTimer = 10;
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
if (Key.isDown(87)) {
_root.smokeVar++;
_root.smoking = true;
_root.attachMovie("smoke3", "smoke3" + _root.smokeVar, _root.getNextHighestDepth());
_root["smoke3" + _root.smokeVar].x = this._x;
_root["smoke3" + _root.smokeVar].y = this._y;
_root.health = _root.health - 0.1;
}
if (Key.isDown(87) == false) {
_root.smoking = false;
}
hTimer--;
if (_root.ration > 0) {
if ((Key.isDown(82) && (hTimer <= 0)) && (_root.health < 140)) {
hTimer = 5;
_root.health = _root.health + 50;
_root.attachMovie("soundUse", "soundUse", _root.getNextHighestDepth());
_root.ration--;
}
}
if ((_root.health <= 0) && (_root.gameOver == false)) {
_root.moveAll = false;
_root.clean = true;
_root.alert = false;
_root.attachMovie("gameover", "gameover", 10001);
}
var _local7 = Key.isDown(37);
var _local6 = Key.isDown(39);
var _local5 = Key.isDown(38);
var _local4 = Key.isDown(40);
var _local3 = 0;
while (_local3 <= 22) {
if (this.LEft.hitTest(_root["box" + _local3])) {
hitLeft = true;
}
if (this.RIght.hitTest(_root["box" + _local3])) {
hitRight = true;
}
if (this.Up.hitTest(_root["box" + _local3])) {
hitUp = true;
}
if (this.DOwn.hitTest(_root["box" + _local3])) {
hitDown = true;
}
_local3++;
}
if ((((_local6 == false) && (_local7 == false)) && (_local5 == false)) && (_local4 == false)) {
_root.walking = false;
}
if (_root.moveAll == true) {
if (kTimer > 0) {
knife = false;
}
if (kTimer >= -10) {
kTimer--;
}
if (kTimer <= 0) {
if (Key.isDown(83)) {
_root.attachMovie("soundKnife", "soundKnife", _root.getNextHighestDepth());
knife = true;
kTimer = 8;
if (faceUp == true) {
this.attachMovie("kill", "kill", this.getNextHighestDepth());
this.kill._y = -15;
}
if (faceDown == true) {
this.attachMovie("kill", "kill", this.getNextHighestDepth());
this.kill._y = 60;
}
if (faceRight == true) {
this.attachMovie("kill", "kill", this.getNextHighestDepth());
this.kill._x = 70;
}
if (faceLeft == true) {
this.attachMovie("kill", "kill", this.getNextHighestDepth());
this.kill._x = -70;
}
}
}
sTimer--;
if (((sTimer <= 0) && (Key.isDown(65))) && (_root.ammo <= 0)) {
_root.attachMovie("soundGunEmpty", "soundGunEmpty", _root.getNextHighestDepth());
sTimer = 10;
}
if (((sTimer <= 0) && (Key.isDown(65))) && (_root.ammo > 0)) {
_root.attachMovie("soundSilencer", "soundSilencer", _root.getNextHighestDepth());
_root.ammo--;
sTimer = 10;
_root.bN++;
_root.bulletD++;
_root.attachMovie("bullet", "bullet" + _root.bN, _root.bulletD);
if (faceRight == true) {
_root["bullet" + _root.bN]._x = this._x + 50;
_root["bullet" + _root.bN]._y = this._y + 12;
_root["bullet" + _root.bN].faceRight = true;
_root["smokey" + _root.smokeVar]._x = this._x;
_root["smokey" + _root.smokeVar]._y = this._y;
_local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x + 40;
_root["smoke" + _root.smokeVar].y = this._y;
_local3++;
}
}
if (faceLeft == true) {
_root["bullet" + _root.bN].faceLeft = true;
_root["bullet" + _root.bN]._x = this._x - 50;
_root["bullet" + _root.bN]._y = this._y + 12;
_local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x - 40;
_root["smoke" + _root.smokeVar].y = this._y;
_local3++;
}
}
if (faceUp == true) {
_root["bullet" + _root.bN].faceUp = true;
_root["bullet" + _root.bN]._x = this._x;
_root["bullet" + _root.bN]._y = this._y - 50;
_root["bullet" + _root.bN]._rotation = 90;
_local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x;
_root["smoke" + _root.smokeVar].y = this._y - 40;
_local3++;
}
}
if (faceDown == true) {
_root["bullet" + _root.bN].faceDown = true;
_root["bullet" + _root.bN]._x = this._x;
_root["bullet" + _root.bN]._y = this._y + 50;
_root["bullet" + _root.bN]._rotation = 90;
_local3 = 0;
while (_local3 < 5) {
_root.smokeVar++;
_root.smokeD++;
_root.attachMovie("smoke", "smoke" + _root.smokeVar, _root.smokeD);
_root["smoke" + _root.smokeVar].x = this._x;
_root["smoke" + _root.smokeVar].y = this._y + 20;
_local3++;
}
}
}
if ((((_local6 == true) && (_local5 == false)) && (_local4 == false)) && (hitRight == false)) {
faceRight = true;
faceLeft = false;
faceUp = false;
faceDown = false;
this.pico.gotoAndStop(2);
this.pico._xscale = 100;
_root.moveLeft = true;
_root.walking = true;
} else {
_root.moveLeft = false;
hitRight = false;
}
if (((((_local7 == true) && (_local6 == false)) && (_local5 == false)) && (_local4 == false)) && (hitLeft == false)) {
faceRight = false;
faceLeft = true;
faceUp = false;
faceDown = false;
this.pico.gotoAndStop(2);
this.pico._xscale = -100;
_root.moveRight = true;
_root.walking = true;
} else {
_root.moveRight = false;
hitLeft = false;
}
if (((_local5 == true) && (_local4 == false)) && (hitUp == false)) {
faceRight = false;
faceLeft = false;
faceUp = true;
faceDown = false;
this.pico.gotoAndStop(1);
this.pico._xscale = 100;
_root.moveDown = true;
_root.walking = true;
} else {
_root.moveDown = false;
hitUp = false;
}
if (((_local4 == true) && (_local5 == false)) && (hitDown == false)) {
faceRight = false;
faceLeft = false;
faceUp = false;
faceDown = true;
this.pico.gotoAndStop(3);
this.pico._xscale = 100;
_root.moveUp = true;
_root.walking = true;
} else {
_root.moveUp = false;
hitDown = false;
}
}
};
Symbol 842 MovieClip [waterwall] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 843 MovieClip [lvl1top] Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 846 MovieClip [waterfloor] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
_root.fixDepth(this);
if (_root.clean == true) {
this.gotoAndStop(2);
}
};
Symbol 847 MovieClip [lvl1BgBelow] Frame 1
this.swapDepths(3001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};
Symbol 849 MovieClip [box] Frame 1
this.onEnterFrame = function () {
_root.playerMove(this);
};
Symbol 852 MovieClip [floo1] Frame 1
stop();
this.onEnterFrame = function () {
_root.playerMove(this);
if (_root.clean == true) {
this.gotoAndStop(2);
}
};
Symbol 906 MovieClip [openingCutScene] Frame 1
stop();
if (_root.scene1 == true) {
this.play();
}
Symbol 906 MovieClip [openingCutScene] Frame 354
stop();
Symbol 906 MovieClip [openingCutScene] Frame 1120
stop();
Symbol 906 MovieClip [openingCutScene] Frame 1152
stop();
Symbol 906 MovieClip [openingCutScene] Frame 1186
_root.gotoAndStop(6);
Symbol 907 Button [NEWGAME]
on (press) {
_root.nextFrame();
}
Symbol 917 Button
on (press) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 923 MovieClip Frame 10
gotoAndPlay (1);
Symbol 930 MovieClip Frame 100
Symbol 939 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/picoday2008", "_blank");
}
Symbol 952 Button
on (press) {
nextFrame();
}
Symbol 972 MovieClip Frame 12
stop();
Symbol 997 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/pico", "_blank");
}
Symbol 1012 MovieClip Frame 15
stop();
Symbol 1053 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/pico", "_blank");
}
Symbol 1056 MovieClip Frame 1
_quality = "MEDIUM";
Symbol 1056 MovieClip Frame 225
_quality = "HIGH";
_root.play();
Symbol 1057 MovieClip Frame 1
stop();
Instance of Symbol 930 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (enterFrame) {
loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(loaded);
if (loaded == 100) {
_parent.play();
}
}
Symbol 1057 MovieClip Frame 9
stop();
Symbol 1057 MovieClip Frame 10
stop();
Symbol 1061 MovieClip Frame 1
this.swapDepths(7001);
this.onEnterFrame = function () {
if (_root.clean == true) {
this.removeMovieClip();
}
};