Frame 1
stop();
Frame 2
Mouse.hide();
startDrag ("target", true);
_root.lives = 3;
stop();
Instance of Symbol 22 MovieClip "target" in Frame 2
onClipEvent (load) {
this.swapDepths(9001);
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
}
onClipEvent (mouseUp) {
this.gotoAndStop(1);
}
Frame 3
function create_explosion(xpos, ypos) {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.laserhit", "laserhit" + _local1.depth, _local1.depth);
_local1["laserhit" + _local1.depth].gotoAndPlay(2);
_local1["laserhit" + _local1.depth]._x = xpos;
_local1["laserhit" + _local1.depth]._y = ypos;
_local1["laserhit" + _local1.depth]._rotation = Math.round(Math.random() * 360);
_local1["laserhit" + _local1.depth]._alpha = Math.round(Math.random() * 90) + 10;
}
function death() {
var _local1 = _root;
_local1.civ1.removeMovieClip();
_local1.bm_head.gotoAndPlay("die");
_local1.front_leg.gotoAndPlay("die");
_local1.back_leg.gotoAndPlay("die");
_local1.gotoAndStop("death");
_local1.lives_movie.nextFrame();
_local1.depth++;
i = 1;
while (i < _local1.depth) {
temp_name = "guard" + i;
removeMovieClip(temp_name);
i++;
}
}
function reset() {
var _local1 = _root;
_local1.gotoAndStop("play");
_local1.bm_head.gotoAndStop(1);
_local1.front_leg.gotoAndPlay(1);
_local1.back_leg.gotoAndPlay(1);
_local1.gameover_movie.removeMovieClip();
_local1.dead = false;
_local1.origin_x = 100;
_local1.origin_y = 100;
_local1.normalise = 0;
_local1.gameOver = false;
_local1.lives--;
}
function create_ground_explosion(xpos, ypos) {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.ground_explosion", "ground_explosion" + _local1.depth, _local1.depth);
_local1["ground_explosion" + _local1.depth].gotoAndPlay(2);
_local1["ground_explosion" + _local1.depth]._x = xpos;
_local1["ground_explosion" + _local1.depth]._y = ypos;
_local1["ground_explosion" + _local1.depth]._alpha = Math.round(Math.random() * 90) + 10;
_local1.explosionSound.start();
trace("ground expl");
}
function create_machinegunfire(xpos, ypos) {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.machinegunfire", "machinegunfire" + _local1.depth, _local1.depth);
_local1["machinegunfire" + _local1.depth].gotoAndPlay(2);
_local1["machinegunfire" + _local1.depth]._x = (xpos + Math.round(Math.random() * 40)) - 20;
_local1["machinegunfire" + _local1.depth]._y = (ypos + Math.round(Math.random() * 20)) - 10;
_local1["machinegunfire" + _local1.depth]._alpha = Math.round(Math.random() * 80) + 20;
}
function firelaser() {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.flatlaser", "flatlaser" + _local1.depth, _local1.depth);
_local1["flatlaser" + _local1.depth].gotoAndStop(2);
_local1.laserSound.start();
}
function newguard() {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.guard", "guard" + _local1.depth, _local1.depth);
_local1["guard" + _local1.depth]._y = 230 + Math.round(Math.random() * 40);
_local1["guard" + _local1.depth]._x = 580;
}
function helishoot() {
var _local1 = _root;
_local1.depth = _local1.depth + 20;
duplicateMovieClip ("_root.bluepulse", "bluepulse" + _local1.depth, _local1.depth);
_local1["bluepulse" + _local1.depth].gotoAndStop(2);
_local1.laserShotSound.start();
}
function fireshell() {
var _local1 = _root;
_local1.depth++;
duplicateMovieClip ("_root.tankshell", "tankshell" + _local1.depth, _local1.depth);
_local1["tankshell" + _local1.tankshellcount].gotoAndStop(2);
_local1["tankshell" + _local1.depth]._y = this._y;
_local1["tankshell" + _local1.depth]._x = this._x;
}
trace(_root.lives);
randomnumber = Math.round(Math.random() * 3) + 1;
_root.womanspeed = 3;
guardRate = 10;
_root.score = 0;
_root.kills = 0;
_root.civkills = 0;
_root.maxHealth = 800;
_root.health = _root.maxHealth;
_root.gameOver = false;
_root.city1.scrolling = true;
_root.city2.scrolling = false;
_root.laser_depth = 0;
_root.rocketmanspeed = 3;
_root.rocketeer.moving = false;
_root.rocketeer.rocketeerwait = 100;
_root.explosioncount = 0;
_root.explosion_depth = 21;
_root.ground_depth = 81;
_root.helispeed = 0.5;
_root.heli.moving = false;
tankspeed = 1;
tankshellcount = 0;
setInterval(function () {
count++;
randomGuard = Math.round(Math.random() * guardRate) + 1;
if (count >= randomGuard) {
newguard();
count = 0;
if (guardRate > 1) {
guardRate = guardRate - 0.01;
}
}
}, 500);
_root.tankSound = new Sound(_root);
_root.tankSound.attachSound("tank");
_root.laserSound = new Sound(_root);
_root.laserSound.attachSound("laser");
_root.explosionSound = new Sound(_root);
_root.explosionSound.attachSound("explosion");
_root.laserShotSound = new Sound(_root);
_root.laserShotSound.attachSound("lasershot");
_root.machGunSound = new Sound(_root);
_root.machGunSound.attachSound("machGun");
_root.enemyGunSound = new Sound(_root);
_root.enemyGunSound.attachSound("enemy_gun");
stop();
Instance of Symbol 77 MovieClip "healthbar" in Frame 3
onClipEvent (enterFrame) {
rate = (_root.health / _root.maxHealth) * 100;
if (rate >= 1) {
this.mask._xscale = rate;
} else {
_root.gameOver = true;
}
}
Instance of Symbol 116 MovieClip "civ1" in Frame 3
onClipEvent (enterFrame) {
this._x = this._x - _root.womanspeed;
this.swapDepths(8000);
if (this._x < -20) {
this._x = 700;
}
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("womandeath");
}
}
onClipEvent (load) {
this.health = 10;
}
Instance of Symbol 136 MovieClip "rocketeer" in Frame 3
onClipEvent (enterFrame) {
if (moving == true) {
this._x = this._x - _root.rocketmanspeed;
if (this._x < -30) {
moving = false;
_root.rocketeer.gotoAndStop(1);
rocketeercount = 0;
this._x = 575;
this._y = (_root.randomnumber = Math.round(Math.random() * 50) + 60);
}
}
if (rocketeercount > rocketeerwait) {
moving = true;
_root.rocketeer.play();
}
_root.rocketeer.rocketeercount++;
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("rocketeerdeath");
}
}
onClipEvent (load) {
this.health = 5;
}
Instance of Symbol 145 MovieClip "heli" in Frame 3
onClipEvent (enterFrame) {
if (moving == true) {
this._x = this._x - _root.helispeed;
if (this._x < -200) {
moving = false;
helicount = 0;
this._x = 700;
this._y = (_root.randomnumber = Math.round(Math.random() * 50) - 40);
this.gotoAndStop(1);
}
}
if (helicount > heliwait) {
moving = true;
_root.heli.play();
}
_root.heli.helicount++;
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("helideath");
}
}
onClipEvent (load) {
this.health = 40;
heliwait = 300;
}
Instance of Symbol 66 MovieClip "bm_head" in Frame 3
onClipEvent (load) {
_root.origin_x = 100;
_root.origin_y = 100;
_root.normalise = 0;
_root.dead = false;
}
onClipEvent (enterFrame) {
if (_root.gameOver == true) {
if (_root.dead == false) {
_root.death();
}
_root.dead = true;
} else {
mouse_x = _root.target._x;
mouse_y = _root.target._y;
dist_x = mouse_x - _root.origin_x;
dist_y = mouse_y - _root.origin_y;
if (dist_x < 0) {
_root.normalise = _root.normalise + (-1 * dist_x);
} else {
_root.normalise = dist_x;
}
if (dist_y < 0) {
_root.normalise = _root.normalise + (-1 * dist_y);
} else {
_root.normalise = _root.normalise + dist_y;
}
if ((dist_x <= 0) && (dist_y <= 0)) {
_root.bm_head.gotoAndStop(3);
} else if ((dist_x <= 0) && (dist_y >= 0)) {
_root.bm_head.gotoAndStop(2);
} else {
_root.bm_head.gotoAndStop(1);
}
thedirection = 90 * (dist_y / _root.normalise);
this._rotation = thedirection / 2;
}
}
Instance of Symbol 154 MovieClip "bluepulse" in Frame 3
onClipEvent (load) {
this._x = _root.heli._x - 85;
this._y = _root.heli._y + 40;
hit = false;
randomrotation = Math.round(Math.random() * 360);
randomalpha = Math.round(Math.random() * 90) + 10;
}
onClipEvent (enterFrame) {
if (this._y < 400) {
this._x = this._x - 4;
this._y = this._y + 6;
}
if (this.hitTest(_root.bm_head) && (hit == false)) {
_root.create_explosion(this._x, this._y);
hit = true;
_root.health = _root.health - 100;
removeMovieClip(this);
_root.health = _root.health - 100;
}
if ((this._x < -20) || ((this._y > 280) && (hit == false))) {
_root.create_ground_explosion(this._x, this._y);
hit = true;
removeMovieClip(this);
}
}
Instance of Symbol 156 MovieClip "sparks" in Frame 3
onClipEvent (load) {
this.swapDepths(80001);
}
Instance of Symbol 7 MovieClip [pulse] "flatlaser" in Frame 3
onClipEvent (load) {
this._x = _root.rocketeer._x - 20;
this._y = _root.rocketeer._y;
hit = false;
}
onClipEvent (enterFrame) {
if ((this._x > 0) && (hit == false)) {
this._x = this._x - 15;
} else {
removeMovieClip(this);
}
if (this.hitTest(_root.bm_head) && (hit == false)) {
_root.create_explosion(this._x, this._y);
hit = true;
_root.health = _root.health - 2;
removeMovieClip(this);
}
}
Instance of Symbol 116 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = this._x - (_root.womanspeed / 2);
if (this._x < -20) {
this._x = 700;
}
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("womandeath");
}
}
onClipEvent (load) {
this.health = 10;
}
Instance of Symbol 186 MovieClip "guard" in Frame 3
onClipEvent (enterFrame) {
if (this._x > -20) {
this._x = this._x - 2.4;
} else {
this.gotoAndStop(1);
removeMovieClip(this);
}
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("death");
}
}
onClipEvent (load) {
this.health = 5;
}
Instance of Symbol 197 MovieClip "tank1" in Frame 3
onClipEvent (enterFrame) {
this._x = this._x - _root.tankspeed;
if (this._x < 550) {
this.play();
}
if (this._x < -100) {
this._x = 600;
this.gotoAndStop(1);
}
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("tankdeath");
}
}
onClipEvent (load) {
this.health = 50;
}
Instance of Symbol 116 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = this._x - (_root.womanspeed / 4);
if (this._x < -20) {
this._x = 700;
}
if (this.hitTest(_root.target.crosshair_red)) {
this.health = this.health - 1;
this.injury.gotoAndStop(2);
} else {
this.injury.gotoAndStop(1);
}
if (this.health < 1) {
this.gotoAndStop("womandeath");
}
}
onClipEvent (load) {
this.health = 10;
}
Instance of Symbol 199 MovieClip "city1" in Frame 3
onClipEvent (enterFrame) {
if ((scrolling == true) and (_root.gameOver == false)) {
this._x--;
}
if (this._x == -170) {
_root.city2.scrolling = true;
othercitypos = _root.city2._x;
} else if (this._x == -750) {
_root.city1._x = othercitypos;
_root.city1.scrolling = false;
}
}
Instance of Symbol 199 MovieClip "city2" in Frame 3
onClipEvent (enterFrame) {
if ((scrolling == true) and (_root.gameOver == false)) {
this._x--;
}
if (this._x == -170) {
_root.city1.scrolling = true;
othercitypos = _root.city1._x;
} else if (this._x == -750) {
_root.city2._x = othercitypos;
_root.city2.scrolling = false;
}
}
Frame 4
stop();
Instance of Symbol 210 MovieClip "gameover_movie" in Frame 4
onClipEvent (load) {
this.swapDepths(9000);
if (_root.lives <= 1) {
gotoAndStop (2);
}
}
Symbol 7 MovieClip [pulse] Frame 1
stop();
Symbol 7 MovieClip [pulse] Frame 2
stop();
Symbol 13 MovieClip Frame 1
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loadBar._width = getPercent * 100;
loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(2);
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 19 Button
on (release) {
gotoAndStop ("play");
}
Symbol 22 MovieClip Frame 1
_root.machGunSound.stop();
stop();
Symbol 22 MovieClip Frame 2
_root.machGunSound.start(0, 99);
stop();
Instance of Symbol 21 MovieClip "crosshair_red" in Symbol 22 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.create_machinegunfire(_root.target._x, _root.target._y);
}
Symbol 62 MovieClip Frame 9
stop();
Symbol 65 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 66 MovieClip Frame 35
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 22
_root.score = _root.score - 100;
_root.kills++;
_root.civkills++;
this._parent._x = 840;
this._parent.health = 5;
this._parent.gotoAndStop(1);
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 1
whichdeath = Math.round(Math.random() * 2);
if (whichdeath == 2) {
gotoAndPlay ("die2");
}
Symbol 135 MovieClip Frame 50
_root.score = _root.score + 100;
_root.kills++;
this._parent.moving = false;
this._parent._x = 575;
this._parent.health = 15;
this._parent.gotoAndPlay(1);
Symbol 135 MovieClip Frame 97
_root.score = _root.score + 100;
_root.kills++;
this._parent.moving = false;
this._parent._x = 575;
this._parent.health = 15;
this._parent.gotoAndPlay(1);
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 136 MovieClip Frame 19
onClipEvent (enterFrame) {
_root.firelaser();
}
Symbol 136 MovieClip Frame 30
gotoAndPlay (2);
Symbol 136 MovieClip Frame 31
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 40
_root.score = score + 500;
_root.kills++;
this._parent.moving = false;
this._parent._x = 638;
this._parent.health = 40;
this._parent.gotoAndPlay(1);
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 21
_root.helishoot();
gotoAndPlay (2);
Symbol 145 MovieClip Frame 22
stop();
Symbol 149 MovieClip Frame 38
gotoAndPlay (1);
Symbol 149 MovieClip Frame 55
stop();
Symbol 151 MovieClip Frame 16
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
play();
Symbol 152 MovieClip Frame 9
play();
Symbol 152 MovieClip Frame 10
removeMovieClip(this);
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
Symbol 155 MovieClip Frame 5
play();
Symbol 155 MovieClip Frame 6
removeMovieClip(this);
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 28
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 185 MovieClip Frame 1
whichdeath = Math.round(Math.random() * 2);
if (whichdeath == 2) {
gotoAndPlay ("die2");
}
Symbol 185 MovieClip Frame 17
_root.score = _root.score + 100;
_root.kills++;
this._parent.removeMovieClip();
Symbol 185 MovieClip Frame 39
_root.score = _root.score + 100;
_root.kills++;
this._parent.removeMovieClip();
Symbol 186 MovieClip Frame 13
_root.health--;
_root.enemyGunSound.start(0, 30);
Symbol 186 MovieClip Frame 15
_root.health--;
Symbol 186 MovieClip Frame 17
_root.health--;
Symbol 186 MovieClip Frame 19
_root.health--;
Symbol 186 MovieClip Frame 21
_root.health--;
Symbol 186 MovieClip Frame 22
_root.enemyGunSound.stop();
gotoAndPlay (1);
Symbol 186 MovieClip Frame 23
stop();
Symbol 187 MovieClip Frame 38
gotoAndPlay (1);
Symbol 187 MovieClip Frame 55
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
stop();
Instance of Symbol 193 MovieClip "tankshell" in Symbol 194 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.bm_head)) {
_root.health = _root.health - 10;
this._parent.gotoAndPlay(1);
_root.explosionSound.start();
}
}
Symbol 194 MovieClip Frame 44
gotoAndPlay (1);
Symbol 194 MovieClip Frame 45
stop();
Symbol 196 MovieClip Frame 48
_root.score = _root.score + 300;
_root.kills++;
this._parent._x = 640;
this._parent.health = 50;
this._parent.gotoAndPlay(1);
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 30
tankcount++;
if (tankcount > 10) {
tankcount = 0;
}
Symbol 197 MovieClip Frame 32
gotoAndPlay (30);
Symbol 197 MovieClip Frame 33
stop();
Symbol 204 Button
on (release) {
_root.gotoAndStop("intro");
this.removeMovieClip();
}
Symbol 207 Button
on (release) {
_root.reset();
this.removeMovieClip();
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();