Frame 1
stop();
Stage.showMenu = false;
_quality = "HIGH";
Frame 2
stop();
Stage.showMenu = false;
_quality = "HIGH";
Instance of Symbol 80 MovieClip "music" in Frame 2
onClipEvent (load) {
bgmusic = new Sound();
bgmusic.attachSound("bgmusic");
bgmusic.setVolume(60);
bgmusic.start();
}
Instance of Symbol 83 MovieClip "t_bound" in Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.char.speed = -_root.char.speed;
_root.char._x = oldx;
_root.char._y = oldy;
} else {
oldx = _root.char._x;
oldy = _root.char._y;
}
}
Instance of Symbol 84 MovieClip "r_bound" in Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.char.speed = -_root.char.speed;
_root.char._x = oldx;
_root.char._y = oldy;
} else {
oldx = _root.char._x;
oldy = _root.char._y;
}
}
Instance of Symbol 103 MovieClip "char" in Frame 2
onClipEvent (load) {
function moveCheck() {
if ((0.5 <= speed) or (speed < -0.5)) {
this.gotoAndStop(2);
} else if ((0.5 > speed) > -0.5) {
this.gotoAndStop(1);
}
}
function GameOverCheck() {
if (gameover == true) {
this.speed = 0;
}
}
function hitGun() {
if (this.hitTest(_root.gun)) {
_root.g_o._visible = true;
_root.time_counter.stop();
_root.char.gameover = true;
_root.gun.gameover = true;
_root.music.bgmusic.stop();
}
}
moving = false;
gameover = false;
speed = 0;
}
onClipEvent (enterFrame) {
moveCheck();
hitGun();
if (Key.isDown(38) && (gameover == false)) {
speed = speed + 1;
moving = true;
}
if (Key.isDown(40) && (gameover == false)) {
speed = speed - 0.75;
}
if (Math.abs(speed) > 7) {
speed = speed * 0.9;
moving = true;
}
if (Key.isDown(37) && (gameover == false)) {
_rotation = (_rotation - 7);
moving = true;
}
if (Key.isDown(39) && (gameover == false)) {
_rotation = (_rotation + 7);
moving = true;
}
speed = speed * 0.88;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 106 MovieClip in Frame 2
onClipEvent (load) {
this._x = random(300) + 230;
this._y = random(350) + 30;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
this._x = random(400) + 130;
this._y = random(350) + 30;
_root.score.text++;
}
}
Instance of Symbol 109 MovieClip "timer" in Frame 2
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
_root.time_lasted.text = time;
}
Instance of Symbol 112 MovieClip "rail" in Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.char.speed = -_root.char.speed;
_root.char._x = oldx;
_root.char._y = oldy;
} else {
oldx = _root.char._x;
oldy = _root.char._y;
}
}
Instance of Symbol 146 MovieClip "gun" in Frame 2
onClipEvent (load) {
function followChar() {
deg = Math.atan2(_root.char._y - _y, _root.char._x - _x) * 57.29578;
if ((deg > -75) && (deg < 75)) {
_rotation = deg;
}
y = this._y - _root.char._y;
this._y = this._y - (y / 50);
}
function Fire() {
shotTimer--;
if (shotTimer < 0) {
shootSound.start();
this.gotoAndPlay(2);
if (noBullets >= maxBullets) {
noBullets = 1;
}
exitPoint = new Object();
exitPoint = {x:70, y:-1};
localToGlobal(exitPoint);
noBullets++;
_root.bullet.duplicateMovieClip("bullet_" + noBullets, noBullets + 2000);
eval ("_root.bullet_" + noBullets).swapDepths(1);
eval ("_root.bullet_" + noBullets)._x = exitPoint.x;
eval ("_root.bullet_" + noBullets)._y = exitPoint.y;
eval ("_root.bullet_" + noBullets)._rotation = _rotation;
eval ("_root.bullet_" + noBullets).xspeed = Math.cos(_rotation * (Math.PI/180)) * bulletSpeed;
eval ("_root.bullet_" + noBullets).yspeed = Math.sin(_rotation * (Math.PI/180)) * bulletSpeed;
shotTimer = 30;
}
i = 1;
while (i < (maxBullets + 1)) {
eval ("_root.bullet_" + i)._x = eval ("_root.bullet_" + i)._x + eval ("_root.bullet_" + i).xspeed;
eval ("_root.bullet_" + i)._y = eval ("_root.bullet_" + i)._y + eval ("_root.bullet_" + i).yspeed;
i++;
}
}
shotTimer = 15;
this._y = random(400);
maxBullets = 10;
noBullets = 1;
speed = 3;
bulletSpeed = 3;
maxSpeed = 50;
gameover = false;
shootSound = new Sound();
shootSound.attachSound("shoot");
}
onClipEvent (enterFrame) {
_root.bs.text = bulletSpeed;
_root.ss.text = shotTimer;
if (bulletSpeed > maxSpeed) {
bulletSpeed = bulletSpeed - 1;
}
}
onClipEvent (enterFrame) {
if (gameover == false) {
Fire();
followChar();
}
}
Instance of Symbol 152 MovieClip "bullet" in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.g_o._visible = true;
_root.time_counter.stop();
_root.char.gameover = true;
_root.gun.gameover = true;
_root.music.bgmusic.stop();
this.removeMovieClip();
}
if ((this.hitTest(_root.t_bound) or this.hitTest(_root.r_bound)) or this.hitTest(_root.b_bound)) {
this.removeMovieClip();
}
}
Instance of Symbol 151 MovieClip "explo" in Frame 2
/* no clip actions */
Instance of Symbol 156 MovieClip "b_bound" in Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.char.speed = -_root.char.speed;
_root.char._x = oldx;
_root.char._y = oldy;
} else {
oldx = _root.char._x;
oldy = _root.char._y;
}
}
Instance of Symbol 168 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._rotation = _root.char._rotation;
}
Instance of Symbol 188 MovieClip "g_o" in Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.sec.text = _root.time;
this.ammo.text = _root.ammo_collect;
this.score.text = (_root.time * _root.ammo_collect) * 10;
}
Frame 10
stop();
Stage.showMenu = false;
_quality = "HIGH";
Instance of Symbol 83 MovieClip "t_bound" in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.char2p)) {
_root.char2p.speed = -_root.char2p.speed;
_root.char2p._x = oldx;
_root.char2p._y = oldy;
} else {
oldx = _root.char2p._x;
oldy = _root.char2p._y;
}
}
Instance of Symbol 84 MovieClip "r_bound" in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.char2p)) {
_root.char2p.speed = -_root.char2p.speed;
_root.char2p._x = oldx;
_root.char2p._y = oldy;
} else {
oldx = _root.char2p._x;
oldy = _root.char2p._y;
}
}
Instance of Symbol 103 MovieClip "char2p" in Frame 10
onClipEvent (load) {
function moveCheck() {
if ((0.5 <= speed) or (speed < -0.5)) {
this.gotoAndStop(2);
} else if ((0.5 > speed) > -0.5) {
this.gotoAndStop(1);
}
}
function hitGun() {
if (this.hitTest(_root.gun)) {
_root.g_o._visible = true;
_root.time_counter.stop();
_root.char.gameover = true;
_root.gun.gameover = true;
}
}
gameover = false;
moving = false;
speed = 0;
}
onClipEvent (enterFrame) {
moveCheck();
hitGun();
if (Key.isDown(87) && (gameover == false)) {
speed = speed + 1;
moving = true;
}
if (Key.isDown(83) && (gameover == false)) {
speed = speed - 0.75;
}
if ((Math.abs(speed) > 7) && (gameover == false)) {
speed = speed * 0.9;
moving = true;
}
if (Key.isDown(65) && (gameover == false)) {
_rotation = (_rotation - 7);
moving = true;
}
if (Key.isDown(68) && (gameover == false)) {
_rotation = (_rotation + 7);
moving = true;
}
speed = speed * 0.88;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 106 MovieClip in Frame 10
onClipEvent (load) {
this._x = random(300) + 230;
this._y = random(350) + 30;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char2p)) {
this._x = random(400) + 130;
this._y = random(350) + 30;
_root.score.text++;
}
}
Instance of Symbol 112 MovieClip "rail" in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.char2p)) {
_root.char2p.speed = -_root.char2p.speed;
_root.char2p._x = oldx;
_root.char2p._y = oldy;
} else {
oldx = _root.char2p._x;
oldy = _root.char2p._y;
}
}
Instance of Symbol 146 MovieClip "gun" in Frame 10
onClipEvent (load) {
shotsFired = 0;
maxBullets = 10;
noBullets = 1;
speed = 3;
bulletSpeed = 10;
gameover = false;
shootSound = new Sound();
shootSound.attachSound("shoot");
}
onClipEvent (mouseDown) {
this.gotoAndPlay(2);
}
onClipEvent (enterFrame) {
deg = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.29578;
if (((deg > -75) && (deg < 75)) && (gameover == false)) {
_rotation = deg;
}
}
onClipEvent (mouseDown) {
if ((noBullets >= maxBullets) && (gameover == false)) {
noBullets = 1;
}
exitPoint = new Object();
exitPoint = {x:70, y:-1};
localToGlobal(exitPoint);
if (gameover == false) {
noBullets++;
shotsFired++;
shootSound.start();
_root.bullet.duplicateMovieClip("bullet_" + noBullets, noBullets + 2000);
eval ("_root.bullet_" + noBullets).swapDepths(1);
eval ("_root.bullet_" + noBullets)._x = exitPoint.x;
eval ("_root.bullet_" + noBullets)._y = exitPoint.y;
eval ("_root.bullet_" + noBullets)._rotation = _rotation;
eval ("_root.bullet_" + noBullets).xspeed = Math.cos(_rotation * (Math.PI/180)) * bulletSpeed;
eval ("_root.bullet_" + noBullets).yspeed = Math.sin(_rotation * (Math.PI/180)) * bulletSpeed;
}
}
onClipEvent (enterFrame) {
i = 1;
while (i < (maxBullets + 1)) {
eval ("_root.bullet_" + i)._x = eval ("_root.bullet_" + i)._x + eval ("_root.bullet_" + i).xspeed;
eval ("_root.bullet_" + i)._y = eval ("_root.bullet_" + i)._y + eval ("_root.bullet_" + i).yspeed;
i++;
}
if (Key.isDown(38) && (!this.hitTest(_root.top_block))) {
this._y = this._y - speed;
} else if (Key.isDown(40) && (!this.hitTest(_root.bottom_block))) {
this._y = this._y + speed;
}
}
Instance of Symbol 192 MovieClip "curser" in Frame 10
onClipEvent (load) {
gameover = false;
}
onClipEvent (enterFrame) {
if (gameover == false) {
Mouse.hide();
this.startDrag(true);
} else if (gameover == true) {
Mouse.show();
this.startDrag(false);
this._x = -100;
}
}
Instance of Symbol 152 MovieClip "bullet" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.char2p)) {
_root.g_o._visible = true;
_root.time_counter.stop();
_root.char2p.gameover = true;
_root.gun.gameover = true;
_root.curser.gameover = true;
_root.music.bgmusic.stop();
this.removeMovieClip();
}
if ((this.hitTest(_root.t_bound) or this.hitTest(_root.r_bound)) or this.hitTest(_root.b_bound)) {
this.removeMovieClip();
}
}
Instance of Symbol 156 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.char2p)) {
_root.char2p.speed = -_root.char2p.speed;
_root.char2p._x = oldx;
_root.char2p._y = oldy;
} else {
oldx = _root.char2p._x;
oldy = _root.char2p._y;
}
}
Instance of Symbol 208 MovieClip "g_o" in Frame 10
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.sec.text = _root.time;
this.sec2.text = _root.time;
this.ammo.text = _root.ammo_collect;
this.scorep1.text = (_root.time * _root.ammo_collect) * 10;
this.shots_fired.text = _root.gun.shotsFired;
this.scorep2.text = Math.round((1000 - (_root.time * 2)) / _root.gun.shotsFired);
}
Frame 16
gotoAndStop (1);
Symbol 6 Button
on (release) {
getURL ("mailto:dan@isthatlegal.h3nt.com", "_blank");
}
Symbol 41 Button
on (release) {
this.gotoAndStop(106);
}
Symbol 42 Button
on (release) {
this.gotoAndPlay(71);
}
Symbol 43 Button
on (release) {
this.gotoAndPlay(41);
}
Symbol 53 Button
on (release) {
_root.gotoAndPlay("2p");
}
Symbol 54 Button
on (release) {
_root.gotoAndPlay("1p");
}
Symbol 59 Button
on (release) {
this.gotoAndPlay(65);
}
Symbol 63 Button
on (release) {
_root.gotoAndPlay(65);
}
Symbol 64 Button
on (release) {
this.gotoAndPlay(91);
}
Symbol 65 Button
on (release) {
_root.gotoAndPlay(30);
}
Symbol 69 Button
on (release) {
getURL ("http://www.oldhickpro.net", "_blank");
}
Symbol 70 Button
on (release) {
getURL ("http://www.newgrounds.com/gold/profile/template.php3?id=313283", "_blank");
}
Symbol 71 Button
on (release) {
getURL ("http://www.flashkit.com", "_blank");
}
Symbol 72 Button
on (release) {
getURL ("http://www.newgrounds.com/gold/profile/template.php3?id=652226", "_blank");
}
Symbol 73 Button
on (release) {
getURL ("http://www.newgrounds.com/gold/profile/template.php3?id=906192", "_blank");
}
Symbol 74 Button
on (release) {
getURL ("http://www.desertforce.com", "_blank");
}
Symbol 75 Button
on (release) {
this.gotoAndPlay(12);
}
Symbol 76 MovieClip Frame 1
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.lBites = (bytes_loaded / 1000) + " Kb";
this.tBites = (bytes_total / 1000) + " Kb";
this.loadText = Math.round(getPercent * 100) + " %";
this.tBar._yscale = Math.round(getPercent * 100);
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Symbol 76 MovieClip Frame 2
this.gotoAndPlay(1);
Instance of Symbol 27 MovieClip in Symbol 76 MovieClip Frame 25
onClipEvent (enterFrame) {
display = (("x: " + _root._xmouse) + " y: ") + _root._ymouse;
}
Symbol 76 MovieClip Frame 40
stop();
Symbol 76 MovieClip Frame 64
stop();
Symbol 76 MovieClip Frame 70
this.gotoAndPlay(30);
Symbol 76 MovieClip Frame 90
stop();
Symbol 76 MovieClip Frame 105
this.gotoAndPlay(25);
Symbol 76 MovieClip Frame 106
stop();
Symbol 91 MovieClip Frame 14
_root.hero.gotoAndPlay("standing");
Symbol 97 MovieClip Frame 15
stop();
Symbol 98 MovieClip Frame 7
_root.char.gotoAndStop("standing");
Symbol 102 MovieClip Frame 22
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 24
_root.timer.time++;
_root.gun.bulletSpeed++;
Symbol 146 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 5
stop();
Instance of Symbol 151 MovieClip "explo" in Symbol 152 MovieClip Frame 1
/* no clip actions */
Symbol 152 MovieClip Frame 99
this.removeMovieClip();
Symbol 187 Button
on (press) {
_root.score.text = 0;
_root.gun.noBullets = 1;
_root.gun.removeMovieClip();
_root.gotoAndStop(1);
}