Frame 1
_accProps = new Object();
_accProps.silent = false;
_accProps.name = "ivory hunter";
_accProps.description = "game";
stop();
stopAllSounds();
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Frame 2
stop();
cameralens = 25;
fisheye = 2;
midpiont = 200;
xmidpiont = 300;
paused = false;
hunter._accProps = new Object();
hunter._accProps.silent = false;
Instance of Symbol 9 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 58 MovieClip "cam" in Frame 2
onClipEvent (load) {
_root.test = "";
timereamining = -1;
resetangle = 13.5;
width = 400;
halfwidth = width / 2;
if (_root.level == 4) {
timereamining = 8000;
}
if (_root.level == 5) {
timereamining = 7000;
}
if (_root.level == 6) {
timereamining = 5000;
}
if (_root.level == 7) {
timereamining = 3000;
}
}
onClipEvent (enterFrame) {
loadtimer++;
if (loadtimer == 2) {
_root.loada = false;
loadtimer = 0;
}
_root.moneya = "$" add _root.money;
_root.levela = "Level:" add _root.level;
if (timereamining == 0) {
_root.gotoAndStop(7);
}
if (_root.paused == false) {
if (_root.level >= 4) {
timereamining--;
_root.test = "time remaining " add timereamining;
}
}
if (((((_root.ta == false) & (_root.tb == false)) & (_root.tc == false)) & (_root.td == false)) & (_root.te == false)) {
_root.level = _root.level + 1;
_root.gotoAndStop(3);
}
if (_root.paused == false) {
if (_root._ymouse < 200) {
_root.hunter.gun._yscale = (-_root._ymouse) + 170;
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) {
_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))) {
angle = 1;
}
if (_root.hunter._currentframe == 1) {
if (Key.isDown(38)) {
y = y + Math.cos(angle);
x = x + Math.sin(angle);
}
if (Key.isDown(40)) {
y = y - Math.cos(angle);
x = x - Math.sin(angle);
}
if (Key.isDown(38)) {
_root.hunter.legs.play();
}
if (Key.isDown(40)) {
if (_root.hunter.legs._currentframe <= 15) {
_root.hunter.legs.gotoAndPlay(17);
}
}
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 <= 29) {
_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 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = 10;
this.y = 50;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
x = _root.eax;
y = _root.eay;
} else {
_root.eay = y;
_root.eax = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.ea = true;
}
if (_currentframe > 12) {
_root.ea = false;
} else if (_root.ea == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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) {
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 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = 100;
this.y = 200;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.ebx;
this.y = _root.eby;
} else {
_root.eby = y;
_root.ebx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.eb = true;
}
if (_currentframe > 12) {
_root.eb = false;
} else if (_root.eb == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = 250;
this.y = 10;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.ecx;
this.y = _root.ecy;
} else {
_root.ecy = y;
_root.ecx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.ec = true;
}
if (_currentframe > 12) {
_root.ec = false;
} else if (_root.ec == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = 100;
this.y = 250;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.edx;
this.y = _root.edy;
} else {
_root.edy = y;
_root.edx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.ed = true;
}
if (_currentframe > 12) {
_root.ed = false;
} else if (_root.ed == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = -100;
this.y = -150;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.eex;
this.y = _root.eey;
} else {
_root.eey = y;
_root.eex = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.ee = true;
}
if (_currentframe > 12) {
_root.ee = false;
} else if (_root.ee == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 149 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 181 MovieClip "hunter" in Frame 2
onClipEvent (enterFrame) {
swapDepths(_y * 4);
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = -300;
this.y = -100;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.efx;
this.y = _root.efy;
} else {
_root.efy = y;
_root.efx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.ef = true;
}
if (_currentframe > 12) {
_root.ef = false;
} else if (_root.ef == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 183 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 183 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 183 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 185 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 224 MovieClip in Frame 2
onClipEvent (load) {
_root.tf = true;
invisibleframe = 25;
deathanimationat = 13;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = -10 + ((Math.random(1) * _root.level) * 2);
speed = 0.6 + (_root.level / 4);
senitivity = 20;
walkawydistfnde = 80 * _root.level;
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
if (_root.loada == true) {
x = _root.tax;
y = _root.tay;
if (_root.ta == true) {
gotoAndPlay (1);
}
if (_root.ta == false) {
gotoAndStop (26);
}
} else {
_root.tay = y;
_root.tax = x;
}
if (_currentframe > invisibleframe) {
_root.radara.a._x = 100;
_root.radara.a._y = 100;
_root.ta = false;
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
_root.radara.a._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.a._y = (y - _root.cam.y) / _root.radarsesitivity;
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 (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_currentframe < deathanimationat)) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("coolsound");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < 24)) {
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 = direction - 1;
}
if (_x > 240) {
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);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 224 MovieClip in Frame 2
onClipEvent (load) {
_root.tb = true;
invisibleframe = 25;
deathanimationat = 13;
this.x = -40 + ((Math.random(1) * _root.level) * 2);
this.y = -50 + ((Math.random(1) * _root.level) * 2);
speed = 0.6 + (_root.level / 4);
senitivity = 20;
walkawydistande = 80 * _root.level;
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
if (_root.loada == true) {
x = _root.tbx;
y = _root.tby;
if (_root.tb == true) {
gotoAndPlay (1);
}
if (_root.tb == false) {
gotoAndStop (26);
}
} else {
_root.tby = y;
_root.tbx = x;
}
if (_currentframe > invisibleframe) {
_root.radara.b._x = 100;
_root.radara.b._y = 100;
_root.tb = false;
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
_root.radara.b._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.b._y = (y - _root.cam.y) / _root.radarsesitivity;
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 (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_currentframe < deathanimationat)) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("coolsound");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < 24)) {
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 = direction - 1;
}
if (_x > 240) {
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;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 224 MovieClip in Frame 2
onClipEvent (load) {
_root.tc = true;
invisibleframe = 25;
deathanimationat = 13;
this.x = -40 + ((Math.random(1) * _root.level) * 2);
this.y = 100 + ((Math.random(1) * _root.level) * 2);
speed = 0.6 + (_root.level / 4);
senitivity = 20;
walkawydistande = 80 * _root.level;
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
if (_root.loada == true) {
x = _root.tcx;
y = _root.tcy;
if (_root.tc == true) {
gotoAndPlay (1);
}
if (_root.tc == false) {
gotoAndStop (26);
}
} else {
_root.tcy = y;
_root.tcx = x;
}
if (_currentframe > invisibleframe) {
_root.radara.c._x = 100;
_root.radara.c._y = 100;
_root.tc = false;
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
_root.radara.c._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.c._y = (y - _root.cam.y) / _root.radarsesitivity;
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 (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_currentframe < deathanimationat)) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("coolsound");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < 24)) {
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 = direction - 1;
}
if (_x > 240) {
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;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 224 MovieClip in Frame 2
onClipEvent (load) {
_root.td = true;
invisibleframe = 25;
deathanimationat = 13;
this.x = 100 + ((Math.random(1) * _root.level) * 2);
this.y = 50 + ((Math.random(1) * _root.level) * 2);
speed = 0.6 + (_root.level / 4);
senitivity = 20;
walkawydistande = 80 * _root.level;
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
if (_root.loada == true) {
x = _root.tdx;
y = _root.tdy;
if (_root.td == true) {
gotoAndPlay (1);
}
if (_root.td == false) {
gotoAndStop (26);
}
} else {
_root.tdy = y;
_root.tdx = x;
}
if (_currentframe > invisibleframe) {
_root.radara.d._x = 100;
_root.radara.d._y = 100;
_root.td = false;
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (_currentframe < invisibleframe) {
_root.radar.d._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radar.d._y = (y - _root.cam.y) / _root.radarsesitivity;
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 (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_currentframe < deathanimationat)) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("coolsound");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < 24)) {
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 = direction - 1;
}
if (_x > 240) {
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;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = 100;
this.y = 75;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.egx;
this.y = _root.egy;
} else {
_root.egy = y;
_root.egx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.eg = true;
}
if (_currentframe > 12) {
_root.eg = false;
} else if (_root.eg == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 147 MovieClip in Frame 2
onClipEvent (load) {
health = 5;
this.x = -150;
this.y = -50;
speed = 0.3 * _root.level;
senitivity = 20;
walkawydistande = 30;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
moneyforgetting = 20 * _root.level;
if (_root.loada == true) {
this.x = _root.ehx;
this.y = _root.ehy;
} else {
_root.ehy = y;
_root.ehx = x;
}
if (_root._currentframe == 3) {
health = 5;
gotoAndStop (1);
_root.eh = true;
}
_root.ehy = y;
_root.ehx = x;
_root.d.l.onRelease = function () {
this.x = _root.ehx;
this.y = _root.ehy;
};
if (_currentframe > 12) {
_root.eh = false;
} else if (_root.eh == false) {
gotoAndPlay (12);
}
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) {
health = health - 1;
if (health >= 1) {
a = new Sound(this);
a.attachSound("elephant");
a.start(0, 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;
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)) {
gotoAndPlay (12);
_root.money = _root.money + moneyforgetting;
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
if (health < 1) {
this.body.gotoAndStop(15);
}
if (_root.paused == false) {
if (health > 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);
health = 5;
gotoAndStop (1);
}
}
Instance of Symbol 227 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 185 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 185 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 185 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 229 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 229 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 229 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 229 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 224 MovieClip in Frame 2
onClipEvent (load) {
_root.te = true;
invisibleframe = 25;
deathanimationat = 13;
this.x = 100 + (_root.level * 4);
this.y = 50 + (_root.level * 4);
speed = 0.6 + (_root.level / 4);
senitivity = 20;
walkawydistande = 80 * _root.level;
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
if (_root.loada == true) {
x = _root.tex;
y = _root.tey;
if (_root.te == true) {
gotoAndPlay (1);
}
if (_root.te == false) {
gotoAndStop (26);
}
} else {
_root.tey = y;
_root.tex = x;
}
if (_currentframe > invisibleframe) {
_root.radara.e._x = 100;
_root.radara.e._y = 100;
_root.te = false;
}
if (_currentframe < invisibleframe) {
_root.radara.e._x = (x - _root.cam.x) / _root.radarsesitivity;
_root.radara.e._y = (y - _root.cam.y) / _root.radarsesitivity;
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 (_currentframe <= 11) {
gotoAndStop(angletocarmera + direction);
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.hunter.gun.gun._currentframe < 2) & (_currentframe < deathanimationat)) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("coolsound");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < invisibleframe)) {
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 = direction - 1;
}
if (_x > 240) {
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;
}
}
}
swapDepths(_y * 4);
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 244 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 249 MovieClip in Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
i++;
if ((_root.level == 1) & (i <= 40)) {
this.swapDepths((_y * 4) + 2000);
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 285 MovieClip "but1" in Frame 2
onClipEvent (load) {
invisibleframe = 20;
deathanimationat = 20;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 4;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 3) {
gotoAndStop(invisibleframe);
}
if (_root.loada == true) {
if (_root.buta == true) {
gotoAndPlay (1);
}
if (_root.buta == false) {
gotoAndStop (20);
removeMovieClip(this);
}
}
if (_currentframe >= invisibleframe) {
_root.buta = false;
} else if (_root.buta == false) {
gotoAndStop(invisibleframe);
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;
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.hunter.gun.gun._currentframe < 2) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("bug");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < (deathanimationat - 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 = direction - 1;
}
if (_x > 240) {
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 285 MovieClip "but2" in Frame 2
onClipEvent (load) {
invisibleframe = 20;
deathanimationat = 20;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 4;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 3) {
gotoAndStop(invisibleframe);
}
if (_root.loada == true) {
if (_root.butb == true) {
gotoAndPlay (1);
}
if (_root.butb == false) {
gotoAndStop (20);
removeMovieClip(this);
}
}
if (_currentframe >= invisibleframe) {
_root.butb = false;
} else if (_root.butb == false) {
gotoAndStop(invisibleframe);
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;
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.hunter.gun.gun._currentframe < 2) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("bug");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < (deathanimationat - 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 = direction - 1;
}
if (_x > 240) {
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 285 MovieClip "but3" in Frame 2
onClipEvent (load) {
invisibleframe = 20;
deathanimationat = 20;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 4;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 4) {
gotoAndStop(invisibleframe);
}
if (_root.loada == true) {
if (_root.butc == true) {
gotoAndPlay (1);
}
if (_root.butc == false) {
gotoAndStop (20);
removeMovieClip(this);
}
}
if (_currentframe >= invisibleframe) {
_root.butc = false;
} else if (_root.butc == false) {
gotoAndStop(invisibleframe);
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;
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.hunter.gun.gun._currentframe < 2) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("bug");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < (deathanimationat - 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 = direction - 1;
}
if (_x > 240) {
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 285 MovieClip "but4" in Frame 2
onClipEvent (load) {
invisibleframe = 20;
deathanimationat = 20;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 4;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 4) {
gotoAndStop(invisibleframe);
}
if (_root.loada == true) {
if (_root.butd == true) {
gotoAndPlay (1);
}
if (_root.butd == false) {
gotoAndStop (20);
removeMovieClip(this);
}
}
if (_currentframe >= invisibleframe) {
_root.butd = false;
} else if (_root.butd == false) {
gotoAndStop(invisibleframe);
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;
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.hunter.gun.gun._currentframe < 2) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("bug");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < (deathanimationat - 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 = direction - 1;
}
if (_x > 240) {
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 285 MovieClip "but5" in Frame 2
onClipEvent (load) {
invisibleframe = 20;
deathanimationat = 20;
this.x = 50 + ((Math.random(1) * _root.level) * 2);
this.y = 10 + ((Math.random(1) * _root.level) * 2);
speed = (0.9 * _root.level) / 4;
senitivity = 20;
walkawydistande = 80 * (_root.level / 2);
runtowards = 10;
direction = Math.round(Math.random(7)) + 1;
}
onClipEvent (enterFrame) {
if (_root.level <= 5) {
gotoAndStop(invisibleframe);
}
if (_root.loada == true) {
if (_root.bute == true) {
gotoAndPlay (1);
}
if (_root.bute == false) {
gotoAndStop (20);
removeMovieClip(this);
}
}
if (_currentframe >= invisibleframe) {
_root.bute = false;
} else if (_root.bute == false) {
gotoAndStop(invisibleframe);
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;
}
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.hunter.gun.gun._currentframe < 2) {
gotoAndPlay(deathanimationat);
a = new Sound(this);
a.attachSound("bug");
a.start(0, 0);
}
}
};
if ((_root.paused == false) & (_currentframe < (deathanimationat - 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 = direction - 1;
}
if (_x > 240) {
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 295 MovieClip in Frame 2
onClipEvent (load) {
swapDepths(2000);
}
Instance of Symbol 334 MovieClip "menu" in Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
swapDepths(1000);
if (_root._currentframe != 2) {
_visible = false;
removeMovieClip(this);
MovieClip.removeMovieClip();
}
if (_root.paused == true) {
_visible = true;
} else {
_visible = false;
}
}
Frame 3
stop();
stopAllSounds();
Instance of Symbol 416 MovieClip "dg" in Frame 3
onClipEvent (load) {
if (_root.level == 8) {
_root.gotoAndStop(4);
}
}
onClipEvent (enterFrame) {
_root.buta = true;
_root.butb = true;
_root.butc = true;
_root.butd = true;
_root.bute = true;
_root.ta = true;
_root.tb = true;
_root.tc = true;
_root.td = true;
_root.te = true;
_root.cam.x = 0;
_root.cam.y = 0;
_root.cam.angle = 0;
_root.ea = true;
_root.eb = true;
_root.ec = true;
_root.ed = true;
_root.ee = true;
_root.ef = true;
_root.eg = true;
_root.eh = true;
_root.eax = 0;
_root.ebx = 0;
_root.ecx = 0;
_root.edx = 0;
_root.eex = 0;
_root.efx = 0;
_root.egx = 0;
_root.ehx = 0;
_root.eay = 0;
_root.eby = 0;
_root.ecy = 0;
_root.edy = 0;
_root.eey = 0;
_root.efy = 0;
_root.egy = 0;
_root.ehy = 0;
_root.tay = 0;
_root.tby = 0;
_root.tcy = 0;
_root.tdy = 0;
_root.tax = 0;
_root.tbx = 0;
_root.tcx = 0;
_root.tdx = 0;
}
Instance of Symbol 439 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);
}
}
Frame 4
stop();
stopAllSounds();
Instance of Symbol 451 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Frame 5
stop();
stopAllSounds();
Instance of Symbol 479 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Frame 6
stop();
Instance of Symbol 497 MovieClip in Frame 6
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 7
stop();
Instance of Symbol 479 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Symbol 15 Button
on (release) {
_root.radarsesitivity = 10;
_root.levela = "Level:1";
_root.level = 1;
_root.money = 0;
_root.radar = false;
_root.guntype = 1;
_root.soundloop = true;
gotoAndPlay (3);
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 34 Button
on (release) {
play();
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 51 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";
}
if ((timeRemaininga > 60) && (timeRemaininga < 3601)) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 60)) add " minute/s";
}
if (timeRemaininga > 3600) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 3600)) add " hour/s";
}
if (timeRemaininga > 10000) {
_root.timeRemaining = "waiting time too big. dwonload from www.Tcartoon.com";
}
Symbol 51 MovieClip Frame 2
gotoAndPlay (1);
Symbol 57 Button
on (release) {
getURL ("http://www.tcartoon.com", _top);
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 3
stop();
Symbol 81 MovieClip Frame 4
stop();
Symbol 81 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 13
gotoAndPlay (1);
Symbol 88 MovieClip Frame 15
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 3
stop();
Symbol 96 MovieClip Frame 4
stop();
Symbol 96 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 14
gotoAndPlay (1);
Symbol 99 MovieClip Frame 15
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();
Symbol 124 MovieClip Frame 5
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 14
gotoAndPlay (1);
Symbol 126 MovieClip Frame 15
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 4
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 14
gotoAndPlay (1);
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 5
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 14
gotoAndPlay (1);
Symbol 144 MovieClip Frame 15
stop();
Symbol 147 MovieClip Frame 38
stop();
_parent.thisname = false;
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 15
gotoAndPlay (2);
Symbol 156 MovieClip Frame 29
gotoAndPlay (16);
Symbol 156 MovieClip Frame 37
gotoAndPlay (30);
Symbol 156 MovieClip Frame 45
gotoAndPlay (38);
Symbol 172 MovieClip Frame 1
stop();
Instance of Symbol 161 MovieClip in Symbol 172 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.guntype);
}
Symbol 172 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 172 MovieClip Frame 3
if (_root.guntype == 4) {
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 10
if (_root.guntype == 3) {
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 13
if (_root.guntype == 2) {
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 19
gotoAndStop (1);
Symbol 174 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 150 MovieClip "feet" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 181 MovieClip Frame 40
_root.gotoAndPlay(5);
Symbol 191 MovieClip Frame 6
gotoAndPlay (2);
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 6
gotoAndPlay (2);
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 6
gotoAndPlay (2);
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 6
gotoAndPlay (2);
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 6
gotoAndPlay (2);
Symbol 224 MovieClip Frame 17
stop();
Symbol 224 MovieClip Frame 26
stop();
_parent.thisname = false;
Symbol 227 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 227 MovieClip Frame 2
stop();
Instance of Symbol 243 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((_root.cam.angle * 54) + 90);
}
Symbol 285 MovieClip Frame 20
stop();
Symbol 285 MovieClip Frame 21
gotoAndStop (20);
Symbol 293 Button
on (release) {
if (_root.hunter._currentframe == 1) {
_root.paused = true;
_root.hunter.legs.gotoAndStop(1);
}
}
Symbol 302 Button
on (release) {
_root.menu.b.gotoAndStop(3);
_root.menu.saveGame();
_root.menu.l._visible = true;
}
Symbol 304 Button
on (press) {
_root.menu.loadGame();
_root.hunter.gotoAndStop(1);
_root.paused = false;
_root.loada = true;
}
Symbol 306 Button
on (release) {
_root.paused = false;
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 317 Button
on (release) {
_quality = "low";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(9);
}
Symbol 320 Button
on (release) {
_quality = "medium";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(10);
}
Symbol 324 Button
on (release) {
_quality = "high";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(11);
}
Symbol 327 Button
on (release) {
_quality = "best";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(11);
}
Symbol 330 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 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 1
function saveGame() {
saved = true;
trace("Saved Game");
_root.d.b.gotoAndStop(3);
myObj = {};
myObj.objArray = new Array(47);
myObj.objArray[0] = _root.cam.x;
myObj.objArray[1] = _root.cam.y;
myObj.objArray[2] = _root.cam.angle;
myObj.objArray[3] = _root.ea;
myObj.objArray[4] = _root.eb;
myObj.objArray[5] = _root.ec;
myObj.objArray[6] = _root.ed;
myObj.objArray[7] = _root.ee;
myObj.objArray[8] = _root.ef;
myObj.objArray[9] = _root.eg;
myObj.objArray[10] = _root.eh;
myObj.objArray[11] = _root.eax;
myObj.objArray[12] = _root.ebx;
myObj.objArray[13] = _root.ecx;
myObj.objArray[14] = _root.edx;
myObj.objArray[15] = _root.eex;
myObj.objArray[16] = _root.efx;
myObj.objArray[17] = _root.egx;
myObj.objArray[18] = _root.ehx;
myObj.objArray[19] = _root.eay;
myObj.objArray[20] = _root.eby;
myObj.objArray[21] = _root.ecy;
myObj.objArray[22] = _root.edy;
myObj.objArray[23] = _root.eey;
myObj.objArray[24] = _root.efy;
myObj.objArray[25] = _root.egy;
myObj.objArray[26] = _root.ehy;
myObj.objArray[27] = _root.ta;
myObj.objArray[28] = _root.tay;
myObj.objArray[29] = _root.tax;
myObj.objArray[30] = _root.tb;
myObj.objArray[31] = _root.tby;
myObj.objArray[32] = _root.tbx;
myObj.objArray[33] = _root.tc;
myObj.objArray[34] = _root.tcy;
myObj.objArray[35] = _root.tcx;
myObj.objArray[36] = _root.td;
myObj.objArray[37] = _root.tdy;
myObj.objArray[38] = _root.tdx;
myObj.objArray[39] = _root.te;
myObj.objArray[40] = _root.tey;
myObj.objArray[41] = _root.tex;
myObj.objArray[42] = _root.level;
myObj.objArray[43] = _root.cam.timereamining;
myObj.objArray[44] = _root.money;
myObj.objArray[45] = _root.radar;
myObj.objArray[46] = _root.guntype;
myObj.objArray[47] = saved;
myObj.objArray[48] = _root.buta;
myObj.objArray[49] = _root.butb;
myObj.objArray[50] = _root.butc;
myObj.objArray[51] = _root.butd;
myObj.objArray[52] = _root.bute;
myObj.objArray[53] = _root.but1.x;
myObj.objArray[54] = _root.but2.x;
myObj.objArray[55] = _root.but3.x;
myObj.objArray[56] = _root.but4.x;
myObj.objArray[57] = _root.but5.x;
myObj.objArray[58] = _root.but1.y;
myObj.objArray[59] = _root.but2.y;
myObj.objArray[60] = _root.but3.y;
myObj.objArray[61] = _root.but4.y;
myObj.objArray[62] = _root.but5.y;
myLSO.data.myObj = myObj;
}
function loadGame() {
_root.pause = false;
trace("Loaded Game");
_root.cam.x = myLSO.data.myObj.objArray[0];
_root.cam.y = myLSO.data.myObj.objArray[1];
_root.cam.angle = myLSO.data.myObj.objArray[2];
_root.ea = myLSO.data.myObj.objArray[3];
_root.eb = myLSO.data.myObj.objArray[4];
_root.ec = myLSO.data.myObj.objArray[5];
_root.ed = myLSO.data.myObj.objArray[6];
_root.ee = myLSO.data.myObj.objArray[7];
_root.ef = myLSO.data.myObj.objArray[8];
_root.eg = myLSO.data.myObj.objArray[9];
_root.eh = myLSO.data.myObj.objArray[10];
_root.eax = myLSO.data.myObj.objArray[11];
_root.ebx = myLSO.data.myObj.objArray[12];
_root.ecx = myLSO.data.myObj.objArray[13];
_root.edx = myLSO.data.myObj.objArray[14];
_root.eex = myLSO.data.myObj.objArray[15];
_root.efx = myLSO.data.myObj.objArray[16];
_root.egx = myLSO.data.myObj.objArray[17];
_root.ehx = myLSO.data.myObj.objArray[18];
_root.eay = myLSO.data.myObj.objArray[19];
_root.eby = myLSO.data.myObj.objArray[20];
_root.ecy = myLSO.data.myObj.objArray[21];
_root.edy = myLSO.data.myObj.objArray[22];
_root.eey = myLSO.data.myObj.objArray[23];
_root.efy = myLSO.data.myObj.objArray[24];
_root.egy = myLSO.data.myObj.objArray[25];
_root.ehy = myLSO.data.myObj.objArray[26];
_root.ta = myLSO.data.myObj.objArray[27];
_root.tay = myLSO.data.myObj.objArray[28];
_root.tax = myLSO.data.myObj.objArray[29];
_root.tb = myLSO.data.myObj.objArray[30];
_root.tby = myLSO.data.myObj.objArray[31];
_root.tbx = myLSO.data.myObj.objArray[32];
_root.tc = myLSO.data.myObj.objArray[33];
_root.tcy = myLSO.data.myObj.objArray[34];
_root.tcx = myLSO.data.myObj.objArray[35];
_root.td = myLSO.data.myObj.objArray[36];
_root.tdy = myLSO.data.myObj.objArray[37];
_root.tdx = myLSO.data.myObj.objArray[38];
_root.te = myLSO.data.myObj.objArray[39];
_root.tey = myLSO.data.myObj.objArray[40];
_root.tex = myLSO.data.myObj.objArray[41];
_root.level = myLSO.data.myObj.objArray[42];
_root.cam.timereamining = myLSO.data.myObj.objArray[43];
_root.money = myLSO.data.myObj.objArray[44];
_root.radar = myLSO.data.myObj.objArray[45];
_root.guntype = myLSO.data.myObj.objArray[46];
saved = myObj.objArray[47];
_root.buta = myLSO.data.myObj.objArray[48];
_root.butb = myLSO.data.myObj.objArray[49];
_root.butc = myLSO.data.myObj.objArray[50];
_root.butd = myLSO.data.myObj.objArray[51];
_root.bute = myLSO.data.myObj.objArray[52];
_root.but1.x = myLSO.data.myObj.objArray[53];
_root.but2.x = myLSO.data.myObj.objArray[54];
_root.but3.x = myLSO.data.myObj.objArray[55];
_root.but4.x = myLSO.data.myObj.objArray[56];
_root.but5.x = myLSO.data.myObj.objArray[57];
_root.but1.y = myLSO.data.myObj.objArray[58];
_root.but2.y = myLSO.data.myObj.objArray[59];
_root.but3.y = myLSO.data.myObj.objArray[60];
_root.but4.y = myLSO.data.myObj.objArray[61];
_root.but5.y = myLSO.data.myObj.objArray[62];
}
myLSO = SharedObject.getLocal("hunter2");
if (myLSO.data.myObj.objArray[47] == true) {
_root.menu.l._visible = true;
} else {
_root.menu.l._visible = false;
}
Instance of Symbol 333 MovieClip "s" in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundloop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 367 Button
on (release) {
if ((_root.money >= 100) & (_root.guntype <= 1)) {
_root.guntype = 2;
_root.money = _root.money - 100;
}
}
Symbol 371 Button
on (release) {
if ((_root.money >= 250) & (_root.guntype <= 2)) {
_root.guntype = 3;
_root.money = _root.money - 250;
}
}
Symbol 375 Button
on (release) {
if ((_root.money >= 1000) & (_root.guntype <= 3)) {
_root.guntype = 4;
_root.money = _root.money - 1000;
}
}
Symbol 379 Button
on (release) {
if ((_root.money >= 500) & (_root.radar == false)) {
_root.radar = true;
_root.money = _root.money - 500;
}
}
Symbol 387 Button
on (release) {
_root.guntype = 2;
}
Symbol 388 Button
on (release) {
_root.guntype = 1;
}
Symbol 389 Button
on (release) {
_root.guntype = 3;
}
Symbol 390 Button
on (release) {
_root.guntype = 4;
}
Symbol 391 Button
on (release) {
_root.radar = true;
}
Symbol 398 Button
on (release) {
_root.level = 2;
}
Symbol 400 Button
on (release) {
_root.level = 3;
}
Symbol 401 Button
on (release) {
_root.level = 4;
}
Symbol 402 Button
on (release) {
_root.level = 5;
}
Symbol 403 Button
on (release) {
_root.level = 6;
}
Symbol 404 Button
on (release) {
_root.level = 7;
}
Symbol 412 Button
on (release) {
if (_root.money >= 1000) {
_root.radarsesitivity = _root.radarsesitivity + 10;
_root.money = _root.money - 1000;
}
}
Instance of Symbol 381 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 2) {
_visible = true;
}
}
Instance of Symbol 381 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 3) {
_visible = true;
}
}
Instance of Symbol 381 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.guntype >= 4) {
_visible = true;
}
}
Instance of Symbol 381 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.radar == true) {
_visible = true;
}
}
Instance of Symbol 408 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(67)) {
i++;
}
if (i > 20) {
_visible = true;
}
}
Symbol 416 MovieClip Frame 1
stop();
Instance of Symbol 415 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
if (_root.level > 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 420 MovieClip Frame 80
stop();
_root.dg.dg.head.stop();
Symbol 424 Button
on (release) {
_root.message.play();
_root.dg.dg.head.gotoAndStop(1);
_root.message.dd.gotoAndPlay(1);
}
Symbol 429 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 3
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 4
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 5
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 6
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 7
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 8
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 439 MovieClip Frame 9
stop();
_root.message.dd.gotoAndPlay(1);
_root.dg.dg.head.play(1);
Symbol 451 MovieClip Frame 1
stop();
Symbol 464 Button
on (release) {
i++;
if (i >= 10) {
_root.gotoAndPlay(6);
i = 0;
}
}
Symbol 470 Button
on (release) {
getURL ("http://www.tcartoon.com", "_top");
}
Symbol 471 MovieClip Frame 35
stop();
Symbol 473 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 476 MovieClip Frame 12
stop();
Symbol 486 Button
on (release) {
gotoAndPlay (4);
}
Symbol 489 Button
on (release) {
play();
}
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 7
stop();