Frame 2
Set("/:controls", "keyboard");
high_score1 = 1000;
high_score2 = 900;
high_score3 = 800;
high_score4 = 700;
high_score5 = 600;
high_score6 = 500;
high_score7 = 400;
high_score8 = 300;
high_score9 = 200;
high_score10 = 100;
high_name1 = "- - - - -";
high_name2 = "- - - - -";
high_name3 = "- - - - -";
high_name4 = "- - - - -";
high_name5 = "- - - - -";
high_name6 = "- - - - -";
high_name7 = "- - - - -";
high_name8 = "- - - - -";
high_name9 = "- - - - -";
high_name10 = "- - - - -";
weapon1 = new Sound();
weapon1.attachSound("weapon 1.wav");
weapon2 = new Sound();
weapon2.attachSound("weapon 2.wav");
weapon3 = new Sound();
weapon3.attachSound("weapon 3.wav");
weapon4 = new Sound();
weapon4.attachSound("weapon 4.wav");
weapon5 = new Sound();
weapon5.attachSound("weapon 5.wav");
weapon6 = new Sound();
weapon6.attachSound("weapon 6.wav");
shieldhit = new Sound();
shieldhit.attachSound("shieldhit.wav");
explosion1 = new Sound();
explosion1.attachSound("explosion1.wav");
explosion2 = new Sound();
explosion2.attachSound("explosion2.wav");
explosion3 = new Sound();
explosion3.attachSound("explosion3.wav");
weapon7 = new Sound();
weapon7.attachSound("weapon 7.wav");
alienweapon3 = new Sound();
alienweapon3.attachSound("alien weapon 3.wav");
click = new Sound();
click.attachSound("click.wav");
bad_buy = new Sound();
bad_buy.attachSound("no.wav");
pickup = new Sound();
pickup.attachSound("supsuperpckup.wav");
missile = new Sound();
missile.attachSound("missile.wav");
enemy_weapon_hit = new Sound();
enemy_weapon_hit.attachSound("enemy weapon hit.wav");
Frame 3
mouse.show();
stop();
Set("/:total_rocks", 0);
Set("/:weapon_got_1", 1);
Set("/:weapon_got_2", 0);
Set("/:weapon_got_3", 0);
Set("/:weapon_got_4", 0);
Set("/:weapon_got_5", 0);
Set("/:weapon_got_6", 0);
Set("/:weapon_got_7", 0);
Set("/:weapon_got_8", 0);
Set("/:total_rocks", 0);
Set("/:weapon_got_1", 1);
Set("/:max_x", 640);
Set("/:max_y", 410);
Set("/:weapon_type", 1);
Set("/:level", 0);
Set("/:level_length", 1000);
Set("/:level_counter", 0);
Set("/:left", 0);
Set("/:right", 0);
Set("/:up", 0);
Set("/:down", 0);
Set("/:space", 0);
Set("/:fire", 0);
Set("/:score", 0);
Set("/:cash", 0);
Set("/:ship_type", 1);
Set("/:pure_level_path_percentage", 70);
Set("/:alien_anim", 10);
i = 1;
while (i < 21) {
Set("/:rock_" add i, 0);
i++;
}
Set("/:shield_weapon_useage", 0.3);
Set("/:shield_weapon_damage", 3);
Frame 5
play();
Frame 6
if (/:controls == "keyboard") {
prevFrame();
play();
}
Frame 7
play();
Frame 8
if (/:controls == "mouse") {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Frame 10
_quality = "LOW";
Set("/:level", /:level + 1);
Set("/:level_counter", 0);
mouse.hide();
Set("/:land_ship", 0);
Set("/:rocks_this_level", 0);
Instance of Symbol 210 MovieClip in Frame 10
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if (/:space == 0) {
Set("/:space", 1);
}
}
if (Key.isDown(37)) {
if (/:left == 0) {
Set("/:left", 1);
}
}
if (Key.isDown(39)) {
if (/:right == 0) {
Set("/:right", 1);
}
}
if (Key.isDown(38)) {
if (/:up == 0) {
Set("/:up", 1);
}
}
if (Key.isDown(40)) {
if (/:down == 0) {
Set("/:down", 1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
if (/:space == 1) {
Set("/:space", 0);
}
}
if (Key.getCode() == 37) {
if (/:left == 1) {
Set("/:left", 0);
}
}
if (Key.getCode() == 39) {
if (/:right == 1) {
Set("/:right", 0);
}
}
if (Key.getCode() == 38) {
if (/:up == 1) {
Set("/:up", 0);
}
}
if (Key.getCode() == 40) {
if (/:down == 1) {
Set("/:down", 0);
}
}
}
Frame 50
if (0 >= ship.shield) {
gotoAndPlay (199);
}
Set("/:level_counter", /:level_counter + 1);
if (/:level_length < /:level_counter) {
gotoAndPlay (52);
}
Frame 51
prevFrame();
play();
Frame 53
Set("/:land_ship", 1);
Frame 198
gotoAndPlay (650);
Frame 329
gotoAndPlay (791);
Frame 330
_quality = "LOW";
Set("/:level", /:level + 1);
Set("/:level_counter", 0);
mouse.hide();
Set("/:land_ship", 0);
Set("/:rocks_this_level", 0);
Instance of Symbol 210 MovieClip in Frame 330
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if (/:space == 0) {
Set("/:space", 1);
}
}
if (Key.isDown(37)) {
if (/:left == 0) {
Set("/:left", 1);
}
}
if (Key.isDown(39)) {
if (/:right == 0) {
Set("/:right", 1);
}
}
if (Key.isDown(38)) {
if (/:up == 0) {
Set("/:up", 1);
}
}
if (Key.isDown(40)) {
if (/:down == 0) {
Set("/:down", 1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
if (/:space == 1) {
Set("/:space", 0);
}
}
if (Key.getCode() == 37) {
if (/:left == 1) {
Set("/:left", 0);
}
}
if (Key.getCode() == 39) {
if (/:right == 1) {
Set("/:right", 0);
}
}
if (Key.getCode() == 38) {
if (/:up == 1) {
Set("/:up", 0);
}
}
if (Key.getCode() == 40) {
if (/:down == 1) {
Set("/:down", 0);
}
}
}
Frame 370
if (0 >= ship.shield) {
gotoAndPlay (519);
}
if (/:level_length < /:level_counter) {
gotoAndPlay (372);
}
Frame 371
prevFrame();
play();
Frame 373
Set("/:land_ship", 1);
Frame 518
gotoAndPlay (691);
Frame 649
gotoAndPlay (791);
Frame 650
answer = 0;
mouse.show();
_quality = "HIGH";
correct = -1;
Frame 651
if (answer != 0) {
if (answer == correct) {
gotoAndStop (653);
} else {
gotoAndStop (654);
}
}
Frame 652
prevFrame();
play();
Frame 670
stop();
Frame 671
stop();
Frame 690
stop();
Frame 691
if (/:cash < 5000) {
stop();
} else if (/:cash < 10000) {
gotoAndStop (692);
} else {
gotoAndStop (693);
}
mouse.show();
_quality = "HIGH";
Frame 791
mouse.show();
_quality = "HIGH";
pos = 0;
n = 1;
while (10 >= n) {
if ((eval ("/:high_score" add n) < /:score) and (pos == 0)) {
pos = n;
}
n++;
}
if (pos != 0) {
gotoAndPlay (795);
} else {
gotoAndPlay (800);
}
Frame 795
Set("/:name", ">Name");
stop();
Frame 798
n = 10;
while (n >= (pos + 1)) {
xx = n - 1;
Set("/:high_score" add n, eval ("/:high_score" add xx));
Set("/:high_name" add n, eval ("/:high_name" add xx));
n--;
}
Set("/:high_score" add pos, /:score);
Set("/:high_name" add pos, /:name);
Frame 800
stop();
Symbol 22 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , (-PercentLoaded) + 100);
} else {
_root.play();
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 31 Button
on (release) {
gotoAndPlay (10);
}
Symbol 36 Button
on (release) {
if (/:controls == "keyboard") {
gotoAndStop (6);
} else {
gotoAndStop (5);
}
}
Symbol 41 Button
on (release) {
gotoAndStop (4);
}
Symbol 45 Button
on (release) {
gotoAndPlay (791);
}
Symbol 78 Button
on (release) {
Set("/:controls", "keyboard");
}
Symbol 83 Button
on (release) {
Set("/:controls", "mouse");
}
Symbol 109 MovieClip Frame 1
y = random(/:max_y);
x = random(/:max_x);
xs = -((random(100) / 10) + 1);
this._x = x;
this._y = y;
this._xscale = -xs;
this._yscale = -xs;
Symbol 109 MovieClip Frame 2
if (x < 50) {
y = random(/:max_y);
x = /:max_x + 50;
xs = -(random(10) + 5);
this._xscale = -xs;
this._yscale = -xs;
}
x = x + xs;
this._x = x;
this._y = y;
Symbol 109 MovieClip Frame 3
prevFrame();
play();
Symbol 110 MovieClip Frame 1
beegee.gotoAndStop(/:level);
Symbol 129 MovieClip Frame 1
_parent.max_shield = 10;
_parent.shield = _parent.max_shield;
_parent.accel = 2;
_parent.friction = 0.75;
Symbol 129 MovieClip Frame 2
_parent.max_shield = 15;
_parent.shield = _parent.max_shield;
_parent.accel = 2;
_parent.friction = 0.8;
Symbol 129 MovieClip Frame 3
_parent.max_shield = 20;
_parent.shield = _parent.max_shield;
_parent.accel = 2;
_parent.friction = 0.9;
Symbol 129 MovieClip Frame 4
_parent.max_shield = 30;
_parent.shield = _parent.max_shield;
_parent.accel = 3;
_parent.friction = 0.8;
Symbol 129 MovieClip Frame 5
_parent.max_shield = 60;
_parent.shield = _parent.max_shield;
_parent.accel = 3;
_parent.friction = 0.9;
Symbol 129 MovieClip Frame 6
_parent.max_shield = 100;
_parent.shield = _parent.max_shield;
_parent.accel = 7;
_parent.friction = 0.85;
Symbol 133 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
this._rotation = random(360);
this._xscale = random(40) + 160;
this._yscale = random(40) + 160;
Symbol 147 MovieClip Frame 14
stop();
Symbol 149 MovieClip Frame 1
friction2 = 0.3;
x = this._x;
y = this._y;
xs = 0;
ys = 0;
xt = x;
yt = y;
tolerance_radius = 20;
Symbol 149 MovieClip Frame 2
if (old_ship != /:ship_type) {
old_ship = /:ship_type;
graphics.gotoAndStop(/:ship_type);
}
if (/:land_ship == 1) {
Set("/:fire", 0);
xt = 550;
yt = 225;
if (x < xt) {
xs = xs + (accel / 2);
}
if (xt < x) {
xs = xs - (accel / 2);
}
if (y < yt) {
ys = ys + (accel / 2);
}
if (yt < y) {
ys = ys - (accel / 2);
}
a = x - xt;
b = y - yt;
h = Math.sqrt((a * a) + (b * b));
if (h < tolerance_radius) {
xs = xs * friction2;
ys = ys * friction2;
} else {
xs = xs * friction;
ys = ys * friction;
}
} else if (/:controls != "keyboard") {
xt = _root.target._x;
yt = _root.target._y;
if (x < xt) {
xs = xs + accel;
}
if (xt < x) {
xs = xs - accel;
}
if (y < yt) {
ys = ys + accel;
}
if (yt < y) {
ys = ys - accel;
}
a = x - xt;
b = y - yt;
h = Math.sqrt((a * a) + (b * b));
if (h < tolerance_radius) {
xs = xs * friction2;
ys = ys * friction2;
} else {
xs = xs * friction;
ys = ys * friction;
}
} else {
stopped = 1;
if (/:left == 1) {
xs = xs - accel;
stopped = 0;
}
if (/:right == 1) {
xs = xs + accel;
stopped = 0;
}
if (/:up == 1) {
ys = ys - accel;
stopped = 0;
}
if (/:down == 1) {
ys = ys + accel;
stopped = 0;
}
if (stopped == 1) {
xs = xs * 0.3;
ys = ys * 0.3;
}
xs = xs * friction;
ys = ys * friction;
if (/:space == 1) {
Set("/:fire", 1);
} else {
Set("/:fire", 0);
}
}
x = x + xs;
y = y + ys;
if (x < 40) {
x = 40;
xs = -(xs / 2);
}
if ((/:max_x - 20) < x) {
x = /:max_x - 20;
xs = -(xs / 2);
}
if ((/:max_y - 20) < y) {
y = /:max_y - 20;
ys = -(ys / 2);
}
if (y < 20) {
y = 20;
ys = -(ys / 2);
}
this._x = x;
this._y = y;
hit = 0;
hit = hit + alien_hit;
alien_hit = 0;
if (0 < hit) {
shield = shield - hit;
gotoAndPlay (4);
}
if ((/:shield_weapon == 1) and (1 < shield)) {
detect.gotoAndPlay(2);
shield = shield - /:shield_weapon_useage;
if (1 >= shield) {
Set("/:shield_weapon", 0);
Set("/:fire", 0);
_root.armoury.shield_sound.gotoAndPlay(5);
}
}
if (0 >= shield) {
Set("/:shield_weapon", 0);
Set("/:fire", 0);
_root.armoury.shield_sound.gotoAndPlay(5);
gotoAndPlay (7);
}
percy = int((shield / max_shield) * 100);
if (percy < 1) {
percy = 1;
}
_root.panel.gotoAndStop(percy);
Symbol 149 MovieClip Frame 3
prevFrame();
play();
Symbol 149 MovieClip Frame 4
_root.shieldhit.start();
Symbol 149 MovieClip Frame 6
gotoAndPlay (2);
Symbol 149 MovieClip Frame 20
stop();
Symbol 151 Button
on (release) {
Set("/:fire", 0);
}
on (press) {
Set("/:fire", 1);
}
Symbol 152 MovieClip Frame 1
startDrag (this, true);
Symbol 152 MovieClip Frame 3
prevFrame();
play();
Symbol 187 MovieClip Frame 10
stop();
Symbol 189 MovieClip Frame 1
_parent.bullets = _parent.bullets + 1;
this_is = _parent.bullets;
Symbol 189 MovieClip Frame 2
if (eval ("_parent.bullet_on" add this_is) == 1) {
if (eval ("_parent.bullet_type" add this_is) == 7) {
Set("_parent.bullet_xs" add this_is, eval ("_parent.bullet_xs" add this_is) * 1.1);
}
Set("_parent.bullet_x" add this_is, eval ("_parent.bullet_x" add this_is) + eval ("_parent.bullet_xs" add this_is));
Set("_parent.bullet_y" add this_is, eval ("_parent.bullet_y" add this_is) + eval ("_parent.bullet_ys" add this_is));
}
if (((/:max_x + 20) < eval ("_parent.bullet_x" add this_is)) or (eval ("_parent.bullet_x" add this_is) < -20)) {
Set("_parent.bullet_on" add this_is, 0);
Set("_parent.bullet_x" add this_is, -1000);
Set("_parent.bullet_y" add this_is, -1000);
gotoAndPlay (4);
}
this._x = eval ("_parent.bullet_x" add this_is);
this._y = eval ("_parent.bullet_y" add this_is);
bull.gotoAndStop(eval ("_parent.bullet_type" add this_is));
Symbol 189 MovieClip Frame 3
prevFrame();
play();
Symbol 189 MovieClip Frame 5
gotoAndPlay (2);
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 4
stop();
Symbol 195 MovieClip Frame 6
stop();
Symbol 196 MovieClip Frame 1
Set("/:fire", 0);
Set("/:shield_weapon", 0);
max_bullets = 9;
i = 1;
while (max_bullets >= i) {
Set("bullet_on" add i, 0);
Set("bullet_x" add i, -1000);
Set("bullet_y" add i, -1000);
Set("bullet_xs" add i, 0);
Set("bullet_ys" add i, 0);
Set("bullet_type" add i, 0);
i++;
}
weapon_strength1 = 1;
weapon_xs1 = 20;
weapon_ys1 = 0;
weapon_altx1 = 0;
weapon_alty1 = 0;
weapon_strength2 = 2;
weapon_xs2 = 20;
weapon_ys2 = 0;
weapon_altx2 = 0;
weapon_alty2 = 0;
weapon_strength3 = 3;
weapon_xs3 = 20;
weapon_ys3 = 0;
weapon_altx3 = 0;
weapon_alty3 = 0;
weapon_strength4 = 4;
weapon_xs4 = 20;
weapon_ys4 = 1.5;
weapon_altx4 = 0;
weapon_alty4 = 1;
weapon_strength5 = 5;
weapon_xs5 = 20;
weapon_ys5 = 3;
weapon_altx5 = 0;
weapon_alty5 = 1;
weapon_strength6 = 6;
weapon_xs6 = 20;
weapon_ys6 = 6;
weapon_altx6 = 0;
weapon_alty6 = 1;
weapon_strength7 = 3;
weapon_xs7 = 5;
weapon_ys7 = 0;
weapon_altx7 = 0;
weapon_alty7 = 0;
Symbol 196 MovieClip Frame 2
a = 0;
if (((/:fire == 1) and (0 < _root.ship.shield)) and (/:land_ship == 0)) {
if (/:weapon_type != 8) {
if (/:weapon_type == 1) {
_root.weapon6.start();
} else if (/:weapon_type == 2) {
_root.weapon5.start();
} else if (/:weapon_type == 3) {
_root.weapon4.start();
} else if (/:weapon_type == 4) {
_root.weapon3.start();
} else if (/:weapon_type == 5) {
_root.weapon2.start();
} else if (/:weapon_type == 6) {
_root.weapon1.start();
} else if (/:weapon_type == 7) {
_root.weapon7.start();
}
i = 1;
while (max_bullets >= i) {
if (a == 0) {
if (eval ("bullet_on" add i) == 0) {
a = i;
Set("bullet_x" add a, _root.ship.x);
Set("bullet_y" add a, _root.ship.y);
Set("bullet_xs" add a, eval ("weapon_xs" add /:weapon_type));
Set("bullet_ys" add a, eval ("weapon_ys" add /:weapon_type));
Set("bullet_on" add a, 1);
Set("bullet_type" add a, /:weapon_type);
if (/:weapon_type == 7) {
gotoAndPlay (8);
} else {
gotoAndPlay (4);
}
}
}
i++;
}
} else if (/:shield_weapon == 0) {
if (1 < _root.ship.shield) {
Set("/:shield_weapon", 1);
shield_sound.gotoAndPlay(2);
}
}
}
if (/:fire == 0) {
if (/:shield_weapon == 1) {
shield_sound.gotoAndPlay(5);
Set("/:shield_weapon", 0);
}
}
if (eval ("weapon_altx" add /:weapon_type) == 1) {
Set("weapon_xs" add /:weapon_type, -eval ("weapon_xs" add /:weapon_type));
}
if (eval ("weapon_alty" add /:weapon_type) == 1) {
Set("weapon_ys" add /:weapon_type, -eval ("weapon_ys" add /:weapon_type));
}
Symbol 196 MovieClip Frame 3
prevFrame();
play();
Symbol 196 MovieClip Frame 7
gotoAndPlay (2);
Symbol 196 MovieClip Frame 20
gotoAndPlay (2);
Symbol 202 MovieClip Frame 1
x = this._x;
y = this._y;
x1 = x;
y1 = y;
x2 = x;
y2 = y;
x3 = x;
y3 = y;
Set("/:trailor_damage", 2);
Symbol 202 MovieClip Frame 2
x = x1;
x1 = x2;
x2 = x3;
x3 = _root.ship._x;
y = y1;
y1 = y2;
y2 = y3;
y3 = _root.ship._y;
this._x = x - 70;
this._y = y;
if (0 >= _root.ship.shield) {
gotoAndPlay (4);
}
trail.gotoAndStop(/:rocks_this_level + 1);
Symbol 202 MovieClip Frame 3
prevFrame();
play();
Symbol 202 MovieClip Frame 15
stop();
Symbol 204 MovieClip Frame 1
if (/:level == 1) {
Set("/:fire_accuracy", 300);
Set("/:powerup_frequency", 500);
Set("/:rock_frequency", 100);
Set("/:formations", 2);
Set("/:formation_limit", 2);
Set("/:ship_limit", 2);
Set("/:density", 4);
Set("/:linear_speed", 2);
Set("/:alien_weapon_speed", 15);
Set("/:overall_likely_to_fire", 50);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 20);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 300);
Set("/:crazy_percentage_follow", 10);
Set("/:crazy_start", 1);
Set("/:crazy_boundry", /:max_x / 2);
Set("/:child_speed", 5);
Set("/:child_friction", 0.8);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_speed", 1);
Set("/:mother_friction", 0.8);
Set("/:mother_change", 50);
Set("/:mother_length", 500);
Set("/:comet_speed", 5);
Set("/:comet_weight", 0);
Set("/:comet_length", 10);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 1);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 1);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 2) {
Set("/:fire_accuracy", 300);
Set("/:powerup_frequency", 400);
Set("/:rock_frequency", 100);
Set("/:formations", 3);
Set("/:formation_limit", 3);
Set("/:ship_limit", 3);
Set("/:density", 4);
Set("/:linear_speed", 3);
Set("/:alien_weapon_speed", 15);
Set("/:overall_likely_to_fire", 200);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 50);
Set("/:crazy_friction", 0.75);
Set("/:crazy_length", 100);
Set("/:crazy_percentage_follow", 0);
Set("/:crazy_start", 1);
Set("/:crazy_boundry", /:max_x / 2);
Set("/:child_speed", 5);
Set("/:child_friction", 0.8);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_speed", 1);
Set("/:mother_friction", 0.8);
Set("/:mother_change", 50);
Set("/:mother_length", 500);
Set("/:comet_speed", 5);
Set("/:comet_weight", 0);
Set("/:comet_length", 10);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 1);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 1);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 3) {
Set("/:fire_accuracy", 300);
Set("/:powerup_frequency", 400);
Set("/:rock_frequency", 100);
Set("/:formations", 3);
Set("/:formation_limit", 3);
Set("/:ship_limit", 4);
Set("/:density", 5);
Set("/:linear_speed", 5);
Set("/:alien_weapon_speed", 13);
Set("/:overall_likely_to_fire", 175);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 30);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 0);
Set("/:crazy_start", 1);
Set("/:child_speed", 5);
Set("/:crazy_boundry", /:max_x / 2);
Set("/:child_friction", 0.8);
Set("/:mother_speed", 1);
Set("/:mother_friction", 0.8);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_change", 50);
Set("/:mother_length", 500);
Set("/:comet_speed", 5);
Set("/:comet_weight", 0);
Set("/:comet_length", 10);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 1);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 1);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 4) {
Set("/:fire_accuracy", 300);
Set("/:powerup_frequency", 300);
Set("/:rock_frequency", 100);
Set("/:formations", 4);
Set("/:formation_limit", 4);
Set("/:ship_limit", 4);
Set("/:density", 4);
Set("/:linear_speed", 6);
Set("/:alien_weapon_speed", 12);
Set("/:overall_likely_to_fire", 150);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 20);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 30);
Set("/:crazy_start", 1);
Set("/:crazy_boundry", /:max_x / 2);
Set("/:child_speed", 5);
Set("/:child_friction", 0.8);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_speed", 1);
Set("/:mother_friction", 0.8);
Set("/:mother_change", 50);
Set("/:mother_length", 500);
Set("/:comet_speed", 2);
Set("/:comet_weight", 0);
Set("/:comet_length", 5);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 1);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 1);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 5) {
Set("/:fire_accuracy", 250);
Set("/:powerup_frequency", 300);
Set("/:rock_frequency", 100);
Set("/:formations", 4);
Set("/:formation_limit", 5);
Set("/:ship_limit", 4);
Set("/:density", 4);
Set("/:linear_speed", 7);
Set("/:alien_weapon_speed", 11);
Set("/:overall_likely_to_fire", 125);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 100);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 100);
Set("/:crazy_percentage_follow", 40);
Set("/:crazy_start", 1);
Set("/:crazy_boundry", /:max_x / 2);
Set("/:child_speed", 5);
Set("/:child_friction", 0.8);
Set("/:mother_speed", 1);
Set("/:mother_friction", 0.7);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_change", 50);
Set("/:mother_length", 200);
Set("/:comet_speed", 3);
Set("/:comet_weight", 0);
Set("/:comet_length", 5);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 3);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 6) {
Set("/:fire_accuracy", 200);
Set("/:powerup_frequency", 250);
Set("/:rock_frequency", 100);
Set("/:formations", 4);
Set("/:formation_limit", 6);
Set("/:ship_limit", 4);
Set("/:density", 5);
Set("/:linear_speed", 8);
Set("/:alien_weapon_speed", 10);
Set("/:overall_likely_to_fire", 100);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 5);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 300);
Set("/:crazy_percentage_follow", 60);
Set("/:crazy_start", 1);
Set("/:crazy_boundry", /:max_x / 3);
Set("/:child_speed", 5);
Set("/:child_friction", 0.8);
Set("/:mother_speed", 2);
Set("/:mother_friction", 0.65);
Set("/:mothership_surpression_percentage", 50);
Set("/:mother_change", 30);
Set("/:mother_length", 200);
Set("/:comet_speed", 4);
Set("/:comet_weight", 2);
Set("/:comet_length", 5);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 7) {
Set("/:fire_accuracy", 150);
Set("/:powerup_frequency", 200);
Set("/:rock_frequency", 100);
Set("/:formations", 4);
Set("/:formation_limit", 7);
Set("/:ship_limit", 4);
Set("/:density", 5);
Set("/:linear_speed", 9);
Set("/:alien_weapon_speed", 10);
Set("/:overall_likely_to_fire", 75);
Set("/:crazy_speed", 1);
Set("/:crazy_change", 15);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 40);
Set("/:crazy_start", 2);
Set("/:crazy_boundry", /:max_x / 3);
Set("/:child_speed", 5);
Set("/:child_friction", 0.9);
Set("/:mother_speed", 3);
Set("/:mother_friction", 0.6);
Set("/:mothership_surpression_percentage", 30);
Set("/:mother_change", 5);
Set("/:mother_length", 200);
Set("/:comet_speed", 5);
Set("/:comet_weight", 2);
Set("/:comet_length", 5);
Set("/:jane_speed", 1.5);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 3);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 8) {
Set("/:fire_accuracy", 100);
Set("/:powerup_frequency", 300);
Set("/:rock_frequency", 100);
Set("/:formations", 5);
Set("/:formation_limit", 7);
Set("/:ship_limit", 4);
Set("/:density", 4);
Set("/:linear_speed", 10);
Set("/:alien_weapon_speed", 10);
Set("/:overall_likely_to_fire", 25);
Set("/:crazy_speed", 1.3);
Set("/:crazy_change", 20);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 50);
Set("/:crazy_start", 3);
Set("/:crazy_boundry", /:max_x / 3);
Set("/:child_speed", 6);
Set("/:child_friction", 0.9);
Set("/:mother_speed", 4);
Set("/:mother_friction", 0.6);
Set("/:mothership_surpression_percentage", 30);
Set("/:mother_change", 20);
Set("/:mother_length", 200);
Set("/:comet_speed", 6);
Set("/:comet_weight", 2);
Set("/:comet_length", 5);
Set("/:jane_speed", 1.7);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 3);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 9) {
Set("/:fire_accuracy", 20);
Set("/:powerup_frequency", 300);
Set("/:rock_frequency", 100);
Set("/:formations", 5);
Set("/:formation_limit", 7);
Set("/:ship_limit", 4);
Set("/:density", 4);
Set("/:linear_speed", 10);
Set("/:alien_weapon_speed", 10);
Set("/:overall_likely_to_fire", 25);
Set("/:crazy_speed", 1.3);
Set("/:crazy_change", 20);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 50);
Set("/:crazy_start", 3);
Set("/:crazy_boundry", /:max_x / 3);
Set("/:child_speed", 7);
Set("/:child_friction", 0.9);
Set("/:mother_speed", 4);
Set("/:mother_friction", 0.6);
Set("/:mothership_surpression_percentage", 30);
Set("/:mother_change", 20);
Set("/:mother_length", 200);
Set("/:comet_speed", 6);
Set("/:comet_weight", 2);
Set("/:comet_length", 5);
Set("/:jane_speed", 1.9);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 3);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
} else if (/:level == 10) {
Set("/:fire_accuracy", 0);
Set("/:powerup_frequency", 300);
Set("/:rock_frequency", 100);
Set("/:formations", 7);
Set("/:formation_limit", 7);
Set("/:ship_limit", 4);
Set("/:density", 4);
Set("/:linear_speed", 10);
Set("/:alien_weapon_speed", 10);
Set("/:overall_likely_to_fire", 25);
Set("/:crazy_speed", 1.3);
Set("/:crazy_change", 20);
Set("/:crazy_friction", 0.8);
Set("/:crazy_length", 200);
Set("/:crazy_percentage_follow", 50);
Set("/:crazy_start", 3);
Set("/:crazy_boundry", /:max_x / 3);
Set("/:child_speed", 7);
Set("/:child_friction", 0.9);
Set("/:mother_speed", 4);
Set("/:mother_friction", 0.6);
Set("/:mothership_surpression_percentage", 30);
Set("/:mother_change", 20);
Set("/:mother_length", 200);
Set("/:comet_speed", 6);
Set("/:comet_weight", 2);
Set("/:comet_length", 5);
Set("/:jane_speed", 2);
Set("/:jane_change", 10);
Set("/:jane_friction", 0.3);
Set("/:jane_friction2", 0.99);
Set("/:jane_wibble_frequency", 20);
Set("/:jane_wibble_length", 10);
Set("/:jane_length", 300);
Set("/:jane_percentage_follow", 10);
Set("/:jane_start", 3);
Set("/:jane_wibble_change", 5);
Set("/:peter_start", 3);
Set("/:peter_surpress_percentage", 75);
Set("/:peter_speed", 2);
Set("/:peter_length", 300);
Set("/:peter_change", 20);
}
Symbol 207 Button
on (keyPress "1") {
if (/:weapon_got_1 == 1) {
Set("/:weapon_type", 1);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "2") {
if (/:weapon_got_2 == 1) {
Set("/:weapon_type", 2);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "3") {
if (/:weapon_got_3 == 1) {
Set("/:weapon_type", 3);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "4") {
if (/:weapon_got_4 == 1) {
Set("/:weapon_type", 4);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "5") {
if (/:weapon_got_5 == 1) {
Set("/:weapon_type", 5);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "6") {
if (/:weapon_got_6 == 1) {
Set("/:weapon_type", 6);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "7") {
if (/:weapon_got_7 == 1) {
Set("/:weapon_type", 7);
Set("/:shield_weapon", 0);
_root.click.start();
if (/:shield_weapon == 1) {
_root.armoury.shield_sound.gotoAndPlay(5);
}
} else {
_root.bad_buy.start();
}
}
on (keyPress "8") {
if (/:weapon_got_8 == 1) {
Set("/:weapon_type", 8);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "c") {
if (/:controls != "keyboard") {
Set("/:controls", "keyboard");
} else {
Set("/:controls", "mouse");
}
}
on (keyPress "e") {
Set("/:cheat", 1);
}
on (keyPress "r") {
if (/:cheat == 1) {
Set("/:cheat", 2);
}
}
on (keyPress "h") {
if (cheat == 2) {
cheat = 3;
Set("/:weapon_got_2", 1);
Set("/:weapon_got_3", 1);
Set("/:weapon_got_4", 1);
Set("/:weapon_got_5", 1);
Set("/:weapon_got_6", 1);
Set("/:weapon_got_7", 1);
Set("/:weapon_got_8", 1);
Set("/:ship_type", 6);
}
}
on (keyPress ".") {
if (cheat == 3) {
if (/:level == 9) {
gotoAndPlay (330);
} else {
gotoAndPlay (9);
}
}
}
on (keyPress ",") {
if (cheat == 3) {
Set("/:level", /:level - 2);
if (/:level < 0) {
Set("/:level", 0);
}
gotoAndPlay (9);
}
}
Symbol 217 MovieClip Frame 2
if (/:shield_weapon == 0) {
prevFrame();
play();
}
Symbol 251 MovieClip Frame 1
x = /:max_x + 40;
y = random(/:max_y - 80) + 40;
rock_type = random(20) + 1;
rock.graphic.gotoAndStop(rock_type);
this._x = x;
this._y = y;
rock_on = 0;
xs = -((random(5) + /:level) + 1);
Symbol 251 MovieClip Frame 2
if (rock_on == 0) {
if (random(/:rock_frequency) == 1) {
rock_on = 1;
}
} else {
x = x + xs;
if (x < -40) {
gotoAndPlay (4);
}
if (this.hitTest(_root.ship.detect) or this.hitTest(_root.trailor)) {
Set("/:cash", /:cash + 1000);
_root.pickup.start();
Set("/:total_rocks", /:total_rocks + 1);
Set("/:rocks_this_level", /:rocks_this_level + 1);
Set("/:rock_" add rock_type, eval ("/:rock_" add rock_type) + 1);
gotoAndPlay (4);
}
}
this._x = x;
this._y = y;
Symbol 251 MovieClip Frame 3
prevFrame();
play();
Symbol 252 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
x = /:max_x + 40;
y = random(/:max_y - 80) + 40;
powerup_type = random(2) + 1;
graphic.gotoAndStop(powerup_type);
this._x = x;
this._y = y;
powerup_on = 0;
xs = -(random(5) + 5);
Symbol 253 MovieClip Frame 2
if (powerup_on == 0) {
if (random(/:powerup_frequency) == 1) {
powerup_on = 1;
}
} else {
x = x + xs;
if (x < -40) {
gotoAndPlay (4);
}
if (this.hitTest(_root.ship.detect) or this.hitTest(_root.trailor)) {
_root.pickup.start();
if (powerup_type == 1) {
_root.ship.shield = _root.ship.shield + 10;
} else {
_root.ship.shield = _root.ship.shield + 25;
}
if (_root.ship.max_shield < _root.ship.shield) {
_root.ship.shield = _root.ship.max_shield;
}
gotoAndPlay (4);
}
}
this._x = x;
this._y = y;
Symbol 253 MovieClip Frame 3
prevFrame();
play();
Symbol 267 MovieClip Frame 2
if (random(/:alien_anim) != 1) {
prevFrame();
play();
}
Symbol 267 MovieClip Frame 11
if (random(/:alien_anim) != 1) {
prevFrame();
play();
}
Symbol 270 MovieClip Frame 2
if (random(/:alien_anim) != 1) {
prevFrame();
play();
}
Symbol 270 MovieClip Frame 11
if (random(/:alien_anim) != 1) {
prevFrame();
play();
}
Symbol 273 MovieClip Frame 12
stop();
_parent._parent._parent.ships_finished = _parent._parent._parent.ships_finished + 1;
Symbol 274 MovieClip Frame 1
gotoAndStop(eval ("_parent._parent.ship_type" add _parent.this_is));
_parent.hit_points = 1;
_parent.likely_to_fire = 200;
_parent.weapon_type = 2;
_parent.score_worth = 100;
Symbol 274 MovieClip Frame 2
_parent.hit_points = 3;
_parent.likely_to_fire = 100;
_parent.weapon_type = 2;
_parent.score_worth = 200;
Symbol 274 MovieClip Frame 3
_parent.hit_points = 2;
_parent.likely_to_fire = 200;
_parent.weapon_type = 2;
_parent.score_worth = 300;
Symbol 274 MovieClip Frame 4
_parent.hit_points = 5;
_parent.likely_to_fire = 20;
_parent.weapon_type = 2;
_parent.score_worth = 400;
Symbol 274 MovieClip Frame 8
_parent.hit_points = 50;
_parent.likely_to_fire = 150;
_parent.weapon_type = 3;
_parent.score_worth = 2000;
Symbol 274 MovieClip Frame 9
_parent.hit_points = 5;
_parent.likely_to_fire = 10;
_parent.weapon_type = 2;
_parent.score_worth = 500;
Symbol 274 MovieClip Frame 10
_parent.hit_points = 5;
_parent.likely_to_fire = 0;
_parent.weapon_type = 0;
_parent.score_worth = 500;
Symbol 274 MovieClip Frame 11
_parent.hit_points = 20;
_parent.likely_to_fire = 50;
_parent.weapon_type = 1;
_parent.score_worth = 2000;
Symbol 274 MovieClip Frame 12
_parent.hit_points = 10;
_parent.likely_to_fire = 50;
_parent.weapon_type = 4;
_parent.score_worth = 500;
Symbol 274 MovieClip Frame 13
_parent.hit_points = 2;
_parent.likely_to_fire = 0;
_parent.weapon_type = 0;
_parent.score_worth = 500;
Symbol 274 MovieClip Frame 14
_parent.hit_points = 2;
_parent.likely_to_fire = 0;
_parent.weapon_type = 0;
_parent.score_worth = 500;
Symbol 275 MovieClip Frame 1
_parent.ships = _parent.ships + 1;
this_is = _parent.ships;
count = 0;
Symbol 275 MovieClip Frame 2
if (0 < hit_points) {
if (_parent.formation_type == 1) {
gotoAndPlay (7);
} else if (_parent.formation_type == 2) {
gotoAndPlay (9);
} else if (_parent.formation_type == 3) {
gotoAndPlay (11);
} else if (_parent.formation_type == 4) {
gotoAndPlay (13);
} else if (_parent.formation_type == 5) {
gotoAndPlay (15);
} else if (_parent.formation_type == 6) {
gotoAndPlay (17);
} else if (_parent.formation_type == 7) {
gotoAndPlay (19);
}
}
control.play();
Symbol 275 MovieClip Frame 3
prevFrame();
play();
Symbol 275 MovieClip Frame 5
gotoAndPlay (2);
Symbol 275 MovieClip Frame 7
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
marker = this_is * _parent.spacing;
this._x = eval ("_parent.queue_x_" add marker);
this._y = eval ("_parent.queue_y_" add marker);
if ((this._x == _parent.finish_x) and (this._y == _parent.finish_y)) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
Symbol 275 MovieClip Frame 8
prevFrame();
play();
Symbol 275 MovieClip Frame 9
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
if (eval ("_parent.ship_x" add this_is) < -40) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
Symbol 275 MovieClip Frame 10
prevFrame();
play();
Symbol 275 MovieClip Frame 11
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
Set("_parent.ship_speed" add this_is, (random(/:crazy_speed * 100) / 100) + 1);
count = count + 1;
if (/:crazy_length < count) {
Set("_parent.ship_xt" add this_is, -1000);
if (eval ("_parent.ship_x" add this_is) < -100) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
if (random(/:crazy_change) == 1) {
if (/:crazy_percentage_follow < random(100)) {
Set("_parent.ship_xt" add this_is, (random((/:max_x - 40) - /:crazy_boundry) + 20) + /:crazy_boundry);
Set("_parent.ship_yt" add this_is, random(/:max_y - 40) + 20);
} else {
Set("_parent.ship_xt" add this_is, _root.ship.x);
Set("_parent.ship_yt" add this_is, _root.ship.y);
}
}
if (eval ("_parent.ship_xt" add this_is) < eval ("_parent.ship_x" add this_is)) {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) + eval ("_parent.ship_speed" add this_is));
}
if (eval ("_parent.ship_yt" add this_is) < eval ("_parent.ship_y" add this_is)) {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) + eval ("_parent.ship_speed" add this_is));
}
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) * /:crazy_friction);
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) * /:crazy_friction);
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
Symbol 275 MovieClip Frame 12
prevFrame();
play();
Symbol 275 MovieClip Frame 13
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (ship_graphics.detect.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (ship_graphics.detect.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (ship_graphics.detect.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
if ((this._x < -30) or ((/:max_y + 30) < this_y)) {
if (_parent.comets_finish == 1) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
} else {
Set("_parent.ship_x" add this_is, random(/:max_x * 1.5));
Set("_parent.ship_y" add this_is, -40);
}
}
Symbol 275 MovieClip Frame 14
prevFrame();
play();
Symbol 275 MovieClip Frame 15
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
count = count + 1;
if (/:peter_length < count) {
if (eval ("_parent.ship_direction" add this_is) == 1) {
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) - /:peter_speed);
if (this._y < -40) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
if (eval ("_parent.ship_direction" add this_is) == 2) {
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + /:peter_speed);
if ((/:max_x + 40) < this._x) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
if (eval ("_parent.ship_direction" add this_is) == 3) {
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + /:peter_speed);
if ((/:max_y + 40) < this._y) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
if (eval ("_parent.ship_direction" add this_is) == 4) {
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) - /:peter_speed);
if (this._x < -40) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
} else {
if (eval ("_parent.ship_direction" add this_is) == 1) {
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) - /:peter_speed);
if (this._y < 40) {
Set("_parent.ship_direction" add this_is, 3);
}
}
if (eval ("_parent.ship_direction" add this_is) == 2) {
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + /:peter_speed);
if ((/:max_x - 40) < this._x) {
Set("_parent.ship_direction" add this_is, 4);
}
}
if (eval ("_parent.ship_direction" add this_is) == 3) {
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + /:peter_speed);
if ((/:max_y - 40) < this._y) {
Set("_parent.ship_direction" add this_is, 1);
}
}
if (eval ("_parent.ship_direction" add this_is) == 4) {
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) - /:peter_speed);
if (this._x < 40) {
Set("_parent.ship_direction" add this_is, 2);
}
}
if ((((40 < this._x) and (this._x < (/:max_x - 40))) and (40 < this._y)) and (this._y < (/:max_y - 40))) {
if (random(/:peter_change) == 1) {
Set("_parent.ship_direction" add this_is, random(4) + 1);
}
}
}
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
Symbol 275 MovieClip Frame 16
prevFrame();
play();
Symbol 275 MovieClip Frame 17
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
if (this_is == 1) {
count = count + 1;
if (/:mother_length < count) {
Set("_parent.ship_xt" add this_is, -1000);
if (eval ("_parent.ship_x" add this_is) < -100) {
_parent.ships_finished = _parent.no_of_ships;
stop();
}
}
if (random(/:mother_change) == 1) {
_parent.ship_xt1 = (/:max_x / 2) + random((/:max_x / 2) - 40);
_parent.ship_yt1 = random(/:max_y - 80) + 40;
}
Set("_parent.ship_speed" add this_is, (random(/:mother_speed * 100) / 100) + 1);
if (eval ("_parent.ship_xt" add this_is) < eval ("_parent.ship_x" add this_is)) {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) + eval ("_parent.ship_speed" add this_is));
}
if (eval ("_parent.ship_yt" add this_is) < eval ("_parent.ship_y" add this_is)) {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) + eval ("_parent.ship_speed" add this_is));
}
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) * /:mother_friction);
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) * /:mother_friction);
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
} else {
if (_parent.mother_dead == 1) {
ship_graphics.gotoAndStop(50);
Set("/:score", /:score + score_worth);
gotoAndPlay (7);
}
Set("_parent.ship_speed" add this_is, (random(/:child_speed * 100) / 100) + 1);
Set("_parent.ship_xt" add this_is, _parent.ship_x1 - 100);
Set("_parent.ship_yt" add this_is, (_parent.ship_y1 + random(150)) - 75);
xt = eval ("_parent.ship_xt" add this_is);
if (eval ("_parent.ship_xt" add this_is) < eval ("_parent.ship_x" add this_is)) {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) + eval ("_parent.ship_speed" add this_is));
}
if (eval ("_parent.ship_yt" add this_is) < eval ("_parent.ship_y" add this_is)) {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) + eval ("_parent.ship_speed" add this_is));
}
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) * /:child_friction);
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) * /:child_friction);
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
}
Symbol 275 MovieClip Frame 18
prevFrame();
play();
Symbol 275 MovieClip Frame 19
count = count + 1;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (this.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (this.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
if ((_parent.formation_type == 6) and (this_is != 1)) {
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
gotoAndPlay (25);
} else {
if ((_parent.formation_type == 6) and (this_is == 1)) {
_parent.mother_dead = 1;
}
ship_graphics.gotoAndStop(50);
if (/:level_counter < /:level_length) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
}
stop();
}
} else {
gotoAndPlay (4);
}
}
if (likely_to_fire != 0) {
if (random(likely_to_fire + /:overall_likely_to_fire) == 1) {
Set("/:alien_weapon_type", weapon_type);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
Set("_parent.ship_speed" add this_is, (random(/:jane_speed * 100) / 1000) + 1);
count = count + 1;
if (/:jane_length < count) {
Set("_parent.ship_xt" add this_is, -1000);
if (eval ("_parent.ship_x" add this_is) < -100) {
_parent.ships_finished = _parent.ships_finished + 1;
stop();
}
}
if (random(/:jane_change) == 1) {
if (/:jane_percentage_follow < random(100)) {
Set("_parent.ship_xt" add this_is, random(/:max_x - 40) + 20);
Set("_parent.ship_yt" add this_is, random(/:max_y - 40) + 20);
} else {
Set("_parent.ship_xt" add this_is, _root.ship.x);
Set("_parent.ship_yt" add this_is, _root.ship.y);
}
}
if (eval ("_parent.ship_xt" add this_is) < eval ("_parent.ship_x" add this_is)) {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) + eval ("_parent.ship_speed" add this_is));
}
if (eval ("_parent.ship_yt" add this_is) < eval ("_parent.ship_y" add this_is)) {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) - eval ("_parent.ship_speed" add this_is));
} else {
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) + eval ("_parent.ship_speed" add this_is));
}
if (random(/:jane_wibble_frequency) == 1) {
wibble_on = 1;
wibble_count = 0;
}
if (wibble_on == 1) {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) * /:jane_friction2);
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) * /:jane_friction2);
wibble_count = wibble_count + 1;
if (/:jane_wibble_length < wibble_count) {
wibble_on = 0;
}
if (random(/:jane_wibble_change) == 1) {
if (/:jane_percentage_follow < random(100)) {
Set("_parent.ship_xt" add this_is, random(/:max_x - 40) + 20);
Set("_parent.ship_yt" add this_is, random(/:max_y - 40) + 20);
} else {
Set("_parent.ship_xt" add this_is, _root.ship.x);
Set("_parent.ship_yt" add this_is, _root.ship.y);
}
}
} else {
Set("_parent.ship_xs" add this_is, eval ("_parent.ship_xs" add this_is) * /:jane_friction);
Set("_parent.ship_ys" add this_is, eval ("_parent.ship_ys" add this_is) * /:jane_friction);
}
Set("_parent.ship_x" add this_is, eval ("_parent.ship_x" add this_is) + eval ("_parent.ship_xs" add this_is));
Set("_parent.ship_y" add this_is, eval ("_parent.ship_y" add this_is) + eval ("_parent.ship_ys" add this_is));
this._x = eval ("_parent.ship_x" add this_is);
this._y = eval ("_parent.ship_y" add this_is);
Symbol 275 MovieClip Frame 20
prevFrame();
play();
Symbol 275 MovieClip Frame 22
prevFrame();
play();
Symbol 275 MovieClip Frame 24
prevFrame();
play();
Symbol 275 MovieClip Frame 50
if (_parent.mother_dead == 0) {
Set("_parent.ship_x" add this_is, _parent.ship_x1);
Set("_parent.ship_y" add this_is, _parent.ship_y1);
Set("_parent.ship_xs" add this_is, random(10) - 5);
Set("_parent.ship_ys" add this_is, random(10) - 5);
_parent.ships_finished = _parent.ships_finished - 1;
gotoAndPlay (2);
} else {
stop();
}
Symbol 277 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 85
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 279 MovieClip Frame 131
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 280 MovieClip Frame 101
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 281 MovieClip Frame 121
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 282 MovieClip Frame 100
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 283 MovieClip Frame 200
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 284 MovieClip Frame 300
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 285 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 286 MovieClip Frame 200
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 287 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 288 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 289 MovieClip Frame 100
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 290 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 291 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 292 MovieClip Frame 140
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 293 MovieClip Frame 80
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 294 MovieClip Frame 101
stop();
_parent._parent.finish_x = leader._x;
_parent._parent.finish_y = leader._y;
Symbol 295 MovieClip Frame 1
if (/:pure_level_path_percentage < random(100)) {
bob = random((3 * /:level) + 2) + 1;
} else if (/:level == 1) {
bob = random(5) + 1;
} else {
bob = random(3) + (/:level * 3);
}
gotoAndStop(bob);
Instance of Symbol 278 MovieClip "path" in Symbol 295 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 279 MovieClip "path" in Symbol 295 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 280 MovieClip "path" in Symbol 295 MovieClip Frame 3
/* no clip actions */
Instance of Symbol 281 MovieClip "path" in Symbol 295 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 282 MovieClip "path" in Symbol 295 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 283 MovieClip "path" in Symbol 295 MovieClip Frame 6
/* no clip actions */
Instance of Symbol 284 MovieClip "path" in Symbol 295 MovieClip Frame 7
/* no clip actions */
Instance of Symbol 285 MovieClip "path" in Symbol 295 MovieClip Frame 8
/* no clip actions */
Instance of Symbol 286 MovieClip "path" in Symbol 295 MovieClip Frame 9
/* no clip actions */
Instance of Symbol 287 MovieClip "path" in Symbol 295 MovieClip Frame 10
/* no clip actions */
Instance of Symbol 288 MovieClip "path" in Symbol 295 MovieClip Frame 11
/* no clip actions */
Instance of Symbol 289 MovieClip "path" in Symbol 295 MovieClip Frame 12
/* no clip actions */
Instance of Symbol 290 MovieClip "path" in Symbol 295 MovieClip Frame 13
/* no clip actions */
Instance of Symbol 291 MovieClip "path" in Symbol 295 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 292 MovieClip "path" in Symbol 295 MovieClip Frame 15
/* no clip actions */
Instance of Symbol 293 MovieClip "path" in Symbol 295 MovieClip Frame 16
/* no clip actions */
Instance of Symbol 294 MovieClip "path" in Symbol 295 MovieClip Frame 17
/* no clip actions */
Symbol 296 MovieClip Frame 1
if (/:level_length < /:level_counter) {
stop();
} else {
no_of_ships = random(/:density) + 1;
ships_type = random(/:ship_limit) + 1;
ships_finished = 0;
formation_type = random(/:formation_limit) + 1;
if ((formation_type == 5) and (random(100) < /:peter_surpression_percentage)) {
formation_type = random(/:formation_limit) + 1;
}
if ((formation_type == 6) and (random(100) < /:mothership_surpression_percentage)) {
formation_type = random(/:formation_limit) + 1;
}
if (formation_type == 1) {
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
Set("ship_type" add i, ships_type);
i++;
}
spacing = 5 + random(5);
i = spacing * no_of_ships;
while (0 < i) {
Set("queue_x_" add i, paths.path.leader._x);
Set("queue_y_" add i, paths.path.leader._y);
i--;
}
finish_x = -2000;
finish_y = -2000;
} else if (formation_type == 2) {
spacing = random(30) + 30;
x_speed = -(random(/:linear_speed) + 5);
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
Set("ship_x" add i, (/:max_x + 40) + (i * spacing));
Set("ship_y" add i, random(/:max_y - 40) + 20);
Set("ship_xs" add i, x_speed);
Set("ship_ys" add i, 0);
Set("ship_type" add i, ships_type);
i++;
}
} else if (formation_type == 3) {
ships_type = 9;
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
Set("ship_type" add i, ships_type);
a = random(/:crazy_start);
if (a == 0) {
Set("ship_x" add i, /:max_x + 40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
} else if (a == 1) {
Set("ship_x" add i, random(/:max_x - 40) + 20);
Set("ship_y" add i, -40);
} else if (a == 2) {
Set("ship_x" add i, random(/:max_x - 40) + 20);
Set("ship_y" add i, /:max_y + 40);
} else if (a == 3) {
Set("ship_x" add i, -40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
}
Set("ship_xs" add i, 0);
Set("ship_ys" add i, 0);
Set("ship_xt" add i, (random((/:max_x - 40) - /:crazy_boundry) + 20) + /:crazy_boundry);
Set("ship_yt" add i, random(/:max_y - 40) + 20);
Set("ship_speed" add i, /:crazy_speed);
i++;
}
} else if (formation_type == 6) {
mother_dead = 0;
no_of_ships = 4;
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
ship_x1 = /:max_x + 110;
ship_y1 = /:max_y / 2;
ship_xs1 = 0;
ship_ys1 = 0;
ship_xt1 = (/:max_x / 2) + random((/:max_x / 2) - 40);
ship_yt1 = random(/:max_y - 80) + 40;
ship_type1 = 11;
i = 2;
while (no_of_ships >= i) {
Set("ship_type" add i, 10);
Set("ship_x" add i, /:max_x + 40);
Set("ship_y" add i, /:max_y / 2);
Set("ship_xs" add i, random(crazy_speed * 4) - (crazy_speed * 2));
Set("ship_ys" add i, random(crazy_speed * 4) - (crazy_speed * 2));
Set("ship_xt" add i, ship_x1);
Set("ship_yt" add i, ship_y1);
Set("ship_speed" add i, (random(100) / 100) + /:crazy_speed);
i++;
}
} else if (formation_type == 7) {
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
Set("ship_type" add i, 12);
a = random(/:jane_start);
if (a == 0) {
Set("ship_x" add i, /:max_x + 40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
} else if (a == 1) {
Set("ship_x" add i, random(/:max_x / 2) + (/:max_x / 2));
Set("ship_y" add i, -40);
} else if (a == 2) {
Set("ship_x" add i, random(/:max_x / 2) + (/:max_x / 2));
Set("ship_y" add i, /:max_y + 40);
} else if (a == 3) {
Set("ship_x" add i, -40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
}
Set("ship_xs" add i, 0);
Set("ship_ys" add i, 0);
if (/:jane_percentage_follow < random(100)) {
Set("ship_xt" add this_is, random(/:max_x - 40) + 20);
Set("ship_yt" add this_is, random(/:max_y - 40) + 20);
} else {
Set("ship_xt" add this_is, _root.ship.x);
Set("ship_yt" add this_is, _root.ship.y);
}
Set("ship_speed" add i, (random(100) / 100) + (/:jane_speed / 5));
i++;
}
} else if (formation_type == 4) {
no_of_ships = no_of_ships + /:comet_weight;
comets_finish = 0;
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
extra_speed = random(20) / 10;
if (random(3) == 1) {
Set("ship_x" add i, /:max_x + random(200));
Set("ship_y" add i, random(/:max_y));
} else {
Set("ship_x" add i, random(/:max_x));
Set("ship_y" add i, -random(400));
}
Set("ship_xs" add i, -(/:comet_speed + extra_speed));
Set("ship_ys" add i, /:comet_speed + extra_speed);
Set("ship_type" add i, 13 + random(2));
i++;
}
} else if (formation_type == 5) {
ships_type = 8;
no_of_ships = 2;
i = 2;
while (no_of_ships >= i) {
duplicateMovieClip ("ship", i, i);
i++;
}
i = 1;
while (no_of_ships >= i) {
Set("ship_type" add i, ships_type);
a = random(/:peter_start);
if (a == 0) {
Set("ship_x" add i, /:max_x + 40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
Set("ship_direction" add i, 4);
} else if (a == 1) {
Set("ship_x" add i, (random(/:max_x / 2) + (/:max_x / 2)) - 40);
Set("ship_y" add i, -40);
Set("ship_direction" add i, 3);
} else if (a == 2) {
Set("ship_x" add i, (random(/:max_x / 2) + (/:max_x / 2)) - 40);
Set("ship_y" add i, /:max_y + 40);
Set("ship_direction" add i, 1);
} else if (a == 3) {
Set("ship_x" add i, -40);
Set("ship_y" add i, random(/:max_y - 40) + 20);
Set("ship_direction" add i, 2);
}
i++;
}
}
}
Symbol 296 MovieClip Frame 2
if (formation_type == 1) {
i = spacing * no_of_ships;
while (1 < i) {
j = i - 1;
Set("queue_x_" add i, eval ("queue_x_" add j));
Set("queue_y_" add i, eval ("queue_y_" add j));
i--;
}
queue_x_1 = paths.path.leader._x;
queue_y_1 = paths.path.leader._y;
} else if (formation_type == 2) {
}
if (ships_finished >= no_of_ships) {
_parent.gotoAndPlay(2);
}
if (formation_type == 6) {
if (random(/:comet_length) == 1) {
comets_finish = 1;
}
}
Symbol 296 MovieClip Frame 3
prevFrame();
play();
Symbol 297 MovieClip Frame 1
_parent.formations = _parent.formations + 1;
this_is = _parent.formations;
Symbol 297 MovieClip Frame 3
gotoAndPlay (5);
Symbol 297 MovieClip Frame 4
prevFrame();
play();
Symbol 297 MovieClip Frame 6
prevFrame();
play();
Symbol 298 MovieClip Frame 1
i = 2;
while (/:formations >= i) {
duplicateMovieClip ("original", i, i);
i++;
}
Symbol 298 MovieClip Frame 3
prevFrame();
play();
Symbol 316 MovieClip Frame 1
_parent.weapon_strength = 5;
stop();
Symbol 316 MovieClip Frame 2
_parent.weapon_strength = 2;
Symbol 316 MovieClip Frame 3
_parent.weapon_strength = 20;
Symbol 316 MovieClip Frame 4
_parent.weapon_strength = 7;
Symbol 316 MovieClip Frame 5
_parent.weapon_strength = 11;
Symbol 316 MovieClip Frame 6
_parent.weapon_strength = 20;
Symbol 316 MovieClip Frame 7
_parent.weapon_strength = 1;
Symbol 317 MovieClip Frame 1
_parent.bullets = _parent.bullets + 1;
this_is = _parent.bullets;
Symbol 317 MovieClip Frame 2
if (eval ("_parent.bullet_on" add this_is) == 1) {
if (eval ("_parent.bullet_type" add this_is) == 6) {
Set("_parent.bullet_xs" add this_is, eval ("_parent.bullet_xs" add this_is) * 1.1);
}
Set("_parent.bullet_x" add this_is, eval ("_parent.bullet_x" add this_is) + eval ("_parent.bullet_xs" add this_is));
Set("_parent.bullet_y" add this_is, eval ("_parent.bullet_y" add this_is) + eval ("_parent.bullet_ys" add this_is));
}
if (((/:max_x + 20) < eval ("_parent.bullet_x" add this_is)) or (eval ("_parent.bullet_x" add this_is) < -20)) {
Set("_parent.bullet_on" add this_is, 0);
Set("_parent.bullet_x" add this_is, -1000);
Set("_parent.bullet_y" add this_is, -1000);
gotoAndPlay (4);
}
if (((/:max_x + 20) < eval ("_parent.bullet_x" add this_is)) or (eval ("_parent.bullet_x" add this_is) < -20)) {
Set("_parent.bullet_on" add this_is, 0);
Set("_parent.bullet_x" add this_is, -1000);
Set("_parent.bullet_y" add this_is, -1000);
gotoAndPlay (4);
}
this._x = eval ("_parent.bullet_x" add this_is);
this._y = eval ("_parent.bullet_y" add this_is);
bull.gotoAndStop(eval ("_parent.bullet_type" add this_is));
if (this.hitTest(_root.ship.detect)) {
if (/:shield_weapon != 1) {
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
_root.enemy_weapon_hit.start();
gotoAndPlay (6);
}
if (this.hitTest(_root.trailor.detect) or (/:level_length < /:level_counter)) {
_root.enemy_weapon_hit.start();
gotoAndPlay (6);
}
Symbol 317 MovieClip Frame 3
prevFrame();
play();
Symbol 317 MovieClip Frame 5
gotoAndPlay (2);
Symbol 317 MovieClip Frame 17
Set("_parent.bullet_on" add this_is, 0);
Set("_parent.bullet_x" add this_is, -1000);
Set("_parent.bullet_y" add this_is, -1000);
gotoAndPlay (2);
Symbol 318 MovieClip Frame 1
max_bullets = 9;
i = 1;
while (max_bullets >= i) {
Set("bullet_on" add i, 0);
Set("bullet_x" add i, -1000);
Set("bullet_y" add i, -1000);
Set("bullet_xs" add i, 0);
Set("bullet_ys" add i, 0);
Set("bullet_type" add i, 0);
i++;
}
Symbol 318 MovieClip Frame 2
a = 0;
if (/:alien_fire == 1) {
Set("/:alien_fire", 0);
i = 1;
while (max_bullets >= i) {
if (a == 0) {
if (eval ("bullet_on" add i) == 0) {
a = i;
Set("bullet_x" add a, /:alien_ship_x);
Set("bullet_y" add a, /:alien_ship_y);
if (/:alien_weapon_type == 3) {
_root.alienweapon3.start();
xs = -3;
ys = 0;
} else if (/:alien_weapon_type == 6) {
_root.missile.start();
xs = -10;
ys = 0;
Set("bullet_y" add a, eval ("bullet_y" add a) + (random(150) - 75));
} else {
_root.alienweapon3.start();
target_x = _root.ship.x + (random(/:fire_accuracy) - (/:fire_accuracy / 2));
target_y = _root.ship.y + (random(/:fire_accuracy) - (/:fire_accuracy / 2));
aq = /:alien_ship_x - target_x;
bq = /:alien_ship_y - target_y;
hq = Math.sqrt((aq * aq) + (bq * bq)) / 100;
xs = (target_x - /:alien_ship_x) / (/:alien_weapon_speed * hq);
ys = (target_y - /:alien_ship_y) / (/:alien_weapon_speed * hq);
}
Set("bullet_xs" add a, xs);
Set("bullet_ys" add a, ys);
Set("bullet_on" add a, 1);
Set("bullet_type" add a, /:alien_weapon_type);
if (/:alien_weapon_type != 5) {
gotoAndPlay (4);
}
}
}
i++;
}
}
Symbol 318 MovieClip Frame 3
prevFrame();
play();
Symbol 318 MovieClip Frame 7
gotoAndPlay (2);
Symbol 318 MovieClip Frame 35
gotoAndPlay (2);
Symbol 323 Button
on (keyPress "1") {
if (/:weapon_got_1 == 1) {
Set("/:weapon_type", 1);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "2") {
if (/:weapon_got_2 == 1) {
Set("/:weapon_type", 2);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "3") {
if (/:weapon_got_3 == 1) {
Set("/:weapon_type", 3);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "4") {
if (/:weapon_got_4 == 1) {
Set("/:weapon_type", 4);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "5") {
if (/:weapon_got_5 == 1) {
Set("/:weapon_type", 5);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "6") {
if (/:weapon_got_6 == 1) {
Set("/:weapon_type", 6);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "7") {
if (/:weapon_got_7 == 1) {
Set("/:weapon_type", 7);
Set("/:shield_weapon", 0);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "8") {
if (/:weapon_got_8 == 1) {
Set("/:weapon_type", 8);
_root.click.start();
} else {
_root.bad_buy.start();
}
}
on (keyPress "c") {
if (/:controls != "keyboard") {
Set("/:controls", "keyboard");
} else {
Set("/:controls", "mouse");
}
}
on (keyPress "e") {
Set("/:cheat", 1);
}
on (keyPress "r") {
if (/:cheat == 1) {
Set("/:cheat", 2);
}
}
on (keyPress "h") {
if (cheat == 2) {
cheat = 3;
Set("/:weapon_got_2", 1);
Set("/:weapon_got_3", 1);
Set("/:weapon_got_4", 1);
Set("/:weapon_got_5", 1);
Set("/:weapon_got_6", 1);
Set("/:weapon_got_7", 1);
Set("/:weapon_got_8", 1);
Set("/:ship_type", 6);
}
}
on (keyPress ".") {
if (cheat == 3) {
if (/:level == 9) {
gotoAndPlay (330);
} else {
gotoAndPlay (9);
}
}
}
on (keyPress ",") {
if (cheat == 3) {
Set("/:level", /:level - 2);
if (/:level < 0) {
Set("/:level", 0);
}
gotoAndPlay (9);
}
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
count = 20;
Symbol 334 MovieClip Frame 2
count = count + 3;
_parent.mum._x = (random(2 + count) - (1 + (count / 2))) / 10;
_parent.mum._y = (random(2 + count) - (1 + (count / 2))) / 10;
Symbol 334 MovieClip Frame 3
prevFrame();
play();
Symbol 335 MovieClip Frame 1
scale = random(150) + 50;
this._xscale = scale;
this._yscale = scale;
this._x = random(200) - 100;
this._y = random(200) - 100;
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
Symbol 338 MovieClip Frame 1
cx = 0;
cy = 0;
gravity = 5;
x = _parent._x;
y = _parent._y;
xs = -((cx - x) / ((random(50) / 10) + 1));
ys = -((cy - y) / ((random(50) / 10) + 1));
scx = -((cx - x) / 3);
scy = -((cy - y) / 3);
scalespeed = Math.sqrt((scx * scx) + (scy * scy));
scalespeed = (-scalespeed) + 30;
rot = 0;
if (random(5) != 1) {
rotsp = (random(100) - 50) / 5;
rotfriction = 0.95;
} else {
rotsp = random(200) - 100;
rotfriction = 0.8;
}
Symbol 338 MovieClip Frame 2
ys = ys + gravity;
_parent._x = _parent._x + xs;
_parent._y = _parent._y + ys;
if (0 < (_parent._xscale + scalespeed)) {
_parent._xscale = _parent._xscale + scalespeed;
} else {
_parent._xscale = 0;
}
if (0 < (_parent._yscale + scalespeed)) {
_parent._yscale = _parent._yscale + scalespeed;
} else {
_parent._yscale = 0;
}
rot = rot + rotsp;
rotsp = rotsp * rotfriction;
_parent._rotation = rot;
Symbol 338 MovieClip Frame 3
prevFrame();
play();
Symbol 362 MovieClip Frame 1
score_worth = 50000;
base_accel = 2;
fury_accel = 10;
base_friction = 0.4;
fury_friction = 0.5;
xs = 0;
ys = 0;
xt = /:max_x - (random(200) + 100);
yt = random(/:max_y - 100) + 50;
mode = "base";
hit_points = 800;
base_change = 100;
fury_change = 20;
fire_wait = 10;
countdown_to_fire = 50;
volley = 0;
firing = 0;
fire_mode = 6;
mood_changer = 10;
Symbol 362 MovieClip Frame 2
if (random(mood_changer) == 1) {
if (mode == "base") {
mode = "fury";
xt = /:max_x - (random(200) + 100);
yt = random(/:max_y - 100) + 50;
} else {
mode = "base";
}
}
if (mode == "base") {
if (random(base_change) == 1) {
xt = /:max_x - (random(200) + 100);
yt = random(/:max_y - 100) + 50;
}
if (this._x < xt) {
xs = xs + base_accel;
}
if (xt < this._x) {
xs = xs - base_accel;
}
if (this._y < yt) {
ys = ys + base_accel;
}
if (yt < this._y) {
ys = ys - base_accel;
}
xs = xs * base_friction;
ys = ys * base_friction;
} else {
if (random(fury_change) == 1) {
xt = /:max_x - (random(200) + 100);
yt = random(/:max_y - 100) + 50;
}
if (this._x < xt) {
xs = xs + fury_accel;
}
if (xt < this._x) {
xs = xs - fury_accel;
}
if (this._y < yt) {
ys = ys + fury_accel;
}
if (yt < this._y) {
ys = ys - fury_accel;
}
xs = xs * fury_friction;
ys = ys * fury_friction;
}
this._x = this._x + xs;
this._y = this._y + ys;
hit = 0;
i = 1;
while (i < _root.armoury.max_bullets) {
if (detect1.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
} else if (detect2.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
} else if (detect3.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
} else if (detect4.hitTest(eval ("_root.armoury.bullet" add i))) {
dib = eval ("_root.armoury.bullet_type" add i);
hit = hit + eval ("_root.armoury.weapon_strength" add dib);
if (dib < 7) {
Set("_root.armoury.bullet_on" add i, 0);
Set("_root.armoury.bullet_x" add i, -1000);
Set("_root.armoury.bullet_y" add i, -1000);
}
}
i++;
}
if (((detect1.hitTest(_root.ship.detect) or detect2.hitTest(_root.ship.detect)) or detect3.hitTest(_root.ship.detect)) or detect4.hitTest(_root.ship.detect)) {
if (/:shield_weapon == 1) {
hit = hit + /:shield_weapon_damage;
} else {
if (hit_points >= _root.ship.shield) {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = _root.ship.shield;
} else {
hit = hit + _root.ship.shield;
_root.ship.alien_hit = hit_points;
}
_root.ship.alien_hit = _root.ship.alien_hit + weapon_strength;
}
}
if (((detect1.hitTest(_root.trailor.detect) or detect2.hitTest(_root.trailor.detect)) or detect3.hitTest(_root.trailor.detect)) or detect4.hitTest(_root.trailor.detect)) {
hit = hit + /:trailor_damage;
}
if ((0 < hit) or (/:level_length < /:level_counter)) {
hit_points = hit_points - hit;
if ((hit_points < 1) or (/:level_length < /:level_counter)) {
Set("/:score", /:score + score_worth);
smee = random(3);
if (smee == 0) {
_root.explosion1.start();
} else if (smee == 1) {
_root.explosion2.start();
} else if (smee == 2) {
_root.explosion3.start();
}
gotoAndPlay (4);
} else {
mum.gotoAndPlay(2);
}
}
if (every_other == 1) {
if (firing == 0) {
if (countdown_to_fire == 0) {
firing = 1;
if (random(2) == 1) {
if (fire_mode == 5) {
fire_mode = 6;
} else {
fire_mode = 5;
}
}
} else {
countdown_to_fire = countdown_to_fire - 1;
}
} else {
volley = volley + 1;
if (_root.enemy_armoury.max_bullets < volley) {
volley = 0;
firing = 0;
countdown_to_fire = fire_wait;
} else {
Set("/:alien_weapon_type", fire_mode);
Set("/:alien_fire", 1);
Set("/:alien_ship_x", this._x);
Set("/:alien_ship_y", this._y);
}
}
every_other = 0;
} else {
every_other = 1;
}
Symbol 362 MovieClip Frame 3
prevFrame();
play();
Symbol 362 MovieClip Frame 4
Set("/:level_counter", 1 + /:level_length);
Symbol 362 MovieClip Frame 77
stop();
Symbol 369 Button
on (release) {
Set("/:answer", 1);
}
Symbol 370 Button
on (release) {
Set("/:answer", 2);
}
Symbol 371 Button
on (release) {
Set("/:answer", 3);
}
Symbol 434 MovieClip Frame 1
gotoAndStop(random(20) + 1);
Set("/:correct", 1);
Symbol 434 MovieClip Frame 2
Set("/:correct", 1);
Symbol 434 MovieClip Frame 3
Set("/:correct", 3);
Symbol 434 MovieClip Frame 4
Set("/:correct", 2);
Symbol 434 MovieClip Frame 5
Set("/:correct", 3);
Symbol 434 MovieClip Frame 6
Set("/:correct", 3);
Symbol 434 MovieClip Frame 7
Set("/:correct", 1);
Symbol 434 MovieClip Frame 8
Set("/:correct", 1);
Symbol 434 MovieClip Frame 9
Set("/:correct", 2);
Symbol 434 MovieClip Frame 10
Set("/:correct", 2);
Symbol 434 MovieClip Frame 11
Set("/:correct", 3);
Symbol 434 MovieClip Frame 12
Set("/:correct", 3);
Symbol 434 MovieClip Frame 13
Set("/:correct", 3);
Symbol 434 MovieClip Frame 14
Set("/:correct", 2);
Symbol 434 MovieClip Frame 15
Set("/:correct", 3);
Symbol 434 MovieClip Frame 16
Set("/:correct", 1);
Symbol 434 MovieClip Frame 17
Set("/:correct", 2);
Symbol 434 MovieClip Frame 18
Set("/:correct", 1);
Symbol 434 MovieClip Frame 19
Set("/:correct", 1);
Symbol 434 MovieClip Frame 20
Set("/:correct", 3);
Symbol 442 Button
on (release) {
gotoAndPlay (670);
}
Symbol 447 Button
on (release) {
gotoAndPlay (650);
}
Symbol 471 Button
on (release) {
gotoAndPlay (671);
}
Symbol 481 Button
on (release) {
Set("/:price", 1000);
Set("/:object", "Space Skipper");
Set("/:objno", 1);
if ((/:cash < /:price) or (/:ship_type == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 486 Button
on (release) {
Set("/:price", 2000);
Set("/:object", "Falcon XT30");
Set("/:objno", 2);
if ((/:cash < /:price) or (/:ship_type == 2)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 491 Button
on (release) {
Set("/:price", 4000);
Set("/:object", "Zeus 290");
Set("/:objno", 3);
if ((/:cash < /:price) or (/:ship_type == 3)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 496 Button
on (release) {
Set("/:price", 6000);
Set("/:object", "The Fabulist");
Set("/:objno", 4);
if ((/:cash < /:price) or (/:ship_type == 4)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 501 Button
on (release) {
Set("/:price", 10000);
Set("/:object", "Centaur");
Set("/:objno", 5);
if ((/:cash < /:price) or (/:ship_type == 5)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 506 Button
on (release) {
Set("/:price", 15000);
Set("/:object", "Xiphoid");
Set("/:objno", 6);
if ((/:cash < /:price) or (/:ship_type == 6)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 510 Button
on (release) {
Set("/:price", 1000);
Set("/:object", "Light Single lazer");
Set("/:objno", 7);
if ((/:cash < /:price) or (/:weapon_got_1 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 514 Button
on (release) {
Set("/:price", 2000);
Set("/:object", "Light Double Lazer");
Set("/:objno", 8);
if ((/:cash < /:price) or (/:weapon_got_2 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 518 Button
on (release) {
Set("/:price", 4000);
Set("/:object", "Light Triple Lazer");
Set("/:objno", 9);
if ((/:cash < /:price) or (/:weapon_got_3 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 523 Button
on (release) {
Set("/:price", 5000);
Set("/:object", "Heavy Single Lazer");
Set("/:objno", 10);
if ((/:cash < /:price) or (/:weapon_got_4 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 528 Button
on (release) {
Set("/:price", 8000);
Set("/:object", "Heavy Double Lazer");
Set("/:objno", 11);
if ((/:cash < /:price) or (/:weapon_got_5 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 532 Button
on (release) {
Set("/:price", 10000);
Set("/:object", "Heavy Triple Lazer");
Set("/:objno", 12);
if ((/:cash < /:price) or (/:weapon_got_6 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 537 Button
on (release) {
Set("/:price", 20000);
Set("/:object", "The Annihiltor");
Set("/:objno", 13);
if ((/:cash < /:price) or (/:weapon_got_7 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 542 Button
on (release) {
Set("/:price", 9000);
Set("/:object", "Shield Ram");
Set("/:objno", 14);
if ((/:cash < /:price) or (/:weapon_got_8 == 1)) {
_root.bad_buy.start();
} else {
gotoAndStop (673);
}
}
Symbol 547 Button
on (release) {
if (/:level == 9) {
gotoAndPlay (330);
} else {
gotoAndPlay (10);
}
}
Symbol 555 Button
on (release) {
Set("/:cash", /:cash - /:price);
if (/:objno == 1) {
Set("/:ship_type", 1);
_root.pickup.start();
} else if (/:objno == 2) {
Set("/:ship_type", 2);
_root.pickup.start();
} else if (/:objno == 3) {
Set("/:ship_type", 3);
_root.pickup.start();
} else if (/:objno == 4) {
Set("/:ship_type", 4);
_root.pickup.start();
} else if (/:objno == 5) {
Set("/:ship_type", 5);
_root.pickup.start();
} else if (/:objno == 6) {
Set("/:ship_type", 6);
_root.pickup.start();
} else if ((/:objno == 7) and (/:weapon_got_1 != 1)) {
Set("/:weapon_got_1", 1);
Set("/:weapon_type", 1);
_root.pickup.start();
} else if ((/:objno == 8) and (/:weapon_got_2 != 1)) {
Set("/:weapon_got_2", 1);
Set("/:weapon_type", 2);
_root.pickup.start();
} else if ((/:objno == 9) and (/:weapon_got_3 != 1)) {
Set("/:weapon_got_3", 1);
Set("/:weapon_type", 3);
_root.pickup.start();
} else if ((/:objno == 10) and (/:weapon_got_4 != 1)) {
Set("/:weapon_got_4", 1);
Set("/:weapon_type", 4);
_root.pickup.start();
} else if ((/:objno == 11) and (/:weapon_got_5 != 1)) {
Set("/:weapon_got_5", 1);
Set("/:weapon_type", 5);
_root.pickup.start();
} else if ((/:objno == 12) and (/:weapon_got_6 != 1)) {
Set("/:weapon_got_6", 1);
Set("/:weapon_type", 6);
_root.pickup.start();
} else if ((/:objno == 13) and (/:weapon_got_7 != 1)) {
Set("/:weapon_got_7", 1);
Set("/:weapon_type", 7);
_root.pickup.start();
} else if ((/:objno == 14) and (/:weapon_got_8 != 1)) {
Set("/:weapon_got_8", 1);
Set("/:weapon_type", 8);
_root.pickup.start();
} else {
Set("/:cash", /:cash + /:price);
_root.bad_buy.start();
}
gotoAndStop (671);
}
Symbol 556 Button
on (release) {
gotoAndStop (671);
}
Symbol 562 Button
on (release) {
gotoAndPlay (791);
}
Symbol 603 Button
on (release) {
play();
}
Symbol 605 Button
on (release) {
gotoAndPlay (3);
}