Instance of Symbol 12 MovieClip "ugg" in Frame 1
onClipEvent (mouseUp) {
getURL ("http://www.ugotgames.com/", "_blank");
}
Frame 80
_root.ready = true;
stop();
Frame 190
gotoAndPlay (212);
Frame 212
mouse.show();
_root.lives = 3;
bgMusic = new Sound();
bgMusic.attachSound("intro.wav");
bgMusic1 = new Sound(_root.music_mc);
bgMusic1.attachSound("break it.wav");
bgMusic1.setVolume(50);
bgMusic2 = new Sound();
bgMusic2.attachSound("badguys1.wav");
bgMusic3 = new Sound();
bgMusic3.attachSound("badguys2.wav");
if (musicInt != true) {
_root.bgMusic.start(0, 999);
_root.music = 0;
musicInt = true;
}
if (((_root.music == 1) || (_root.music == 2)) || (_root.music == 3)) {
bgMusic1.stop("break it.wav");
bgMusic2.stop("badguys1.wav");
bgMusic3.stop("badguys2.wav");
_root.bgMusic.start(0, 999);
_root.music = 0;
}
stop();
Instance of Symbol 36 MovieClip "music_mc" in Frame 212
onClipEvent (enterFrame) {
if (Key.isDown(221) && (Key.isDown(56))) {
_root.frametest = true;
_root.enemyCount = 0;
_root.nextFrame();
}
if (Key.isDown(219) && (Key.isDown(56))) {
_root.frametest = true;
_root.enemyCount = 0;
_root.prevFrame();
}
}
Frame 213
_root.frametest = true;
stop();
Instance of Symbol 71 MovieClip in Frame 213
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
if (count <= 35) {
count = count + 1;
} else {
_root.enemyCount = 0;
_root.gotoAndPlay(_global.newLevel);
}
}
Frame 214
stop();
Frame 215
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 45;
_root.player_mc._y = 355;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
if (_root.music == 0) {
bgMusic.stop("intro.wav");
bgMusic1.start(0, 999);
_root.music = 1;
}
stop();
Instance of Symbol 109 MovieClip "level_mc" in Frame 215
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level2";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 147 MovieClip "player_mc" in Frame 215
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 4;
accel = 14;
decay = 0.2;
bounce = 4;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
tankSND = new Sound();
tankSND.attachSound("tank.wav");
tankSND.stop("tank.wav");
tankSND.start(0, 999);
}
onClipEvent (enterFrame) {
if (!death) {
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_x = _global.timerX;
_y = _global.timerY;
}
i = 1;
while (i <= _root.enemyCount) {
enemyDist = Math.sqrt(((this._x - _root["enemy_mc" + i]._x) * (this._x - _root["enemy_mc" + i]._x)) + ((this._y - _root["enemy_mc" + i]._y) * (this._y - _root["enemy_mc" + i]._y)));
if (enemyDist <= 35) {
_x = _global.timerX;
_y = _global.timerY;
}
if (enemyDist <= 30) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
i++;
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39) || (Key.isDown(68))) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
if (key.isDown(82)) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
} else if (Key.isDown(32)) {
if (_root.lives >= 1) {
_root.gotoAndPlay("nextLevel");
_root.continue_mc._visible = false;
} else {
_root.gotoAndPlay("intro");
}
} else {
_root.playerHealth._height = 1;
}
}
onClipEvent (mouseDown) {
if (!death) {
cannonSND = new Sound();
cannonSND.attachSound("cannon.wav");
cannonSND.start(0, 1);
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_root["shot_mc" + shotCount]._x = this._x + tipX;
_root["shot_mc" + shotCount]._y = this._y - tipY;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 154 MovieClip in Frame 215
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 110) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 325) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 215
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 167 MovieClip "shot_mc" in Frame 215
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (_root["enemy_mc" + i].hitTest(this._x, this._y, true) && (_root["enemy_mc" + i].death != true)) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 170 MovieClip "enemyshot_mc" in Frame 215
onClipEvent (load) {
speed = 5;
damageMin = 10;
damageMax = 15;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 172 MovieClip "enemyshot_mc2" in Frame 215
onClipEvent (load) {
speed = 7;
damageMin = 15;
damageMax = 20;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc2.hit = true;
_root.enemyshot_mc2._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 176 MovieClip in Frame 215
onClipEvent (enterFrame) {
mouse.hide();
}
onClipEvent (enterFrame) {
mousex = _root._xmouse;
mousey = _root._ymouse;
_root.aim._x = mousex;
_root.aim._y = mousey;
}
Instance of Symbol 178 MovieClip in Frame 215
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
if (count <= 2) {
count++;
} else {
_global.timerX = _root.player_mc._x;
_global.timerY = _root.player_mc._y;
count = 0;
}
}
Instance of Symbol 180 MovieClip "playerHealth" in Frame 215
onClipEvent (enterFrame) {
this._height = _root.player_mc.health;
}
Frame 216
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 35;
_root.player_mc._y = 300;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 50;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 195 MovieClip "level_mc" in Frame 216
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level3";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 154 MovieClip in Frame 216
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._x >= 250) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 425) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 216
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 216
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 216
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 217
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 436;
_root.player_mc._y = 365;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 198 MovieClip "level_mc" in Frame 217
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level4";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 154 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._x >= 150) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 325) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 420) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 420) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 420) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Frame 217
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 218
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 55;
_root.player_mc._y = 365;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 201 MovieClip "level_mc" in Frame 218
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level5";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 205 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 365) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._x >= 150) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 425) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 210) && (_root.player_mc._y >= 260)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._y >= 225) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x >= 225) && (_root.player_mc._y >= 225)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 355) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 315) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 505) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 218
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 210) && (_root.player_mc._y >= 165)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 219
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 40;
_root.player_mc._y = 360;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 216 MovieClip "level_mc" in Frame 219
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level6";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 75) && (_root.player_mc._y >= 335)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 150) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 425) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 210) && (_root.player_mc._y >= 225)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 4;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 250) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 425) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 210) && (_root.player_mc._y >= 225)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 219
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 220
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 495;
_root.player_mc._y = 375;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 219 MovieClip "level_mc" in Frame 220
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level7";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._y <= 180) || (_root.player_mc._x >= 340)) {
active = true;
} else {
active = false;
}
if (!death) {
if ((this._x >= 295) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 505) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 485) && (_root.player_mc._y >= 175)) {
active = true;
} else {
active = false;
}
if (!death) {
if ((this._x >= 140) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 355) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x >= 170) && (_root.player_mc._y >= 150)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 80) && (_root.player_mc._y >= 325)) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 110) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 280) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._y >= 215) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 165) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 255) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 485) && (_root.player_mc._y >= 175)) {
active = true;
} else {
active = false;
}
if (!death) {
if ((this._x >= 235) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 355) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 320) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 110) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 355) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._y >= 215) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 180) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 255) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 220
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 390) && (_root.player_mc._y >= 90)) {
active = true;
} else {
active = false;
}
if (!death) {
if ((this._y >= 195) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 285) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 221
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 515;
_root.player_mc._y = 40;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 180;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 222 MovieClip "level_mc" in Frame 221
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level8";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 205 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 265) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 265) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 295) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 120) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 215) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 295) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 120) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 215) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 154 MovieClip in Frame 221
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 145) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 210) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 410) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 154 MovieClip in Frame 221
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 145) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 230) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 450) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 170) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 205 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 20;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 170) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 210 MovieClip in Frame 221
onClipEvent (load) {
health = 200;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 170) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 90) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 315) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 222
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc.shotCount = 0;
if (_root.music == 1) {
bgMusic1.stop("break it.wav");
bgMusic2.start(0, 999);
_root.music = 2;
}
stop();
Instance of Symbol 224 MovieClip "level_mc" in Frame 222
/* no clip actions */
Instance of Symbol 147 MovieClip "player_mc" in Frame 222
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 4;
accel = 14;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
tankSND = new Sound();
tankSND.attachSound("tank.wav");
tankSND.stop("tank.wav");
tankSND.start(0, 999);
}
onClipEvent (enterFrame) {
if (!death) {
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_x = _global.timerX;
_y = _global.timerY;
}
if (Math.sqrt(((this._x - _root.badBoss._x) * (this._x - _root.badBoss._x)) + ((this._y - _root.badBoss._y) * (this._y - _root.badBoss._y))) <= 105) {
_x = _global.timerX;
_y = _global.timerY;
}
if (Math.sqrt(((this._x - _root.badBoss._x) * (this._x - _root.badBoss._x)) + ((this._y - _root.badBoss._y) * (this._y - _root.badBoss._y))) <= 100) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39) || (Key.isDown(68))) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
if (key.isDown(82)) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
}
} else if (Key.isDown(32)) {
if (_root.lives >= 1) {
_root.gotoAndPlay("nextLevel");
_root.continue_mc._visible = false;
} else {
_root.gotoAndPlay("intro");
}
} else {
_root.playerHealth._height = 1;
}
}
onClipEvent (mouseDown) {
if (!death) {
cannonSND = new Sound();
cannonSND.attachSound("cannon.wav");
cannonSND.start(0, 1);
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_root["shot_mc" + shotCount]._x = this._x + tipX;
_root["shot_mc" + shotCount]._y = this._y - tipY;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 232 MovieClip "badBoss" in Frame 222
onClipEvent (load) {
health = 6000;
refireInterval = 15;
shotMax = 7;
_root.enemyCount++;
ID = _root.enemyCount;
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x <= 0) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
if ((this._y >= 160) && (forward != false)) {
ySpeed = -0.8;
this._y = this._y + ySpeed;
} else if (this._y <= 240) {
forward = false;
ySpeed = 0.8;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc3.duplicateMovieClip((("enemyshot_mc3" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc3" + ID) + "_") + shotCount]) {
tipX = 94 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 94 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
} else if (count <= 150) {
count++;
} else {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level9";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 167 MovieClip "shot_mc" in Frame 222
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.badBoss.hitTest(this._x, this._y, true) && (_root.badBoss.death != true)) {
hitFunc();
_root.badBoss.health = _root.badBoss.health - (damageMin + random(damageMax - damageMin));
} else {
i = 1;
while (i <= _root.enemyCount) {
if (_root["enemy_mc" + i].hitTest(this._x, this._y, true) && (_root["enemy_mc" + i].death != true)) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 170 MovieClip "enemyshot_mc" in Frame 222
onClipEvent (load) {
speed = 6;
damageMin = 8;
damageMax = 18;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 172 MovieClip "enemyshot_mc2" in Frame 222
onClipEvent (load) {
speed = 5;
damageMin = 10;
damageMax = 15;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc2.hit = true;
_root.enemyshot_mc2._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 240 MovieClip "enemyshot_mc3" in Frame 222
onClipEvent (load) {
speed = 3;
damageMin = 20;
damageMax = 25;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc3.hit = true;
_root.enemyshot_mc3._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Frame 223
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 270;
_root.player_mc._y = 220;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
if (_root.music == 2) {
bgMusic2.stop("badguys1.wav");
bgMusic1.start(0, 999);
_root.music = 1;
}
stop();
Instance of Symbol 243 MovieClip "level_mc" in Frame 223
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level10";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 147 MovieClip "player_mc" in Frame 223
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 4;
accel = 14;
decay = 0.2;
bounce = 4;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
tankSND = new Sound();
tankSND.attachSound("tank.wav");
tankSND.stop("tank.wav");
tankSND.start(0, 999);
}
onClipEvent (enterFrame) {
if (!death) {
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_x = _global.timerX;
_y = _global.timerY;
}
i = 1;
while (i <= _root.enemyCount) {
enemyDist = Math.sqrt(((this._x - _root["enemy_mc" + i]._x) * (this._x - _root["enemy_mc" + i]._x)) + ((this._y - _root["enemy_mc" + i]._y) * (this._y - _root["enemy_mc" + i]._y)));
if (enemyDist <= 40) {
_x = _global.timerX;
_y = _global.timerY;
}
if (enemyDist <= 32.5) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
i++;
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39) || (Key.isDown(68))) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
if (key.isDown(82)) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
} else if (Key.isDown(32)) {
if (_root.lives >= 1) {
_root.gotoAndPlay("nextLevel");
_root.continue_mc._visible = false;
} else {
_root.gotoAndPlay("intro");
}
} else {
_root.playerHealth._height = 1;
}
}
onClipEvent (mouseDown) {
if (!death) {
cannonSND = new Sound();
cannonSND.attachSound("cannon.wav");
cannonSND.start(0, 1);
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_root["shot_mc" + shotCount]._x = this._x + tipX;
_root["shot_mc" + shotCount]._y = this._y - tipY;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 250 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 60) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 315) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 80) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 340) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._x >= 190) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 335) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 310) && (_root.player_mc._y >= 185)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x >= 245) && (_root.player_mc._y >= 175)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 223
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
forward = false;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._x >= 190) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 335) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 167 MovieClip "shot_mc" in Frame 223
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (_root["enemy_mc" + i].hitTest(this._x, this._y, true) && (_root["enemy_mc" + i].death != true)) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 256 MovieClip "enemyshot_mc4" in Frame 223
onClipEvent (load) {
speed = 7;
damageMin = 22.5;
damageMax = 27.5;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc4.hit = true;
_root.enemyshot_mc4._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Frame 224
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 160;
_root.player_mc._y = 30;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 180;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 259 MovieClip "level_mc" in Frame 224
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level11";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 250 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 215) && (_root.player_mc._y <= 125)) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 50) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 170) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 320) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 245) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 335) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 365) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 190) && (_root.player_mc._y >= 175)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x >= 365) && (_root.player_mc._y >= 190)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if ((_root.player_mc._x <= 315) && (_root.player_mc._y <= 175)) {
active = false;
} else {
active = true;
}
if ((!death) && (active == true)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 224
onClipEvent (load) {
health = 500;
refireInterval = 15;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
ySpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (_root.player_mc._x >= 320) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._x >= 245) && (forward != false)) {
xSpeed = -2;
this._x = this._x + xSpeed;
} else if (this._x <= 340) {
forward = false;
xSpeed = 2;
this._x = this._x + xSpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 225
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 105;
_root.player_mc._y = 360;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
stop();
Instance of Symbol 262 MovieClip "level_mc" in Frame 225
onClipEvent (enterFrame) {
if ((((_root.player_mc._x <= 0) || (_root.player_mc._y <= 0)) || (_root.player_mc._x >= 550)) || (_root.player_mc._y >= 400)) {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_global.newLevel = "level12";
_root.gotoAndPlay("nextLevel");
}
}
Instance of Symbol 250 MovieClip in Frame 225
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 100) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 315) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 225
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 100) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 315) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 225
onClipEvent (load) {
health = 500;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if ((this._y >= 85) && (forward != false)) {
ySpeed = -2;
this._y = this._y + ySpeed;
} else if (this._y <= 315) {
forward = false;
ySpeed = 2;
this._y = this._y + ySpeed;
} else {
forward = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 225
onClipEvent (load) {
health = 500;
refireInterval = 40;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 225
onClipEvent (load) {
health = 750;
refireInterval = 60;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (this._y >= 380) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 250) && (forward != false)) {
ySpeed = -1;
this._y = this._y + ySpeed;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 250 MovieClip in Frame 225
onClipEvent (load) {
health = 750;
refireInterval = 60;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
active = false;
}
onClipEvent (enterFrame) {
if (this._y >= 380) {
active = false;
} else {
active = true;
}
if (!death) {
if ((this._y >= 250) && (forward != false)) {
ySpeed = -1;
this._y = this._y + ySpeed;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (active == true) {
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Frame 226
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
_root.player_mc._x = 55;
_root.player_mc._y = 365;
_root.player_mc.health = _root.player_mc.healthMax;
_root.player_mc._rotation = 0;
_root.player_mc.shotCount = 0;
if (_root.music == 1) {
bgMusic1.stop("break it.wav");
bgMusic3.start(0, 999);
_root.music = 3;
}
stop();
Instance of Symbol 147 MovieClip "player_mc" in Frame 226
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 4;
accel = 14;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
tankSND = new Sound();
tankSND.attachSound("tank.wav");
tankSND.stop("tank.wav");
tankSND.start(0, 999);
}
onClipEvent (enterFrame) {
if (!death) {
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_x = _global.timerX;
_y = _global.timerY;
}
i = 1;
while (i <= _root.enemyCount) {
enemyDist = Math.sqrt(((this._x - _root["enemy_mc" + i]._x) * (this._x - _root["enemy_mc" + i]._x)) + ((this._y - _root["enemy_mc" + i]._y) * (this._y - _root["enemy_mc" + i]._y)));
if (enemyDist <= 40) {
_x = _global.timerX;
_y = _global.timerY;
}
if (enemyDist <= 32.5) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
i++;
}
if (Math.sqrt(((this._x - _root.badBoss._x) * (this._x - _root.badBoss._x)) + ((this._y - _root.badBoss._y) * (this._y - _root.badBoss._y))) <= 75) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39) || (Key.isDown(68))) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
if (key.isDown(82)) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
tankSND.stop("tank.wav");
this.gotoAndPlay("death");
death = true;
_root.lives = _root.lives - 1;
}
} else if (Key.isDown(32)) {
if (_root.lives >= 1) {
_root.gotoAndPlay("nextLevel");
_root.continue_mc._visible = false;
} else {
_root.gotoAndPlay("intro");
}
} else {
_root.playerHealth._height = 1;
}
}
onClipEvent (mouseDown) {
if (!death) {
cannonSND = new Sound();
cannonSND.attachSound("cannon.wav");
cannonSND.start(0, 1);
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_root["shot_mc" + shotCount]._x = this._x + tipX;
_root["shot_mc" + shotCount]._y = this._y - tipY;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 254 MovieClip in Frame 226
onClipEvent (load) {
health = 500;
refireInterval = 75;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 226
onClipEvent (load) {
health = 500;
refireInterval = 75;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 226
onClipEvent (load) {
health = 500;
refireInterval = 75;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 254 MovieClip in Frame 226
onClipEvent (load) {
health = 500;
refireInterval = 75;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc4.duplicateMovieClip((("enemyshot_mc4" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc4" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 269 MovieClip "badBoss" in Frame 226
onClipEvent (load) {
health = 7500;
refireInterval = 17.5;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
death = false;
forwardX = false;
}
onClipEvent (enterFrame) {
if (!death) {
this._rotation = this._rotation + 5;
if ((this._x >= 125) && (forwardX != false)) {
xSpeed = -3;
this._x = this._x + xSpeed;
} else if (this._x <= 450) {
forwardX = false;
xSpeed = 3;
this._x = this._x + xSpeed;
} else {
forwardX = true;
}
if ((this._y >= 110) && (forwardY != false)) {
ySpeed = -1.8;
this._y = this._y + ySpeed;
} else if (this._y <= 275) {
forwardY = false;
ySpeed = 1.8;
this._y = this._y + ySpeed;
} else {
forwardY = true;
}
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc5.duplicateMovieClip((("enemyshot_mc5" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc5" + ID) + "_") + shotCount]) {
tipX = 47.5 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 47.5 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
} else if (count <= 150) {
count++;
} else {
_root.frametest = true;
_root.player_mc.tankSND.stop("tank.wav");
_root.gotoAndPlay("win");
}
}
Instance of Symbol 167 MovieClip "shot_mc" in Frame 226
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.badBoss.hitTest(this._x, this._y, true) && (_root.badBoss.death != true)) {
hitFunc();
_root.badBoss.health = _root.badBoss.health - (damageMin + random(damageMax - damageMin));
} else {
i = 1;
while (i <= _root.enemyCount) {
if (_root["enemy_mc" + i].hitTest(this._x, this._y, true) && (_root["enemy_mc" + i].death != true)) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 271 MovieClip "enemyshot_mc5" in Frame 226
onClipEvent (load) {
speed = 9;
damageMin = 20;
damageMax = 25;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc4.hit = true;
_root.enemyshot_mc4._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 256 MovieClip "enemyshot_mc4" in Frame 226
onClipEvent (load) {
speed = 5;
damageMin = 20;
damageMax = 25;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc4.hit = true;
_root.enemyshot_mc4._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.player_mc.hitTest(this._x, this._y, true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Frame 227
if (_root.frametest == false) {
gotoAndPlay (212);
}
_root.frametest = false;
mouse.show();
if (_root.music == 3) {
bgMusic3.stop("badguys2.wav");
bgMusic.start(0, 999);
_root.music = 0;
}
stop();
Instance of Symbol 36 MovieClip in Frame 245
onClipEvent (enterFrame) {
if (Key.isDown(187)) {
_root.nextFrame();
}
if (Key.isDown(189)) {
_root.prevFrame();
}
}
Symbol 18 MovieClip Frame 1
eyeballGlobal = new Object();
eyeballGlobal.x = eyeball._x;
eyeballGlobal.y = eyeball._y;
localToGlobal(eyeballGlobal);
degrees_per_radian = 57.2957795130823;
Symbol 18 MovieClip Frame 2
x = _root._xmouse - eyeballGlobal.x;
y = _root._ymouse - eyeballGlobal.y;
angle = Math.atan(y / x);
if (eyeball.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseLocal = new Object();
mouseLocal.x = _root._xmouse;
mouseLocal.y = _root._ymouse;
globalToLocal(mouseLocal);
pupil._x = mouseLocal.x;
pupil._y = mouseLocal.y;
} else if (_root._xmouse > eyeballGlobal.x) {
pupil._x = eyeball._x + (Math.cos(angle) * (eyeball._width / 2));
pupil._y = eyeball._y + (Math.sin(angle) * (eyeball._width / 2));
} else {
pupil._x = eyeball._x - (Math.cos(angle) * (eyeball._width / 2));
pupil._y = eyeball._y - (Math.sin(angle) * (eyeball._width / 2));
}
Symbol 18 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 20 MovieClip in Symbol 23 MovieClip Frame 1
onClipEvent (load) {
var count = 0;
}
onClipEvent (enterFrame) {
pcent_loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this._width = pcent_loaded * 1.65;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
if (_root.ready == true) {
if (loaded != true) {
_root.gotoAndPlay("loaded");
loaded = true;
}
}
if (count <= 100) {
_root.progBarSet._alpha = _root.progBarSet._alpha - 1;
count++;
}
}
}
Symbol 51 Button
on (release) {
_global.newLevel = "level1";
_root.nextFrame();
}
Symbol 54 Button
on (release) {
getURL ("http://www.ugotgames.com/", "_blank");
}
Symbol 60 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("instructions");
}
Symbol 66 Button
on (release) {
if (_root.music != 0) {
_root.bgMusic.start(0, 999);
_root.music = 0;
} else {
_root.bgMusic.stop();
_root.music = 10;
}
}
Symbol 104 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("intro");
}
Symbol 146 MovieClip Frame 26
gotoAndPlay (1);
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 22
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 22
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 22
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 22
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 22
stop();
Symbol 213 MovieClip Frame 29
gotoAndPlay (1);
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 8;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Symbol 232 MovieClip Frame 2
stop();
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 10) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 5) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 20) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 30) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 25) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Instance of Symbol 159 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
health = 100;
refireInterval = 20;
shotMax = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
xSpeed = 0;
count = 0;
dead = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = (_x + _root.badBoss._x) - _root.player_mc._x;
delta_y = (_y + _root.badBoss._y) - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / 0.017453;
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 35 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 35 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = (this._x + tipX) + _root.badBoss._x;
_y = (this._y - tipY) + _root.badBoss._y;
_rotation = this.turret_mc._rotation;
}
}
if (_root.badBoss.death == true) {
death = true;
}
}
if (count <= 15) {
count++;
} else if (dead != true) {
this.gotoAndPlay("death");
dead = true;
}
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 22
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 22
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 9
this.removeMovieClip();
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 90
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 9
this.removeMovieClip();
stop();
Symbol 285 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("intro");
}
Symbol 290 Button
on (release) {
getURL ("http://www.tacticaltank.com/", "_blank");
}