Frame 1
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
}
Frame 220
stop();
Instance of Symbol 41 MovieClip in Frame 220
on (keyPress "<Space>") {
_root.nextFrame();
}
Instance of Symbol 49 MovieClip in Frame 220
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://www.the-exp.com/scoreboard.php", "blank");
}
Instance of Symbol 52 MovieClip in Frame 220
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 60 MovieClip in Frame 221
onClipEvent (load) {
keyactive = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) == false) {
keyactive = true;
}
}
on (keyPress "<Space>") {
if (keyactive == true) {
_root.nextFrame();
}
}
Instance of Symbol 66 MovieClip in Frame 222
onClipEvent (load) {
keyactive = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) == false) {
keyactive = true;
}
}
on (keyPress "<Space>") {
if (keyactive == true) {
_root.nextFrame();
}
}
Instance of Symbol 71 MovieClip in Frame 223
onClipEvent (load) {
keyactive = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) == false) {
keyactive = true;
}
}
on (keyPress "<Space>") {
if (keyactive == true) {
_root.nextFrame();
}
}
Instance of Symbol 75 MovieClip in Frame 224
onClipEvent (load) {
keyactive = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) == false) {
keyactive = true;
}
}
on (keyPress "<Space>") {
if (keyactive == true) {
_root.nextFrame();
}
}
Instance of Symbol 80 MovieClip "titleready" in Frame 225
onClipEvent (load) {
keyactive = false;
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) == false) and (keyactive == "active")) {
stopAllSounds();
_root.play();
}
if (Key.isDown(32) == false) {
keyactive = true;
}
if (Key.isDown(32) and (keyactive == true)) {
keyactive = "active";
}
}
Frame 226
_root.gamewon = false;
_root.health = 5;
_root.speed = 8;
_root.chargetime = 0.4;
_root.sideshot = false;
_root.backshot = false;
_root.smartbomb = 3;
_root.firespeed = 20;
_root.money = 0;
_root.invincible = true;
_root.invtime = 60;
_root.score = 0;
_root.hiqual = false;
_root.destroy = false;
_root.gameover = false;
_root.wave = 1;
_root.sound.gotoAndStop("goodluck");
_root.sound.gotoAndStop("blank");
_root.description = "null,EARTH: Defend your planet!,MARS: God of War.,SATURN: God of Time.,JUPITER: God of Justice.,URANUS: Progenitor of Gods.,NEPTUNE: God of the Sea.,PLUTO: Lord of the Underworld.";
_root.description = _root.description.split(",");
_root.wavedescription = _root.description[_root.wave];
Frame 227
_quality = "low";
stop();
Instance of Symbol 107 MovieClip in Frame 227
onClipEvent (load) {
this.gotoAndStop(_root.wave);
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 0.5;
if (_root.nextlevel == true) {
this._y = this._y + 10;
}
}
}
Instance of Symbol 109 MovieClip "stage" in Frame 227
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gameover == true) {
this._visible = true;
if (this._alpha < 100) {
_root.ii++;
this.swapDepths(_root.ii + 5000);
this._alpha++;
} else {
_root.pausesign.removeMovieClip();
_root.ship.removeMovieClip();
_root.hud.removeMovieClip();
_root.level.removeMovieClip();
this._visible = false;
_root.gotoAndPlay("gameover");
}
}
}
Instance of Symbol 111 MovieClip "star1" in Frame 227
onClipEvent (load) {
_root.starspeed = 10;
}
Instance of Symbol 111 MovieClip "star2" in Frame 227
onClipEvent (load) {
_root.starspeed = 10;
}
Instance of Symbol 111 MovieClip "star3" in Frame 227
onClipEvent (load) {
_root.starspeed = 10;
}
Instance of Symbol 111 MovieClip "star4" in Frame 227
onClipEvent (load) {
_root.starspeed = 10;
}
Instance of Symbol 127 MovieClip "ship" in Frame 227
onClipEvent (load) {
shield._visible = false;
health = _root.health;
speed = _root.speed;
rotatespeed = 5;
shootswitch = true;
charge = 0;
maxcharge = 10;
_root.nextlevel = false;
keydown = false;
invtime = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (currentmoney < _root.money) {
_root.money = _root.money + ((_root.money - currentmoney) * 50);
}
if (light._visible == true) {
light._visible = false;
}
if ((_root.health == 1) and (currenthealth == 2)) {
_root.sound.gotoAndStop("lowhealth");
_root.sound.gotoAndStop("blank");
}
if (_root.level.hitTest(_x, _y - 20, true)) {
_root.health = 0;
}
if (_root.nextlevel == false) {
if (_root.invincible == true) {
if (invtime < _root.invtime) {
invtime++;
if (shield._visible == true) {
shield._visible = false;
shield._alpha = shield._alpha - 3;
} else {
shield._visible = true;
}
} else {
invtime = 0;
shield._alpha = 100;
_root.invincible = false;
shield._visible = false;
}
}
_root.stage._visible = false;
_root.destroy = false;
if ((Key.isDown(88) == false) and (Key.isDown(78) == false)) {
keydown = false;
}
if (((Key.isDown(88) or Key.isDown(78)) and (_root.smartbomb > 0)) and (keydown == false)) {
_root.destroy = true;
_root.stage._visible = true;
keydown = true;
_root.smartbomb--;
}
_root.ii++;
this.swapDepths(_root.ii + 1000);
if (_root.health < 1) {
_root.sound.gotoAndStop("respond");
_root.sound.gotoAndStop("blank");
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = this._x;
_root["shot" + _root.ii]._y = this._y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.ii++;
this.swapDepths(_root.ii);
_root.stage._alpha = 0;
_root.gameover = true;
this.removeMovieClip();
}
if (charge < maxcharge) {
charge = charge + _root.chargetime;
}
if ((Key.isDown(40) or Key.isDown(83)) and (this._y < 425)) {
this._y = this._y + speed;
} else if ((Key.isDown(38) or Key.isDown(87)) and (this._y > 15)) {
this._y = this._y - speed;
}
if ((Key.isDown(39) or Key.isDown(68)) and (this._x < 385)) {
this._x = this._x + speed;
if (body._rotation < (rotatespeed * 10)) {
body._rotation = body._rotation + rotatespeed;
body.gun1._rotation = body.gun1._rotation - rotatespeed;
body.gun2._rotation = body.gun2._rotation - rotatespeed;
}
} else if ((Key.isDown(37) or Key.isDown(65)) and (this._x > 15)) {
this._x = this._x - speed;
if (body._rotation > (-(rotatespeed * 10))) {
body._rotation = body._rotation - rotatespeed;
body.gun1._rotation = body.gun1._rotation + rotatespeed;
body.gun2._rotation = body.gun2._rotation + rotatespeed;
}
} else if (body._rotation > 0) {
body._rotation = body._rotation - rotatespeed;
body.gun1._rotation = body.gun1._rotation + rotatespeed;
body.gun2._rotation = body.gun2._rotation + rotatespeed;
} else if (body._rotation < 0) {
body._rotation = body._rotation + rotatespeed;
body.gun1._rotation = body.gun1._rotation - rotatespeed;
body.gun2._rotation = body.gun2._rotation - rotatespeed;
}
if ((Key.isDown(90) or Key.isDown(77)) and (charge > 1)) {
_root.ii++;
_root.playershot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (shootswitch == true) {
_root["shot" + _root.ii]._x = this._x - 20;
body.gun2.gotoAndPlay("fire");
shootswitch = false;
} else {
_root["shot" + _root.ii]._x = this._x + 20;
body.gun1.gotoAndPlay("fire");
shootswitch = true;
}
_root["shot" + _root.ii]._y = this._y - 30;
_root["shot" + _root.ii].angle = -1.575;
charge = charge - 2;
if (_root.sideshot == true) {
_root.ii++;
if (shootswitch == true) {
_root.playershot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = this._x - 20;
_root["shot" + _root.ii]._y = this._y;
_root["shot" + _root.ii]._rotation = -90;
_root["shot" + _root.ii].angle = 3.15;
_root.ii++;
_root.playershot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = this._x + 20;
_root["shot" + _root.ii]._y = this._y;
_root["shot" + _root.ii]._rotation = 90;
_root["shot" + _root.ii].angle = 0;
}
}
if ((_root.backshot == true) and (shootswitch == false)) {
_root.ii++;
_root.playershot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = this._x;
_root["shot" + _root.ii]._y = this._y + 20;
_root["shot" + _root.ii]._rotation = 180;
_root["shot" + _root.ii].angle = 1.575;
}
light._visible = true;
_root.sound.gotoAndStop("playershot");
_root.sound.gotoAndStop("blank");
}
} else if (body._rotation > 0) {
body._rotation = body._rotation - rotatespeed;
body.gun1._rotation = body.gun1._rotation + rotatespeed;
body.gun2._rotation = body.gun2._rotation + rotatespeed;
} else if (body._rotation < 0) {
body._rotation = body._rotation + rotatespeed;
body.gun1._rotation = body.gun1._rotation - rotatespeed;
body.gun2._rotation = body.gun2._rotation - rotatespeed;
}
}
currenthealth = _root.health;
currentmoney = _root.money;
}
Instance of Symbol 111 MovieClip "control" in Frame 227
onClipEvent (load) {
keydown = false;
_root.gamepaused = false;
speed = 20;
scale = random(90) + 10;
_root.star1._xscale = scale;
_root.star1._yscale = scale;
_root.star1._x = random(400);
_root.star1._y = random(500);
scale = random(90) + 10;
_root.star2._xscale = scale;
_root.star2._yscale = scale;
_root.star2._x = random(400);
_root.star2._y = random(500);
scale = random(90) + 10;
_root.star3._xscale = scale;
_root.star3._yscale = scale;
_root.star3._x = random(400);
_root.star3._y = random(500);
scale = random(90) + 10;
_root.star4._xscale = scale;
_root.star4._yscale = scale;
_root.star4._x = random(400);
_root.star4._y = random(500);
}
onClipEvent (enterFrame) {
if (_root.smartbomb >= 1) {
_root.hud.sb1._visible = true;
} else {
_root.hud.sb1._visible = false;
}
if (_root.smartbomb >= 2) {
_root.hud.sb2._visible = true;
} else {
_root.hud.sb2._visible = false;
}
if (_root.smartbomb >= 3) {
_root.hud.sb3._visible = true;
} else {
_root.hud.sb3._visible = false;
}
if (Key.isDown(32) == false) {
keydown = false;
}
if ((((Key.isDown(32) and (_root.gamepaused == false)) and (keydown == false)) and (_root.nextlevel == false)) and (_root.gameover == false)) {
_root.gamepaused = true;
_root.ii++;
_root.pausesign.swapDepths(_root.ii + 6000);
_root.pausesign._visible = true;
keydown = true;
} else if ((((Key.isDown(32) and (_root.gamepaused == true)) and (keydown == false)) and (_root.nextlevel == false)) and (_root.gameover == false)) {
_root.gamepaused = false;
_root.pausesign._visible = false;
keydown = true;
}
if (_root.gamepaused == false) {
if (_root.star1._y < 500) {
_root.star1._y = _root.star1._y + (speed * (_root.star1._xscale / 100));
} else {
scale = random(90) + 10;
_root.star1._xscale = scale;
_root.star1._yscale = scale;
_root.star1._x = random(400);
_root.star1._y = -20;
}
if (_root.star3._y < 500) {
_root.star3._y = _root.star3._y + (speed * (_root.star3._xscale / 100));
} else {
scale = random(90) + 10;
_root.star3._xscale = scale;
_root.star3._yscale = scale;
_root.star3._x = random(400);
_root.star3._y = -20;
}
if (_root.star2._y < 500) {
_root.star2._y = _root.star2._y + (speed * (_root.star2._xscale / 100));
} else {
scale = random(90) + 10;
_root.star2._xscale = scale;
_root.star2._yscale = scale;
_root.star2._x = random(400);
_root.star2._y = -20;
}
if (_root.star4._y < 500) {
_root.star4._y = _root.star4._y + (speed * (_root.star4._xscale / 100));
} else {
scale = random(90) + 10;
_root.star4._xscale = scale;
_root.star4._yscale = scale;
_root.star4._x = random(400);
_root.star4._y = -20;
}
}
}
Instance of Symbol 152 MovieClip "hud" in Frame 227
onClipEvent (enterFrame) {
_root.ii++;
this.swapDepths(_root.ii + 2000);
}
Instance of Symbol 109 MovieClip "hitbox" in Frame 227
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 165 MovieClip "explosion" in Frame 227
onClipEvent (enterFrame) {
if (_name == "explosion") {
stop();
} else {
this._alpha = this._alpha - 10;
}
}
Instance of Symbol 213 MovieClip in Frame 227
onClipEvent (enterFrame) {
if ((_root.nextlevel == true) and (this._y > 0)) {
this._y = this._y - 20;
_root.ship._y = _root.ship._y - 20;
this.gotoAndStop(2);
if (_root.ship._y < 10) {
_root.ship.removeMovieClip();
}
_root.hud.removeMovieClip();
_root.level.removeMovieClip();
}
}
Instance of Symbol 217 MovieClip "shot" in Frame 227
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if ((_root.gameover == true) or (_root.nextlevel == true)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 3;
} else {
this.removeMovieClip();
}
}
if (_root.gamepaused == false) {
if ((((_name != "shot") and this.hitTest(_root.stage)) and (active == true)) and (_root.nextstage != true)) {
dir = Math.cos(angle);
_x = (_x + (dir * speed));
dir = Math.sin(angle);
_y = (_y + (dir * speed));
if (this.hit.hitTest(_root.ship.hit) and (_root.nextlevel == false)) {
if (_root.invincible == false) {
_root.invincible = true;
_root.health--;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii + 3000, _root.ii);
_root["shot" + _root.ii]._x = this._x;
_root["shot" + _root.ii]._y = this._y;
_root.hitbox._x = this._x - 6;
_root.hitbox._y = this._y - 6;
this.removeMovieClip();
}
}
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 223 MovieClip "playerexplosion" in Frame 227
onClipEvent (enterFrame) {
if (_name == "playerexplosion") {
stop();
} else {
this._alpha = this._alpha - 10;
}
}
Instance of Symbol 225 MovieClip "playershot" in Frame 227
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((_name != "playershot") and this.hitTest(_root.stage)) {
dir = Math.cos(angle);
_x = (_x + (dir * _root.firespeed));
dir = Math.sin(angle);
_y = (_y + (dir * _root.firespeed));
if ((_root.level.hitTest(_x - 4, _y, true) or _root.level.hitTest(_x + 4, _y, true)) or _root.level.hitTest(_x, _y, true)) {
_root.ii++;
_root.playerexplosion.duplicateMovieClip("shot" + _root.ii, _root.ii + 1000, _root.ii);
_root["shot" + _root.ii]._x = this._x;
_root["shot" + _root.ii]._y = this._y;
_root.hitbox._x = this._x - 6;
_root.hitbox._y = this._y - 6;
this.removeMovieClip();
}
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 228 MovieClip "pausesign" in Frame 227
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 233 MovieClip "level" in Frame 227
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 243 MovieClip "level" in Frame 228
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 246 MovieClip "level" in Frame 229
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 249 MovieClip "level" in Frame 230
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 250 MovieClip "level" in Frame 231
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 253 MovieClip "level" in Frame 232
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Instance of Symbol 257 MovieClip "level" in Frame 233
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
this._y = this._y + 2;
_root.ii++;
this.swapDepths(_root.ii + 1000);
}
}
Frame 234
_root.wave++;
_root.wavedescription = _root.description[_root.wave];
_root.hud.removeMovieClip();
_root.level.removeMovieClip();
levels = "null,earth,mars,saturn,jupiter,uranus,neptune,pluto";
levels = levels.split(",");
_root.gotoAndStop(levels[_root.wave]);
Frame 235
_root.stage.removeMovieClip();
_root.gotoAndPlay("endgame");
Instance of Symbol 260 MovieClip in Frame 236
onClipEvent (load) {
if (_root.gamewon == true) {
_root.score = _root.score + _root.money;
_root.money = 0;
this.gotoAndStop(2);
}
}
Frame 281
stopAllSounds();
Instance of Symbol 260 MovieClip in Frame 281
onClipEvent (load) {
if (_root.gamewon == true) {
this.gotoAndStop(2);
}
}
Frame 282
stop();
Instance of Symbol 267 MovieClip in Frame 282
onClipEvent (load) {
_root.stage.removeMovieClip();
if (_root.score > 1000000) {
this.gotoAndStop("input");
}
}
Instance of Symbol 49 MovieClip in Frame 282
onClipEvent (load) {
text = "REPLAY";
}
on (release) {
stopAllSounds();
_root.gotoAndStop("title");
}
Instance of Symbol 49 MovieClip in Frame 283
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://www.the-exp.com", "blank");
}
Instance of Symbol 49 MovieClip in Frame 283
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://www.the-exp.com", "blank");
}
Instance of Symbol 49 MovieClip in Frame 283
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://www.myspace.com/ciyfox", "blank");
}
Instance of Symbol 49 MovieClip in Frame 283
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://lol.bz", "blank");
}
Instance of Symbol 49 MovieClip in Frame 283
onClipEvent (load) {
text = "Link";
}
on (release) {
getURL ("http://www.nintendo.com", "blank");
}
Symbol 10 Button
on (release) {
_root.play();
}
Symbol 11 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 11 MovieClip Frame 2
gotoAndPlay (1);
Symbol 49 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Instance of Symbol 111 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == true) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 118 MovieClip Frame 1
stop();
Instance of Symbol 124 MovieClip "light" in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 130 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
bar._width = _root.ship.charge * 35;
}
onClipEvent (enterFrame) {
bar._width = _root.ship.charge * 35;
}
Instance of Symbol 132 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
bar._width = _root.health * 35;
}
onClipEvent (enterFrame) {
bar._width = _root.health * 70;
}
Instance of Symbol 145 MovieClip "sb1" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
spin._rotation = spin._rotation + 5;
}
}
Instance of Symbol 145 MovieClip "sb2" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
spin._rotation = spin._rotation + 5;
}
}
Instance of Symbol 145 MovieClip "sb3" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
spin._rotation = spin._rotation + 5;
}
}
Symbol 165 MovieClip Frame 18
this.removeMovieClip();
Symbol 213 MovieClip Frame 1
stop();
Instance of Symbol 49 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "DONE";
}
on (press) {
this.play();
}
on (release) {
_root.sound.gotoAndStop("goodluck");
_root.sound.gotoAndStop("blank");
_root.gotoAndStop("blank");
}
Instance of Symbol 49 MovieClip "fpbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "UPGRADE";
cost = 80000 /* 0x013880 */;
max = 2;
if ((_root.chargetime >= max) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.money > cost) and (_root.chargetime < max)) {
_root.sound.gotoAndStop("upgrade");
_root.sound.gotoAndStop("blank");
_root.chargetime = _root.chargetime + 0.1;
_root.money = _root.money - cost;
if (_root.chargetime >= max) {
this._alpha = 50;
}
}
}
Instance of Symbol 49 MovieClip "ssbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "UPGRADE";
cost = 80000 /* 0x013880 */;
max = 15;
if ((_root.speed >= max) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.money > cost) and (_root.speed < max)) {
_root.sound.gotoAndStop("upgrade");
_root.sound.gotoAndStop("blank");
_root.speed++;
_root.money = _root.money - cost;
if (_root.speed >= max) {
this._alpha = 50;
}
}
}
Instance of Symbol 49 MovieClip "sshotbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "UPGRADE";
cost = 300000 /* 0x0493E0 */;
if ((_root.sideshot == true) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.sideshot == false) and (_root.money >= cost)) {
_root.sound.gotoAndStop("construction");
_root.sound.gotoAndStop("blank");
_root.sideshot = true;
_root.money = _root.money - cost;
this._alpha = 50;
}
}
Instance of Symbol 49 MovieClip "bsbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "UPGRADE";
cost = 250000 /* 0x03D090 */;
if ((_root.backshot == true) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.backshot == false) and (_root.money >= cost)) {
_root.sound.gotoAndStop("construction");
_root.sound.gotoAndStop("blank");
_root.backshot = true;
_root.money = _root.money - cost;
this._alpha = 50;
}
}
Instance of Symbol 49 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "DEPOSIT";
}
on (press) {
this.play();
}
on (release) {
_root.score = _root.score + _root.money;
_root.money = 0;
this._alpha = 50;
_parent.fpbutton._alpha = 50;
_parent.ssbutton._alpha = 50;
_parent.sshotbutton._alpha = 50;
_parent.sbbutton._alpha = 50;
_parent.bsbutton._alpha = 50;
_parent.hpbutton._alpha = 50;
}
Instance of Symbol 49 MovieClip "hpbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "RECOVER";
cost = 80000 /* 0x013880 */;
max = 5;
if ((_root.health >= max) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.money >= cost) and (_root.health < max)) {
_root.sound.gotoAndStop("health");
_root.sound.gotoAndStop("blank");
_root.health++;
_root.money = _root.money - cost;
if (_root.health >= max) {
this._alpha = 50;
}
}
}
Instance of Symbol 49 MovieClip "sbbutton" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
text = "RECOVER";
cost = 100000 /* 0x0186A0 */;
max = 3;
if ((_root.smartbomb >= max) or (cost > _root.money)) {
this._alpha = 50;
}
}
on (press) {
this.play();
}
on (release) {
if ((_root.money >= cost) and (_root.smartbomb < max)) {
_root.sound.gotoAndStop("upgrade");
_root.sound.gotoAndStop("blank");
_root.smartbomb++;
_root.money = _root.money - cost;
if (_root.smartbomb == max) {
this._alpha = 50;
}
}
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed - 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed - 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed + 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed + 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed - 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
this._x = this._x + sidespeed;
sidespeed = sidespeed + 0.1;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Symbol 236 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 239 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x > point.x) and (_root.ship._x < (point.x + distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 300;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x < point.x) and (_root.ship._x > (point.x - distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 239 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x > point.x) and (_root.ship._x < (point.x + distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 300;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x < point.x) and (_root.ship._x > (point.x - distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 232 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 3;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 239 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = -4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x < point.x) and (_root.ship._x > (point.x - distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 232 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 3;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 239 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = -4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x < point.x) and (_root.ship._x > (point.x - distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 230 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Symbol 252 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
_root.nextlevel = true;
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
_root.nextlevel = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 248 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "1.770|1.370";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Symbol 256 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 245 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
spin = random(10) - 5;
if (spin == 0) {
spin = 1;
}
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if ((this.hitTest(_root.stage) == false) and (active == true)) {
this.removeMovieClip();
}
if (this.hitTest(_root.stage)) {
active = true;
this._rotation = this._rotation + spin;
if (this.hitTest(_root.hitbox)) {
if (health > 0) {
health--;
} else {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.ii++;
this.swapDepths(_root.ii + 1345);
_root.money = _root.money + 10;
this.removeMovieClip();
_root.hitbox._x = 2000;
}
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 239 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x > point.x) and (_root.ship._x < (point.x + distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 239 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x > point.x) and (_root.ship._x < (point.x + distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 239 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 40;
shieldtransparency = health;
distance = 400;
strength = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
_root.ii++;
point = {x:_x, y:_y};
_parent.localToGlobal(point);
this.swapDepths(_root.ii);
if ((((_root.ship._x > point.x) and (_root.ship._x < (point.x + distance))) and (_root.ship._y < point.y)) and (_root.ship._y > (point.y - this._height))) {
_root.ship._x = _root.ship._x - strength;
}
if (shield._visible == true) {
shield._visible = false;
}
if (hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._height;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y - (this._height / 2);
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._width;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 252 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 0;
fireratestore = 5;
shotpattern = "1.570|1.670|1.770|1.870|1.770|1.670|1.570|1.470|1.370|1.270|1.370|1.470";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 256 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 150;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 1;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (point.y < 100) {
this._y = this._y - 1;
} else {
this._y = this._y - 2;
}
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
_root.sound.gotoAndStop("showedhim");
_root.sound.gotoAndStop("blank");
_root.stage._alpha = 0;
_root.gamewon = true;
_root.gameover = true;
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 236 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
shield._visible = false;
health = 10;
shieldtransparency = health;
active = false;
_root.ii = 0;
patternratestore = 2;
fireratestore = 0;
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
fireangle = 0;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
if (shield._visible == true) {
shield._visible = false;
}
fireangle = fireangle - 0.1;
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparency);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
_root.money = _root.money + (1000 + random(100));
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii].angle = fireangle;
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 5;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 230 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
sidespeed = 0;
health = 2;
active = false;
_root.ii = 0;
patternratestore = 10;
fireratestore = 0;
shotpattern = "1.570";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Instance of Symbol 232 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
health = 5;
active = false;
_root.ii = 0;
patternratestore = 30;
fireratestore = 0;
shotpattern = "0|3.15";
shotpattern = shotpattern.split("|");
firerate = fireratestore;
patternrate = patternratestore;
shotno = 0;
shieldtransparancy = health;
shield._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
if (_root.nextlevel == true) {
this.removeMovieClip();
} else if (this.hitTest(_root.stage)) {
active = true;
} else if (active == true) {
this.removeMovieClip();
}
if (active == true) {
this._y++;
if (shield._visible == true) {
shield._visible = false;
}
if (this.hitTest(_root.ship.hit)) {
_root.health = 0;
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
this.removeMovieClip();
}
point = {x:_x, y:_y};
_parent.localToGlobal(point);
_root.ii++;
this.swapDepths(_root.ii + 100);
if (this.hitTest(_root.hitbox) or (_root.destroy == true)) {
if (_root.destroy == true) {
health = 0;
}
if (health > 0) {
health--;
shield._alpha = shield._alpha - (100 / shieldtransparancy);
shield._visible = true;
} else {
_root.ii++;
_root.explosion.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii]._width = this._width;
_root["shot" + _root.ii]._height = this._height;
_root.hitbox._y = 900;
if (_root.destroy != true) {
_root.money = _root.money + (300 + random(100));
}
this.removeMovieClip();
}
_root.hitbox._y = 900;
}
if (patternrate == patternratestore) {
if (firerate == fireratestore) {
fireangle = shotpattern[shotno];
if (shotno < (shotpattern.length - 1)) {
shotno++;
} else {
patternrate = 0;
shotno = 0;
}
firerate = 0;
_root.ii++;
_root.shot.duplicateMovieClip("shot" + _root.ii, _root.ii, _root.ii);
if (_root.ship._y > point.y) {
_root["shot" + _root.ii].angle = fireangle;
} else {
_root["shot" + _root.ii].angle = -fireangle;
}
_root["shot" + _root.ii]._x = point.x;
_root["shot" + _root.ii]._y = point.y;
_root["shot" + _root.ii].speed = 10;
} else {
firerate++;
}
} else {
patternrate++;
}
}
}
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Instance of Symbol 49 MovieClip in Symbol 267 MovieClip Frame 2
onClipEvent (load) {
text = "SUBMIT";
}
on (press) {
username = _parent.inputbox.text;
points = _root.score;
loadVariablesNum ("http://www.the-exp.com/scoreboard.php", 1, "POST");
_root.gotoAndStop("credits");
}
Symbol 290 MovieClip Frame 322
stop();
Instance of Symbol 49 MovieClip in Symbol 290 MovieClip Frame 322
onClipEvent (load) {
text = "CHECK";
}
on (release) {
getURL ("http://www.the-exp.com/scoreboard.php", "blank");
}