Frame 230
power1 = 2;
power2 = 1;
lifes = 200;
Instance of Symbol 38 MovieClip "mouse" in Frame 230
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 232
power1 = 2;
power2 = 1;
lifes = 200;
stop();
Instance of Symbol 38 MovieClip "mouse" in Frame 232
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 38 MovieClip "mouse" in Frame 234
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 333
stop();
power1 = 2;
power2 = 1;
lifes = 200;
Frame 334
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission2");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 334
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 334
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 334
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 335
gotoAndPlay (334);
Frame 336
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission3");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 336
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 336
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 336
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 337
gotoAndPlay (336);
Frame 338
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission4");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 338
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 338
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 338
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 339
gotoAndPlay (338);
Frame 340
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission5");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 340
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 340
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 340
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 341
gotoAndPlay (340);
Frame 342
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission6");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 342
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 342
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 342
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 343
gotoAndPlay (342);
Frame 344
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission7");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 344
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 344
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 344
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 345
gotoAndPlay (344);
Frame 346
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission8");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 346
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 346
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 346
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 347
gotoAndPlay (346);
Frame 348
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission9");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 348
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 348
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 245 MovieClip "powers1" in Frame 348
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.power2 = _root.power2 + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
tellTarget ("_root.powers1") {
nextFrame();
};
}
}
Frame 349
gotoAndPlay (348);
Frame 350
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission10");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 350
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 350
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 350
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 351
gotoAndPlay (350);
Frame 352
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission11");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 352
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 276 MovieClip "apteczka" in Frame 352
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.lifes = _root.lifes + 50;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
tellTarget ("_root.apteczka") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 352
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 353
gotoAndPlay (352);
Frame 354
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("mission12");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 354
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 119 MovieClip "arrow1" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow1") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow4" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow4") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow5" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow5") {
nextFrame();
};
}
}
Instance of Symbol 291 MovieClip "powers2" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.power1 = _root.power1 + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
tellTarget ("_root.powers2") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow3" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow3") {
nextFrame();
};
}
}
Instance of Symbol 119 MovieClip "arrow2" in Frame 354
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.shot)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
if (_root.lifes > 0) {
_root.lifes = _root.lifes - 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power1)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.power2)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.knife)) {
tellTarget ("_root.arrow2") {
nextFrame();
};
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 354
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 355
gotoAndPlay (354);
Frame 356
if (next.hitTest(_root.guy.guy1)) {
_root.gotoAndPlay("CREDIT");
}
if (_root.lifes < 1) {
_root.gotoAndPlay("dead");
}
x_diff = _root.arrow._x - _root.guy._x;
y_diff = _root.arrow._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow", _rotation , degree);
setProperty("_root.arrow", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.arrow", _y , _root.arrow._y - (t * Math.sin(radian)));
setProperty("_root.fader", _rotation , degree);
setProperty("_root.fader", _x , _root.arrow._x - (t * Math.cos(radian)));
setProperty("_root.fader", _y , _root.arrow._y - (t * Math.sin(radian)));
a_x = Math.round(_root.arrow._x);
a_y = Math.round(_root.arrow._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow1._x - _root.guy._x;
y_diff = _root.arrow1._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow1", _rotation , degree);
setProperty("_root.arrow1", _x , _root.arrow1._x - (t2 * Math.cos(radian)));
setProperty("_root.arrow1", _y , _root.arrow1._y - (t2 * Math.sin(radian)));
a_x = Math.round(_root.arrow1._x);
a_y = Math.round(_root.arrow1._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow2._x - _root.guy._x;
y_diff = _root.arrow2._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow2", _rotation , degree);
setProperty("_root.arrow2", _x , _root.arrow2._x - (t3 * Math.cos(radian)));
setProperty("_root.arrow2", _y , _root.arrow2._y - (t3 * Math.sin(radian)));
a_x = Math.round(_root.arrow2._x);
a_y = Math.round(_root.arrow2._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow3._x - _root.guy._x;
y_diff = _root.arrow3._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow3", _rotation , degree);
setProperty("_root.arrow3", _x , _root.arrow3._x - (t4 * Math.cos(radian)));
setProperty("_root.arrow3", _y , _root.arrow3._y - (t4 * Math.sin(radian)));
a_x = Math.round(_root.arrow3._x);
a_y = Math.round(_root.arrow3._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow4._x - _root.guy._x;
y_diff = _root.arrow4._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow4", _rotation , degree);
setProperty("_root.arrow4", _x , _root.arrow4._x - (t5 * Math.cos(radian)));
setProperty("_root.arrow4", _y , _root.arrow4._y - (t5 * Math.sin(radian)));
a_x = Math.round(_root.arrow4._x);
a_y = Math.round(_root.arrow4._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
x_diff = _root.arrow5._x - _root.guy._x;
y_diff = _root.arrow5._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / Math.PI;
degree = Math.round(degree);
setProperty("_root.arrow5", _rotation , degree);
setProperty("_root.arrow5", _x , _root.arrow5._x - (t6 * Math.cos(radian)));
setProperty("_root.arrow5", _y , _root.arrow5._y - (t6 * Math.sin(radian)));
a_x = Math.round(_root.arrow5._x);
a_y = Math.round(_root.arrow5._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
function Bullet() {
this.speed = 15;
}
_global.bullet_depth = 100;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 111 MovieClip "guy" in Frame 356
onClipEvent (load) {
moveSpeed = 1.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
}
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (mouseDown) {
if (_root.reloading == 0) {
tellTarget ("_root.guy") {
gotoAndPlay (1);
tellTarget ("_root.ammo") {
nextFrame();
};
};
}
}
Instance of Symbol 113 MovieClip in Frame 356
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.left = false;
_root.guy._x = _root.guy._x + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 356
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.right = false;
_root.guy._x = _root.guy._x - 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 356
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.up = false;
_root.guy._y = _root.guy._y + 1.5;
}
}
Instance of Symbol 113 MovieClip in Frame 356
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.guy1)) {
_root.down = false;
_root.guy._y = _root.guy._y - 1.5;
}
}
Instance of Symbol 38 MovieClip "mouse" in Frame 356
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 357
gotoAndPlay (356);
Frame 358
stop();
Instance of Symbol 38 MovieClip "mouse" in Frame 358
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 359
stop();
Instance of Symbol 38 MovieClip "mouse" in Frame 359
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Symbol 10 MovieClip [Browning_1921] Frame 1
stop();
Symbol 10 MovieClip [Browning_1921] Frame 4
gotoAndStop (1);
Symbol 14 MovieClip Frame 1
stop();
Instance of Symbol 14 MovieClip "a" in Symbol 15 MovieClip [enemyshot] Frame 1
onClipEvent (load) {
speed = 4;
damage = 5;
if (frame > 1) {
gotoAndStop(frame);
}
}
onClipEvent (enterFrame) {
if (_root.endgame >= 1) {
removeMovieClip(_parent);
}
if (_root.pause <= 0) {
if (frame == 2) {
speed = 6;
damage = 10;
} else if (frame == 3) {
speed = 8;
damage = 25;
}
shotxv = speed * Math.sin((Math.PI/180) * angle);
shotyv = (-speed) * Math.cos((Math.PI/180) * angle);
_parent._x = _parent._x + shotxv;
_parent._y = _parent._y + shotyv;
if ((((_parent._x <= 0) or (_parent._y >= 2100)) or (_parent._x >= 260)) or (_parent._y <= -50)) {
removeMovieClip(_parent);
}
if (_root.guy.hitTest(_parent._x, _parent._y, true) or hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.hp = _root.guy.hp - damage;
removeMovieClip(_parent);
}
}
}
Instance of Symbol 17 MovieClip "a" in Symbol 18 MovieClip [shot] Frame 1
onClipEvent (load) {
speed = 8;
damage = 1;
}
onClipEvent (enterFrame) {
if (_root.endgame >= 1) {
removeMovieClip(_parent);
}
if (_root.pause <= 0) {
shotxv = speed * Math.sin((Math.PI/180) * angle);
shotyv = (-speed) * Math.cos((Math.PI/180) * angle);
_parent._x = _parent._x + shotxv;
_parent._y = _parent._y + shotyv;
if ((((_parent._x <= 0) or (_parent._y >= 160)) or (_parent._x >= 210)) or (_parent._y <= -10)) {
removeMovieClip(_parent);
}
if (_root.enemy1.hitTest(_parent._x, _parent._y, true)) {
_root.enemy1.a.hp = _root.enemy1.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy2.hitTest(_parent._x, _parent._y, true)) {
_root.enemy2.a.hp = _root.enemy2.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy3.hitTest(_parent._x, _parent._y, true)) {
_root.enemy3.a.hp = _root.enemy3.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy4.hitTest(_parent._x, _parent._y, true)) {
_root.enemy4.a.hp = _root.enemy4.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy5.hitTest(_parent._x, _parent._y, true)) {
_root.enemy5.a.hp = _root.enemy5.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy6.hitTest(_parent._x, _parent._y, true)) {
_root.enemy6.a.hp = _root.enemy6.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy7.hitTest(_parent._x, _parent._y, true)) {
_root.enemy7.a.hp = _root.enemy7.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy8.hitTest(_parent._x, _parent._y, true)) {
_root.enemy8.a.hp = _root.enemy8.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy9.hitTest(_parent._x, _parent._y, true)) {
_root.enemy9.a.hp = _root.enemy9.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy10.hitTest(_parent._x, _parent._y, true)) {
_root.enemy10.a.hp = _root.enemy10.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy11.hitTest(_parent._x, _parent._y, true)) {
_root.enemy11.a.hp = _root.enemy11.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy12.hitTest(_parent._x, _parent._y, true)) {
_root.enemy12.a.hp = _root.enemy12.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy13.hitTest(_parent._x, _parent._y, true)) {
_root.enemy13.a.hp = _root.enemy13.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy14.hitTest(_parent._x, _parent._y, true)) {
_root.enemy14.a.hp = _root.enemy14.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy15.hitTest(_parent._x, _parent._y, true)) {
_root.enemy15.a.hp = _root.enemy15.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy16.hitTest(_parent._x, _parent._y, true)) {
_root.enemy16.a.hp = _root.enemy16.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy17.hitTest(_parent._x, _parent._y, true)) {
_root.enemy17.a.hp = _root.enemy17.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy18.hitTest(_parent._x, _parent._y, true)) {
_root.enemy18.a.hp = _root.enemy18.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy19.hitTest(_parent._x, _parent._y, true)) {
_root.enemy19.a.hp = _root.enemy19.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.enemy20.hitTest(_parent._x, _parent._y, true)) {
_root.enemy20.a.hp = _root.enemy20.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee1.hitTest(_parent._x, _parent._y, true)) {
_root.bee1.a.hp = _root.bee1.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee2.hitTest(_parent._x, _parent._y, true)) {
_root.bee2.a.hp = _root.bee2.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee3.hitTest(_parent._x, _parent._y, true)) {
_root.bee3.a.hp = _root.bee3.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee4.hitTest(_parent._x, _parent._y, true)) {
_root.bee4.a.hp = _root.bee4.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee5.hitTest(_parent._x, _parent._y, true)) {
_root.bee5.a.hp = _root.bee5.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee6.hitTest(_parent._x, _parent._y, true)) {
_root.bee6.a.hp = _root.bee6.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee7.hitTest(_parent._x, _parent._y, true)) {
_root.bee7.a.hp = _root.bee7.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee8.hitTest(_parent._x, _parent._y, true)) {
_root.bee8.a.hp = _root.bee8.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee9.hitTest(_parent._x, _parent._y, true)) {
_root.bee9.a.hp = _root.bee9.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bee10.hitTest(_parent._x, _parent._y, true)) {
_root.bee10.a.hp = _root.bee10.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.boss1.hitTest(_parent._x, _parent._y, true)) {
_root.boss1.a.hp = _root.boss1.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm1.hitTest(_parent)) {
_root.bossm1.a.hp = _root.bossm1.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm2.hitTest(_parent)) {
_root.bossm2.a.hp = _root.bossm2.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm3.hitTest(_parent)) {
_root.bossm3.a.hp = _root.bossm3.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm4.hitTest(_parent)) {
_root.bossm4.a.hp = _root.bossm4.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm5.hitTest(_parent)) {
_root.bossm5.a.hp = _root.bossm5.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm6.hitTest(_parent)) {
_root.bossm6.a.hp = _root.bossm6.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm7.hitTest(_parent)) {
_root.bossm7.a.hp = _root.bossm7.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm8.hitTest(_parent)) {
_root.bossm8.a.hp = _root.bossm8.a.hp - damage;
removeMovieClip(_parent);
}
if (_root.bossm9.hitTest(_parent)) {
_root.bossm9.a.hp = _root.bossm9.a.hp - damage;
removeMovieClip(_parent);
}
}
}
Symbol 34 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 34 MovieClip Frame 2
gotoAndPlay (1);
Symbol 34 MovieClip Frame 3
_root.play();
Symbol 38 MovieClip Frame 1
stop();
Symbol 43 Button
on (press) {
gotoAndPlay (234);
}
Symbol 47 Button
on (release) {
getURL ("http://movie.hk.pl", "_blank");
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 10
gotoAndStop (1);
Symbol 93 Button
on (press) {
gotoAndPlay (335);
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 50
gotoAndStop (1);
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 50
gotoAndStop (1);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
Instance of Symbol 110 MovieClip "shot" in Symbol 111 MovieClip Frame 2
/* no clip actions */
Symbol 111 MovieClip Frame 3
Symbol 111 MovieClip Frame 4
gotoAndStop (1);
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 6
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 8
stop();
Symbol 119 MovieClip Frame 9
stop();
Symbol 142 MovieClip Frame 1
stop();
_root.reloading = 0;
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 142 MovieClip Frame 6
stop();
Symbol 142 MovieClip Frame 7
stop();
Symbol 142 MovieClip Frame 8
stop();
Symbol 142 MovieClip Frame 9
stop();
Symbol 142 MovieClip Frame 10
stop();
Symbol 142 MovieClip Frame 11
stop();
Symbol 142 MovieClip Frame 12
stop();
Symbol 142 MovieClip Frame 13
stop();
Symbol 142 MovieClip Frame 14
stop();
Symbol 142 MovieClip Frame 15
stop();
Symbol 142 MovieClip Frame 16
stop();
Symbol 142 MovieClip Frame 17
stop();
Symbol 142 MovieClip Frame 18
stop();
Symbol 142 MovieClip Frame 19
stop();
Symbol 142 MovieClip Frame 20
_root.reloading = 1;
play();
Symbol 142 MovieClip Frame 85
gotoAndPlay (1);
Symbol 144 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 162 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 176 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 189 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 202 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 215 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 228 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 241 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
stop();
Symbol 259 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 272 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 288 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Symbol 293 Button
on (keyPress "<Down>") {
if (_root.power1 > 0) {
_root.power1 = _root.power1 - 1;
tellTarget ("_root.guy.power1") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Up>") {
if (_root.power2 > 0) {
_root.power2 = _root.power2 - 1;
tellTarget ("_root.guy.power2") {
gotoAndPlay (2);
};
}
}
on (keyPress "<Space>") {
tellTarget ("_root.guy.knife") {
gotoAndPlay (2);
};
}
Symbol 302 Button
on (release) {
getURL ("http://mrd.mikos.foxnet.pl/SOLDIER.zip", "_blank");
}
Symbol 306 Button
on (press) {
gotoAndPlay (234);
}
Symbol 310 Button
on (release) {
getURL ("http://movie.hk.pl", "_blank");
}