Frame 1
_accProps = new Object();
_accProps.silent = false;
_accProps.name = "ivory hunter";
_accProps.description = "game";
stop();
stopAllSounds();
Instance of Symbol 35 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 57 MovieClip in Frame 1
onClipEvent (load) {
swapDepths(2000);
}
Frame 2
stop();
cameralens = 20;
fisheye = 2;
midpiont = 200;
xmidpiont = 300;
paused = false;
hunter._accProps = new Object();
hunter._accProps.silent = false;
Instance of Symbol 4 MovieClip "back" in Frame 2
onClipEvent (enterFrame) {
if (_root.paused == false) {
_x = devay;
_y = ((-_root._ymouse) + _root.xmidpiont);
}
devay = ((-(((((_root.cam.angle / Math.PI) % 2) + 2) % 2) - 1)) * _width) / 4;
}
Instance of Symbol 60 MovieClip "cam" in Frame 2
onClipEvent (load) {
_root.test = "";
timereamining = -1;
resetangle = 13.5;
width = 400;
halfwidth = width / 2;
if (_root.level == 4) {
timereamining = 5000;
}
if (_root.level == 5) {
timereamining = 4000;
}
if (_root.level == 6) {
timereamining = 3000;
}
if (_root.level == 7) {
timereamining = 2100;
}
}
onClipEvent (enterFrame) {
_root.moneya = "$" add _root.money;
_root.levela = "Level:" add _root.level;
if (timereamining == 0) {
_root.gotoAndStop(8);
}
if (_root.paused == false) {
if (_root.level >= 4) {
timereamining--;
_root.test = "time remaining " add timereamining;
}
}
if (_root.money < 0) {
_root.paused = false;
_root.gotoAndStop(9);
}
if ((((((_root.ta == false) & (_root.tb == false)) & (_root.tc == false)) & (_root.td == false)) & (_root.te == false)) & (_root.tf == false)) {
_root.ta = true;
_root.tb = true;
_root.tc = true;
_root.td = true;
_root.te = true;
_root.tf = true;
_root.tg = true;
_root.th = true;
_root.level = _root.level + 1;
_root.gotoAndStop(3);
}
if (_root.paused == false) {
if (_root._ymouse < 150) {
if (_root.hunter.gun.gun._currentframe < 20) {
_root.hunter.gun._yscale = (-_root._ymouse) + 170;
_root.hunter.gun._xscale = 100;
} else {
if (_root.hunter.gun._currentframe > 100) {
_root.hunter.gun._yscale = 100;
_root.hunter.gun._xscale = -100;
_root.hunter.gun.gotoAndStop(101);
}
if (_root.hunter.gun._currentframe < 100) {
_root.hunter.gun._yscale = 100;
_root.hunter.gun._xscale = 100;
}
}
if (_root._xmouse > halfwidth) {
_root.hunter.gun.gotoAndStop(Math.round((_root._xmouse - 200) / 2) + 101);
_root.hunter.armr._rotation = (_root._ymouse / 2) - 40;
_root.hunter.armr.gotoAndStop(Math.round(_xmouse / 10) + 1);
_root.hunter.arml.gotoAndStop(Math.round(_xmouse / 10) + 2);
_root.hunter.arml._rotation = 0;
}
if (_root._xmouse < halfwidth) {
_root.hunter.gun.gotoAndStop(Math.round(((-_root._xmouse) + 200) / 2));
_root.hunter.armr._rotation = ((-(_root._ymouse / 5)) + ((-_root._ymouse) / 5)) + 90;
_root.hunter.armr.gotoAndStop(Math.round(_xmouse / 10));
_root.hunter.arml._rotation = ((-(_root._ymouse / 5)) + ((-_root._ymouse) / 5)) + 40;
_root.hunter.arml.gotoAndStop(Math.round((-_xmouse) / 10) + 20);
}
} else {
_root.hunter.gun._yscale = _root.hunter.gun._yscale;
_root.hunter.gun.stop();
}
_root.hunter._y = ((-_root._ymouse) + _root.xmidpiont) + 150;
_root.onMouseDown = function () {
if (_root.paused == false) {
if (_root.hunter._currentframe == 1) {
if ((_root.guntype == 1) & (_root.hunter._currentframe < 40)) {
_root.hunter.gotoAndPlay(41);
}
if ((_root.guntype == 2) & (_root.hunter._currentframe < 40)) {
_root.hunter.gotoAndPlay(41);
}
if (_root.guntype >= 3) {
_root.hunter.gun.gun.play();
}
}
}
};
}
_root.wanisingpiton = _ymouse;
if (_root.paused == false) {
if (_xmouse > (halfwidth + 50)) {
angle = angle + (((_root._xmouse - 250) / width) / 2);
_root.hunter.hat.gotoAndStop(Math.round((_root._xmouse - 250) / 15) + 11);
} else {
_root.hunter.hat.gotoAndStop(1);
}
if (_xmouse < (halfwidth - 50)) {
angle = angle + (((_root._xmouse - 150) / width) / 2);
_root.hunter.hat.gotoAndStop(Math.round((-_root._xmouse) / 15) + 10);
}
if (Key.isDown(39)) {
angle = angle + 0.05;
}
if (Key.isDown(37)) {
angle = angle - 0.05;
}
if ((angle >= resetangle) | (angle <= ((-resetangle) + 2))) {
angle = 1;
}
if (_root.hunter._currentframe == 1) {
if (Key.isDown(38)) {
_root.hunter.legs.play();
y = y + Math.cos(angle);
x = x + Math.sin(angle);
}
if (Key.isDown(40)) {
if (_root.hunter.legs._currentframe <= 15) {
_root.hunter.legs.gotoAndPlay(17);
}
y = y - Math.cos(angle);
x = x - Math.sin(angle);
}
if (Key.isDown(77)) {
if (_root.hunter.legs._currentframe <= 29) {
_root.hunter.legs.gotoAndPlay(30);
}
y = y - Math.sin(angle);
x = x + Math.cos(angle);
}
if (Key.isDown(78)) {
if (_root.hunter.legs._currentframe <= 37) {
_root.hunter.legs.gotoAndPlay(38);
}
y = y + Math.sin(angle);
x = x - Math.cos(angle);
}
if (((Key.isDown(78) | Key.isDown(77)) | Key.isDown(38)) | Key.isDown(40)) {
} else {
_root.hunter.legs.gotoAndStop(1);
}
}
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = 10;
this.y = 50;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
health = 5;
gotoAndStop (1);
moneyforgetting = 20 * _root.level;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = 100;
this.y = 200;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
moneyforgetting = 20 * _root.level;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = 250;
this.y = 10;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
moneyforgetting = 20 * _root.level;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = 100;
this.y = 250;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
moneyforgetting = 20 * _root.level;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
moneyforgetting = 20 * _root.level;
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = -100;
this.y = -150;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 200;
this.y = 500;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -1000;
this.y = 500;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -750;
this.y = 500;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -150;
this.y = -200;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -200;
this.y = 400;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 400;
this.y = -500;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -300;
this.y = 500;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 100;
this.y = 100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -100;
this.y = 100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -100;
this.y = 100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -100;
this.y = -100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -100;
this.y = 50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 50;
this.y = -60;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -30;
this.y = -50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 25;
this.y = 50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -25;
this.y = 10;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 10;
this.y = -50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 1000;
this.y = 40;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = 0;
this.y = 0;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -70;
this.y = -50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 2
onClipEvent (load) {
this.x = -20;
this.y = -10;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 191 MovieClip "hunter" in Frame 2
onClipEvent (enterFrame) {
if (_root.guntype == 1) {
_root.gunrange = 20;
} else if (_root.guntype == 2) {
_root.gunrange = 30;
} else if (_root.guntype == 3) {
_root.gunrange = 50;
} else {
_root.gunrange = 100;
}
this.swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
moneyforgetting = 20 * _root.level;
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = -300;
this.y = -100;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 193 MovieClip in Frame 2
onClipEvent (load) {
this.x = -224;
this.y = -234;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
Instance of Symbol 193 MovieClip in Frame 2
onClipEvent (load) {
this.x = -220;
this.y = -230;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
Instance of Symbol 193 MovieClip in Frame 2
onClipEvent (load) {
this.x = -222;
this.y = -230;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
Instance of Symbol 195 MovieClip in Frame 2
onClipEvent (load) {
this.x = -226;
this.y = -236;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 30;
deathanimationat = 13;
this.x = 20 + ((Math.random(1) * _root.level) * 2);
this.y = -10 + ((Math.random(1) * _root.level) * 2);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.a._x = 100;
_root.radara.a._y = 100;
_root.ta = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.a._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.a._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 30;
deathanimationat = 13;
this.x = 20 + ((Math.random(1) * _root.level) * 2);
this.y = 20 + ((Math.random(1) * _root.level) * 2);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
_root.gunrange = 50;
if (_root.guntype == 4) {
_root.gunrange = 100;
}
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.b._x = 100;
_root.radara.b._y = 100;
_root.tb = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.b._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.b._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 30;
deathanimationat = 13;
this.x = 20 + ((Math.random(1) * _root.level) * 4);
this.y = 22 + ((Math.random(1) * _root.level) * 4);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.c._x = 100;
_root.radara.c._y = 100;
_root.tc = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.c._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.c._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 24;
deathanimationat = 13;
this.x = 30 + ((Math.random(1) * _root.level) * 4);
this.y = 50 + ((Math.random(1) * _root.level) * 4);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.d._x = 100;
_root.radara.d._y = 100;
_root.td = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.d._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.d._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
moneyforgetting = 20 * _root.level;
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = 100;
this.y = 75;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 154 MovieClip in Frame 2
onClipEvent (load) {
moneyforgetting = 20 * _root.level;
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("elephant");
health = 5;
this.x = -150;
this.y = -50;
speed = (1 * _root.level) / 8;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
_root.gunrange = 12 + _root.level;
AIMODE = 0;
gunrange = 50;
if (_root.guntype == 4) {
gunrange = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe < 12) {
if (health > 0) {
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
if (_root.paused == false) {
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + gunrange)) & (y > (_root.cam.y - gunrange))) & (x < (_root.cam.x + gunrange))) & (x > (_root.cam.x - gunrange))) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_root.guntype >= 3)) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
}
}
}
};
}
if (((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) & (_currentframe < 12)) {
if (health <= 2) {
AIMODE = 1;
gotoAndStop (11);
if ((hitTest(_root.hunter.attackarea2) & (_y < _root.hunter._y)) & (attack._currentframe == 9)) {
_root.health = _root.health - ((10 * _root.level) / 2);
}
}
if (_root.hunter._currentframe == 44) {
health = health - 1;
hit.start(0, 0);
if (health == 0) {
a.start(0, 0);
}
if (_root.guntype == 2) {
health = 0;
}
}
} else {
AIMODE = 0;
}
if (this.hitTest(_root.hunter.feet)) {
_root.hunter.gotoAndPlay(2);
}
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
if (AIMODE == 0) {
gotoAndStop(angletocarmera + direction);
this.body.blood.gotoAndPlay(((-health) + 5) + 1);
}
} else {
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
angletocarmera = Math.round(angle * 1.2) + 5;
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet)) {
_root.money = _root.money + moneyforgetting;
gotoAndPlay (12);
}
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if ((health > 0) & (AIMODE == 0)) {
if (y < (_root.cam.y + walkawydistande)) {
if (y > (_root.cam.y - walkawydistande)) {
if (x < (_root.cam.x + walkawydistande)) {
if (x > (_root.cam.x - walkawydistande)) {
this.body.Play();
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
}
}
}
}
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 277 MovieClip "sound" in Frame 2
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
stopAllSounds();
}
if (_root.soundloop == true) {
gotoAndStop (2);
}
if (_root.soundloop == false) {
gotoAndStop (1);
}
}
Instance of Symbol 195 MovieClip in Frame 2
onClipEvent (load) {
this.x = 75.2;
this.y = -53;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 195 MovieClip in Frame 2
onClipEvent (load) {
this.x = -56.2;
this.y = 50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 195 MovieClip in Frame 2
onClipEvent (load) {
this.x = 71.5;
this.y = 76;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 279 MovieClip in Frame 2
onClipEvent (load) {
this.x = 50;
this.y = 50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 279 MovieClip in Frame 2
onClipEvent (load) {
this.x = 50;
this.y = -50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 279 MovieClip in Frame 2
onClipEvent (load) {
this.x = -50;
this.y = 50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 279 MovieClip in Frame 2
onClipEvent (load) {
this.x = -50;
this.y = -50;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 30;
deathanimationat = 13;
this.x = 40 + ((Math.random(1) * _root.level) * 4);
this.y = 60 + ((Math.random(1) * _root.level) * 4);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.e._x = 100;
_root.radara.e._y = 100;
_root.te = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.e._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.e._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 291 MovieClip "radara" in Frame 2
onClipEvent (load) {
_visible = true;
if (_root.radar == false) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.loada == true) {
_visible = true;
if (_root.radar == false) {
_visible = false;
}
}
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 3) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 3) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 4) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 4) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 5) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = -100 + ((Math.random(1) * _root.level) * 2);
this.y = -100 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 100 + ((Math.random(1) * _root.level) * 2);
this.y = 100 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
_root.gunrange = 50;
if (_root.guntype == 4) {
_root.gunrange = 100;
}
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 5) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 429 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("metal");
hitb = new Sound(this);
hitb.attachSound("hitb");
deathamount = 7;
health = 2;
invisibleframe = 21;
deathanimationat = 27;
this.x = -100 + ((Math.random(1) * _root.level) * 2);
this.y = -100 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 8;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 5) {
gotoAndStop (28);
}
if (_currentframe >= deathanimationat) {
gotoAndStop (28);
removeMovieClip(this);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
gotoAndStop(angletocarmera + direction);
if (this.hitTest(_root.hunter.feet) & (_currentframe <= deathanimationat)) {
_root.hunter.gotoAndPlay(2);
}
if (this.hitTest(_root.hunter.feet) & (_currentframe >= deathanimationat)) {
play();
}
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if ((_root.paused == false) & (_currentframe < (deathanimationat - 1))) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(invisibleframe);
}
}
}
if (hitTest(_root.hunter.feet)) {
play();
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(invisibleframe);
hitb.start(0, 0);
health = -1;
}
if (((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) {
this.body.Play();
i++;
if (i > 5) {
if ((_x < 130) & (direction < 9)) {
direction = direction - 1;
}
if ((_x > 240) & (direction > 0)) {
direction = direction + 1;
}
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
this.swapDepths(_y * 4);
}
Instance of Symbol 195 MovieClip in Frame 2
onClipEvent (load) {
this.x = -71.5;
this.y = 76;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
}
Instance of Symbol 274 MovieClip in Frame 2
onClipEvent (load) {
hit = new Sound(this);
hit.attachSound("hitseal");
hitb = new Sound(this);
hitb.attachSound("hitb");
a = new Sound(this);
a.attachSound("coolsound");
invisibleframe = 30;
deathanimationat = 13;
this.x = 100 + ((Math.random(1) * _root.level) * 4);
this.y = 120 + ((Math.random(1) * _root.level) * 4);
walkawydistande = 40 * (_root.level / 4);
speed = 0.2;
direction = Math.round(Math.random(7)) + 1;
deathamount = 7;
health = 2;
randomwalkinveral = 20;
walkatstart = Math.round(Math.random(1));
}
onClipEvent (enterFrame) {
if (_currentframe >= 17) {
_root.radara.f._x = 100;
_root.radara.f._y = 100;
_root.tf = false;
}
if (_root._currentframe == 2) {
if (_currentframe < invisibleframe) {
_root.radara.f._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.f._y = (y - _root.cam.y) / _root.radarsesitivity;
angletocarmera = Math.round(angle * 1.2) + 5;
if ((angletocarmera + direction) <= 0) {
direction = direction + 8;
}
if ((angletocarmera + direction) >= 9) {
direction = direction - 8;
}
if ((angletocarmera + direction) <= 0) {
angletocarmera = 1;
}
if ((angletocarmera + direction) >= 9) {
angletocarmera = 1;
}
if (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((((y < (_root.cam.y + _root.gunrange)) & (y > (_root.cam.y - _root.gunrange))) & (x < (_root.cam.x + _root.gunrange))) & (x > (_root.cam.x - _root.gunrange))) {
if (((_root.hunter.gun.gun._currentframe == 2) & (_root.guntype >= 3)) & (_currentframe < 12)) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
}
}
}
if (hitTest(_root.hunter.crange) & (_y < _root.hunter._y)) {
if (_root.hunter._currentframe == 44) {
hit.start(0, 0);
health = health - 1;
walk = true;
walkatstart = 0;
if (_root.guntype == 2) {
health = 0;
}
}
}
if (health == 0) {
gotoAndPlay(deathanimationat);
a.start(0, 0);
hitb.start(0, 0);
health = -1;
}
if (walkatstart == 1) {
walktimer++;
if (walktimer > randomwalkinveral) {
walk = true;
}
if (walktimer > (randomwalkinveral * 2)) {
walk = false;
walktimer = 0;
}
}
if (((((((y < (_root.cam.y + walkawydistande)) & (y > (_root.cam.y - walkawydistande))) & (x < (_root.cam.x + walkawydistande))) & (x > (_root.cam.x - walkawydistande))) & (_currentframe < deathanimationat)) & (health == 1)) | ((walk == true) & (_currentframe < deathanimationat))) {
this.body.Play();
i++;
if (i > 10) {
direction = Math.round(_root.cam.angle / 1.7);
i = 0;
}
if (direction <= 0) {
direction = direction + 8;
}
if (direction >= 9) {
direction = direction - 8;
}
if (direction == 1) {
y = y - speed;
x = x - speed;
}
if (direction == 2) {
x = x - speed;
}
if (direction == 3) {
y = y + speed;
x = x - speed;
}
if (direction == 4) {
y = y + speed;
}
if (direction == 5) {
y = y + speed;
x = x + speed;
}
if (direction == 6) {
x = x + speed;
}
if (direction == 7) {
y = y - speed;
x = x + speed;
}
if (direction == 8) {
y = y - speed;
}
} else {
this.body.gotoAndStop(1);
}
var xdiff = (x - _root.cam.x);
var ydiff = (y - _root.cam.y);
var dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
var angle = Math.atan2(ydiff, xdiff);
var tempx = (dist * Math.cos(angle + _root.cam.angle));
var tempy = ((dist * Math.sin(angle + _root.cam.angle)) / _root.fisheye);
_y = (((500 / tempy) - _root._ymouse) + _root.xmidpiont);
_x = (((100 * tempx) / tempy) + _root.midpiont);
_xscale = (500 / tempy);
_yscale = (500 / tempy);
if (tempy < 0) {
_visible = false;
} else {
_visible = true;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 432 MovieClip in Frame 2
onClipEvent (enterFrame) {
_xscale = _root.health;
if (_root.health <= 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 464 MovieClip "ingamemenu" in Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (_root._currentframe != 2) {
_visible = false;
removeMovieClip(this);
MovieClip.removeMovieClip();
}
if (_root.paused == true) {
_visible = true;
} else {
_visible = false;
}
}
Frame 3
if (_root.level == 4) {
_root.dg.gotoAndStop(4);
}
if (_root.level >= 8) {
_root.gotoAndStop(6);
}
_root.cam.x = 0;
_root.cam.y = 0;
_root.cam.angle = 0;
health = 100;
stop();
stopAllSounds();
_root.ta = true;
_root.tb = true;
_root.tc = true;
_root.td = true;
_root.te = true;
_root.tf = true;
_root.tg = true;
_root.th = true;
Instance of Symbol 547 MovieClip "dg" in Frame 3
onClipEvent (enterFrame) {
_root.ta = true;
_root.tb = true;
_root.tc = true;
_root.td = true;
_root.te = true;
_root.tf = true;
_root.tg = true;
_root.th = true;
}
Instance of Symbol 579 MovieClip in Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
_root.levela = "Level:" add _root.level;
if (Key.isDown(67)) {
i++;
}
if (i > 20) {
_visible = true;
}
}
Instance of Symbol 604 MovieClip "message" in Frame 3
onClipEvent (load) {
if (_root.level == 2) {
this.gotoAndStop(4);
}
if (_root.level == 3) {
this.gotoAndStop(5);
}
if (_root.level == 4) {
this.gotoAndStop(6);
}
if (_root.level == 5) {
this.gotoAndStop(7);
}
if (_root.level == 6) {
this.gotoAndStop(8);
}
if (_root.level == 7) {
this.gotoAndStop(9);
}
}
Instance of Symbol 606 MovieClip "sound" in Frame 3
onClipEvent (enterFrame) {
if (_root._currentframe != 3) {
stopAllSounds();
}
if (_root.soundloop == true) {
gotoAndStop (2);
}
if (_root.soundloop == false) {
gotoAndStop (1);
}
}
Instance of Symbol 606 MovieClip "sound" in Frame 5
onClipEvent (enterFrame) {
if (_root.soundloop == true) {
gotoAndStop (2);
}
if (_root.soundloop == false) {
stopAllSounds();
gotoAndStop (1);
}
}
Frame 6
stop();
stopAllSounds();
Instance of Symbol 681 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 683 MovieClip in Frame 6
onClipEvent (load) {
if (_root.money >= 15000) {
_visible = false;
}
}
Frame 7
stop();
stopAllSounds();
Instance of Symbol 722 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Frame 8
stop();
stopAllSounds();
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe >= 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe >= 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 740 MovieClip in Frame 8
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.cosshair.hit) & (_root.cosshair._currentframe >= 2)) {
dead = true;
play();
}
if (dead == false) {
_y = (_y + 10);
}
if ((_y > 400) | (_currentframe == 7)) {
dead = false;
gotoAndStop (1);
_y = -20;
_x = (Math.random(1) * 400);
}
}
Instance of Symbol 749 MovieClip "cosshair" in Frame 8
onClipEvent (load) {
stop();
i = 0;
seconds = 0;
_root.lsec = 0;
_root.lcon = 0;
_root.lconb = 0;
}
onClipEvent (enterFrame) {
if (seconds >= 1400) {
if (_root.lconb < 250) {
_root.gotoAndStop(6);
seconds = 0;
_root.lsec = 0;
_root.lcon = 0;
_root.lconb = 0;
}
if (_root.lconb >= 250) {
_root.gotoAndStop(11);
seconds = 0;
_root.lsec = 0;
_root.lcon = 0;
_root.lconb = 0;
}
}
seconds++;
_root.lsec = "seconds:" add Math.round(seconds / 20);
_root.lcon = "boats" add _root.lconb;
_x = _root._xmouse;
_y = _root._ymouse;
if ((i == 1) & (_currentframe == 1)) {
play();
}
if ((i == 0) & (_currentframe == 1)) {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
i = 1;
}
onClipEvent (mouseUp) {
i = 0;
}
Frame 9
stop();
stopAllSounds();
_root.paused = false;
Instance of Symbol 722 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Frame 10
stop();
stopAllSounds();
_root.paused = false;
Frame 11
stop();
stopAllSounds();
Instance of Symbol 836 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndStop(3);
}
}
Symbol 10 Button
on (release) {
_root.levela = "Level:1";
_root.radarsesitivity = 10;
_root.level = 1;
_root.money = 0;
_root.radar = false;
_root.guntype = 1;
_root.soundloop = true;
gotoAndStop (12);
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 29 Button
on (release) {
play();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
fscommand ("showmenu", "False");
Stage.showMenu = false;
_root.per = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.kbsec = Math.round(kBytesSec) add " kilobytes p/sec";
_root.bar.bar._xscale = _root.per;
Math.round(per);
mess = "waiting time: ";
_root.rotater._rotation = _root.rotater._rotation + (_root.per / 1.5);
if (_root.per == 100) {
_root.playb._visible = true;
_root.kbsec = "finished, click play";
} else {
_root.playb._visible = false;
}
kBytesLoaded = _root.getBytesLoaded() / 1024;
kBytesTotal = _root.getBytesTotal() / 1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
kBytesSec = kBytesLoaded / (getTimer() / 1000);
timeRemaininga = Math.round(kBytesRemaining / kBytesSec);
if (timeRemaininga < 61) {
_root.timeRemaining = (mess add timeRemaininga) add " second/s";
} else if ((timeRemaininga > 60) && (timeRemaininga < 3601)) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 60)) add " minute/s";
} else if (timeRemaininga > 3600) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 3600)) add " hour/s";
} else {
_root.timeRemaining = "waiting time too big. dwonload from www.Tcartoon.com";
}
Symbol 46 MovieClip Frame 2
gotoAndPlay (1);
Symbol 54 Button
on (release) {
getURL ("http://www.tcartoon.com", _top);
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 14
gotoAndPlay (1);
Symbol 81 MovieClip Frame 15
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 14
gotoAndPlay (1);
Symbol 95 MovieClip Frame 15
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 14
gotoAndPlay (2);
Symbol 109 MovieClip Frame 15
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 14
gotoAndPlay (1);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 14
gotoAndPlay (1);
Symbol 137 MovieClip Frame 15
stop();
Symbol 154 MovieClip Frame 38
stop();
_parent.thisname = false;
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 15
gotoAndPlay (2);
Symbol 165 MovieClip Frame 29
gotoAndPlay (16);
Symbol 165 MovieClip Frame 37
gotoAndPlay (30);
Symbol 165 MovieClip Frame 45
gotoAndPlay (38);
Symbol 182 MovieClip Frame 1
stop();
Instance of Symbol 170 MovieClip in Symbol 182 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.guntype);
}
Symbol 182 MovieClip Frame 2
if (_root.guntype == 3) {
a = new Sound(this);
a.attachSound("shot");
a.start(0, 0);
}
if (_root.guntype == 4) {
a = new Sound(this);
a.attachSound("shotb");
a.start(0, 0);
}
Symbol 182 MovieClip Frame 3
if (_root.guntype == 4) {
gotoAndStop (1);
}
Symbol 182 MovieClip Frame 19
gotoAndStop (1);
Symbol 184 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Instance of Symbol 157 MovieClip "feet" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 159 MovieClip "attackarea" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 159 MovieClip "attackarea2" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 191 MovieClip Frame 2
play();
Symbol 191 MovieClip Frame 40
_root.gotoAndPlay(7);
stop();
Symbol 191 MovieClip Frame 41
play();
Instance of Symbol 159 MovieClip "crange" in Symbol 191 MovieClip Frame 41
onClipEvent (load) {
_visible = false;
}
Symbol 191 MovieClip Frame 46
gotoAndStop (1);
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 14
gotoAndPlay (2);
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 14
gotoAndPlay (2);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 14
gotoAndPlay (2);
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 14
gotoAndPlay (2);
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 14
gotoAndPlay (2);
Symbol 274 MovieClip Frame 13
play();
Symbol 274 MovieClip Frame 33
_root.money = _root.money + (5 * _root.level);
stop();
Symbol 277 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 277 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 19
gotoAndPlay (2);
Symbol 355 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 21
_root.money = _root.money + Math.round(_root.money * 0.2);
Symbol 429 MovieClip Frame 27
gotoAndStop (28);
Symbol 429 MovieClip Frame 28
stop();
Symbol 438 Button
on (release) {
_root.paused = false;
}
Symbol 445 Button
on (release) {
_quality = "low";
}
Symbol 448 Button
on (release) {
_quality = "medium";
}
Symbol 452 Button
on (release) {
_quality = "high";
}
Symbol 455 Button
on (release) {
_quality = "best";
}
Symbol 458 Button
on (release) {
i++;
if (i == 1) {
if (_root.soundloop == true) {
_root.soundloop = false;
}
}
if (i == 2) {
i = 0;
if (_root.soundloop == false) {
_root.soundloop = true;
}
}
}
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
stop();
Symbol 463 Button
on (release) {
_root.gotoAndStop(4);
_root.paused = false;
}
Instance of Symbol 461 MovieClip "s" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundloop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 470 Button
on (release) {
if ((_root.hunter._currentframe == 1) | ((_root.hunter._currentframe >= 40) & (_root.hunter._currentframe <= 45))) {
_root.paused = true;
_root.hunter.legs.gotoAndStop(1);
}
}
Symbol 477 Button
on (release) {
if ((_root.money >= 200) & (_root.guntype <= 1)) {
_root.guntype = 2;
_root.money = _root.money - 200;
}
}
Symbol 481 Button
on (release) {
if ((_root.money >= 1500) & (_root.guntype <= 2)) {
_root.guntype = 3;
_root.money = _root.money - 1500;
}
}
Symbol 485 Button
on (release) {
if ((_root.money >= 3000) & (_root.guntype <= 3)) {
_root.guntype = 4;
_root.money = _root.money - 3000;
}
}
Symbol 489 Button
on (release) {
if ((_root.money >= 500) & (_root.radar == false)) {
_root.radar = true;
_root.money = _root.money - 500;
}
}
Symbol 495 Button
on (release) {
if (_root.money >= 2000) {
_root.radarsesitivity = _root.radarsesitivity + 5;
_root.money = _root.money - 2000;
}
}
Instance of Symbol 491 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 491 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 491 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 491 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.radar == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 547 MovieClip Frame 1
stop();
Instance of Symbol 496 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (load) {
if (_root.level > 1) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.level > 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 553 Button
on (release) {
_root.guntype = 2;
}
Symbol 554 Button
on (release) {
_root.guntype = 1;
}
Symbol 555 Button
on (release) {
_root.guntype = 3;
}
Symbol 556 Button
on (release) {
_root.guntype = 4;
}
Symbol 557 Button
on (release) {
_root.radar = true;
}
Symbol 564 Button
on (release) {
_root.level = 2;
}
Symbol 566 Button
on (release) {
_root.level = 3;
}
Symbol 567 Button
on (release) {
_root.level = 4;
}
Symbol 568 Button
on (release) {
_root.level = 5;
}
Symbol 569 Button
on (release) {
_root.level = 6;
}
Symbol 570 Button
on (release) {
_root.level = 7;
}
Symbol 575 Button
on (release) {
_root.money = 40000;
}
Symbol 576 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 584 MovieClip Frame 80
stop();
_root.dg.dg.head.gotoAndStop(1);
Symbol 587 Button
on (release) {
_root.message.play();
_root.dg.dg.head.gotoAndStop(1);
_root.message.dd.gotoAndPlay(1);
}
Symbol 593 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 2
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 3
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 4
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 5
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 6
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 7
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 8
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 604 MovieClip Frame 9
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 606 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 606 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 4
stop();
Symbol 613 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 617 MovieClip Frame 4
stop();
Symbol 619 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 623 MovieClip Frame 4
stop();
Symbol 624 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 631 Button
on (release) {
gotoAndPlay (16);
}
Symbol 632 Button
on (release) {
play();
}
Symbol 635 Button
on (release) {
gotoAndPlay (26);
}
Symbol 637 Button
on (release) {
gotoAndPlay (21);
}
Symbol 639 Button
on (release) {
gotoAndPlay (2);
}
Symbol 640 Button
on (release) {
gotoAndPlay (11);
}
Symbol 641 Button
on (release) {
gotoAndPlay (6);
}
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 5
stop();
Symbol 642 MovieClip Frame 10
stop();
Symbol 642 MovieClip Frame 15
stop();
Symbol 642 MovieClip Frame 20
stop();
Symbol 642 MovieClip Frame 25
stop();
Symbol 646 Button
on (release) {
_root.menu.saveGame();
}
Symbol 648 Button
on (press) {
_root.menu.loadGame();
}
Symbol 658 MovieClip Frame 1
stop();
Symbol 659 Button
on (release) {
_quality = "low";
}
on (rollOver) {
_root.menu.help.gotoAndStop(5);
}
Symbol 660 Button
on (release) {
_quality = "medium";
}
on (rollOver) {
_root.menu.help.gotoAndStop(6);
}
Symbol 661 Button
on (release) {
_quality = "high";
}
on (rollOver) {
_root.menu.help.gotoAndStop(7);
}
Symbol 662 Button
on (release) {
_quality = "best";
}
on (rollOver) {
_root.menu.help.gotoAndStop(8);
}
Symbol 664 Button
on (release) {
i++;
if (i == 1) {
if (_root.soundloop == true) {
_root.soundloop = false;
}
}
if (i == 2) {
i = 0;
if (_root.soundloop == false) {
_root.soundloop = true;
}
}
}
on (rollOver) {
_root.menu.help.gotoAndStop(9);
}
Symbol 666 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 669 MovieClip Frame 1
function saveGame() {
saved = true;
trace("Saved Game");
myObj = {};
myObj.objArray = new Array(7);
myObj.objArray[0] = saved;
myObj.objArray[1] = _root.level;
myObj.objArray[2] = _root.money;
myObj.objArray[3] = _root.guntype;
myObj.objArray[4] = _root.radar;
myObj.objArray[5] = _root.radarsesitivity;
myObj.objArray[6] = _root.soundloop;
_root.menu.help.gotoAndStop(3);
myLSO.data.myObj = myObj;
_root.menu.load._visible = true;
}
function loadGame() {
myLSO = SharedObject.getLocal("hunter5");
if (canload == true) {
trace("Loaded Game");
_root.pause = false;
saved = myLSO.data.myObj.objArray[0];
_root.level = myLSO.data.myObj.objArray[1];
_root.money = myLSO.data.myObj.objArray[2];
_root.guntype = myLSO.data.myObj.objArray[3];
_root.radar = myLSO.data.myObj.objArray[4];
_root.radarsesitivity = myLSO.data.myObj.objArray[5];
_root.soundloop = myLSO.data.myObj.objArray[6];
_root.menu.help.gotoAndStop(2);
} else {
trace("no gamefound");
_root.menu.help.gotoAndStop(4);
}
}
myLSO = SharedObject.getLocal("hunter5");
if (myLSO.data.myObj.objArray[0] > "0") {
canload = true;
} else {
canload = false;
}
Instance of Symbol 461 MovieClip "s" in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundloop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 19
gotoAndPlay (5);
Symbol 705 Button
on (release) {
i++;
if ((i >= 10) & (_root.money >= 15000)) {
_root.gotoAndPlay(8);
i = 0;
}
}
Symbol 711 Button
on (release) {
getURL ("http://www.tcartoon.com", "_top");
}
Symbol 712 MovieClip Frame 35
stop();
Symbol 714 Button
on (release) {
_root.radarsesitivity = 10;
_root.levela = "Level:1";
_root.level = 1;
_root.money = 0;
_root.guntype = 1;
_root.radar = false;
gotoAndPlay (3);
}
Symbol 717 MovieClip Frame 12
stop();
Symbol 727 MovieClip Frame 12
stop();
Symbol 733 Button
on (release) {
stopAllSounds();
gotoAndPlay (4);
stopAllSounds();
}
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 7
stop();
_root.lconb = _root.lconb + 1;
Symbol 749 MovieClip Frame 1
stop();
Instance of Symbol 743 MovieClip "hit" in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 750 MovieClip Frame 12
stop();
Symbol 755 Button
on (release) {
_root.radarsesitivity = 10;
_root.levela = "Level:1";
_root.level = 1;
_root.money = 0;
_root.guntype = 1;
_root.radar = false;
gotoAndStop (3);
}
Symbol 761 Button
on (release) {
stopAllSounds();
gotoAndStop (6);
stopAllSounds();
}
Symbol 770 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 835 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 836 MovieClip Frame 1394
stop();