[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 2 (17 B)
gotoAndPlay (1);
Frame 4 (8 B)
stop();
Instance of Symbol 1008 MovieClip in Frame 7 (37 B)
onClipEvent (load) {
_root.stop();
}
Frame 8 (8 B)
stop();
Frame 13 (10.92 KiB) ● ●
EN = new Array();
EN = ["", ["Club man", 15, 40], ["Slingshot man", 25, 40], ["Dino rider", 100, 100], ["Sword man", 50, 70], ["Archer", 75, 50], ["Knight", 500, 100], ["Dueler", 200, 100], ["Mousquettere", 400, 100], ["Canoneer", 1000, 200], ["Melee Infantry", 1500, 100], ["Infantry", 2000, 100], ["Tank", 7000, 300], ["God's Blade", 5000, 100], ["Blaster", 6000, 100], ["War machine", 20000, 300], ["Super Soldier", 150000, 100]];
TU = new Array();
TU = ["", ["Rock slingshot", 100, 20], ["Egg automatic", 200, 30], ["Primitive Catapult", 500, 40], ["Catapult", 500, 20], ["Fire Catapult", 750, 30], ["Oil", 1000, 40], ["Small Cannon", 1500, 20], ["Large Cannon", 3000, 30], ["Explosives Cannon", 6000, 40], ["Single Turret", 7000, 20], ["Rocket Turret", 9000, 30], ["Double Turret", 14000, 40], ["Titanium Shooter", 24000, 20], ["LazerCannon", 40000, 30], ["IonRay", 100000, 40]];
TS = new Array();
TS = ["", [30, 1, 12, 350], [11, 2, 5, 300], [70, 3, 25, 400], [70, 3, 40, 400], [70, 4, 50, 400], [100, 5, 4, 300], [70, 6, 30, 500], [70, 6, 70, 500], [70, 7, 100, 500], [40, 8, 70, 500], [50, 9, 100, 500], [22, 8, 70, 500], [40, 12, 100, 400], [10, 10, 40, 500], [10, 11, 60, 800]];
ES = ["", [55, 16, 0, 20, 0], [42, 10, 8, 20, 100], [160, 40, 0, 45, 0], [100, 35, 0, 20, 0], [80, 20, 9, 20, 130], [300, 60, 0, 60, 0], [200, 79, 0, 25, 0], [160, 40, 20, 25, 130], [600, 120, 0, 25, 0], [350, 100, 0, 25, 0], [300, 60, 30, 25, 130], [1200, 300, 0, 100, 0], [1000, 250, 0, 40, 0], [800, 130, 80, 40, 130], [3000, 600, 0, 100, 0], [4000, 400, 400, 40, 150]];
EV = [4000, 14000, 45000, 200000];
stop();
function create_game() {
_root.createEmptyMovieClip("game", 1);
_root.game.attachMovie("base_player", "base_player", 10);
_root.game.attachMovie("base_comp", "base_comp", 11);
_root.game.createEmptyMovieClip("bullets", 12);
_root.game.base_comp._x = 1000;
_root.game.base_comp._y = 425;
_root.game.base_player._y = 425;
_root.game.attachMovie("bg", "bg", 1);
_root.game.createEmptyMovieClip("ennemies", 100);
_root.attachMovie("menu", "menu", 3000);
_root.attachMovie("pause", "pause", 4000);
_root.attachMovie("cursor", "cursor", 5000);
_root.pause._visible = false;
_root.ennemies = new Array();
_root.ennemies = [["base1", 0, 1], ["base2", 0, 2]];
_root.game.ennemies.attachMovie("base1", "ennemybase1", 10000000);
_root.game.ennemies.attachMovie("base2", "ennemybase2", 10000001);
_root.game.ennemies.ennemybase1.health = 500;
_root.game.ennemies.ennemybase1.max_health = 500;
_root.game.ennemies.ennemybase2.health = 500;
_root.game.ennemies.ennemybase2.max_health = 500;
_root.game.createEmptyMovieClip("particules", 200);
b = 1;
base1x = 150;
base1y = 425;
base2x = 860;
base2y = 425;
cash = 175;
e_cash = 100;
tech_level = 1;
etech_level = 1;
bi = 0;
xp = 0;
exp = 0;
pi = 0;
addons = 0;
spot1_turret = 0;
spot2_turret = 0;
spot3_turret = 0;
spot4_turret = 0;
spot_turretx = 52;
spot1_turrety = -80;
spot2_turrety = -125;
spot3_turrety = -172;
spot4_turrety = -220;
eaddons = 0;
espot1_turret = 0;
espot2_turret = 0;
espot3_turret = 0;
espot4_turret = 0;
espot_turretx = -52;
espot1_turrety = -80;
espot2_turrety = -125;
espot3_turrety = -172;
espot4_turrety = -220;
PAUSED = false;
H1 = 100;
H2 = 100;
}
function end_game(win) {
removeMovieClip(_root.game);
removeMovieClip(_root.menu);
removeMovieClip(_root.pause);
removeMovieClip(_root.cursor);
Mouse.show();
if (win == true) {
_root.gotoAndStop("win");
} else {
_root.gotoAndStop("gameover");
}
}
function create_ennemy(id, side) {
Te = _root.game.ennemies.attachMovie("ennemy", "ennemy" + b, b);
Te.side = side;
Te.id = id;
Te.uid = b;
if (side == 1) {
Te._x = _root.base1x;
Te._y = _root.base1y;
} else if (side == 2) {
Te._x = _root.base2x;
Te._y = _root.base2y;
}
_root.ennemies.push([b, id, side]);
b++;
}
function show_build_buttons() {
if (addons == 0) {
_root.game.base_player.b1._visible = true;
} else if (addons == 1) {
_root.game.base_player.b1._visible = true;
_root.game.base_player.b2._visible = true;
} else if (addons == 2) {
_root.game.base_player.b1._visible = true;
_root.game.base_player.b2._visible = true;
_root.game.base_player.b3._visible = true;
} else if (addons == 3) {
_root.game.base_player.b1._visible = true;
_root.game.base_player.b2._visible = true;
_root.game.base_player.b3._visible = true;
_root.game.base_player.b4._visible = true;
}
if (spot1_turret != 0) {
_root.game.base_player.b1._visible = false;
}
if (spot2_turret != 0) {
_root.game.base_player.b2._visible = false;
}
if (spot3_turret != 0) {
_root.game.base_player.b3._visible = false;
}
if (spot4_turret != 0) {
_root.game.base_player.b4._visible = false;
}
}
function show_sell_turrets() {
if (spot1_turret != 0) {
_root.game.base_player.s1._visible = true;
}
if (spot2_turret != 0) {
_root.game.base_player.s2._visible = true;
}
if (spot3_turret != 0) {
_root.game.base_player.s3._visible = true;
}
if (spot4_turret != 0) {
_root.game.base_player.s4._visible = true;
}
}
function hide_build_buttons() {
_root.game.base_player.b1._visible = false;
_root.game.base_player.b2._visible = false;
_root.game.base_player.b3._visible = false;
_root.game.base_player.b4._visible = false;
}
function hide_sell_buttons() {
_root.game.base_player.s1._visible = false;
_root.game.base_player.s2._visible = false;
_root.game.base_player.s3._visible = false;
_root.game.base_player.s4._visible = false;
}
function sell_turret(spot, price) {
if (spot == 1) {
_root.game.base_player.turret1.removeMovieClip();
_root.spot1_turret = 0;
_root.cash = _root.cash + price;
_root.menu.stc._visible = false;
_root.menu.m1._visible = true;
_root.menu._root.hide_sell_buttons();
_root.cursor.mod = 1;
_root.menu.mt.text = "Menu";
_root.menu.desc.text = "";
}
if (spot == 2) {
_root.game.base_player.turret2.removeMovieClip();
_root.spot2_turret = 0;
_root.cash = _root.cash + price;
_root.menu.stc._visible = false;
_root.menu.m1._visible = true;
_root.menu._root.hide_sell_buttons();
_root.cursor.mod = 1;
_root.menu.mt.text = "Menu";
_root.menu.desc.text = "";
}
if (spot == 3) {
_root.game.base_player.turret3.removeMovieClip();
_root.spot3_turret = 0;
_root.cash = _root.cash + price;
_root.menu.stc._visible = false;
_root.menu.m1._visible = true;
_root.menu._root.hide_sell_buttons();
_root.cursor.mod = 1;
_root.menu.mt.text = "Menu";
_root.menu.desc.text = "";
}
if (spot == 4) {
_root.game.base_player.turret4.removeMovieClip();
_root.spot4_turret = 0;
_root.cash = _root.cash + price;
_root.menu.stc._visible = false;
_root.menu.m1._visible = true;
_root.menu._root.hide_sell_buttons();
_root.cursor.mod = 1;
_root.menu.mt.text = "Menu";
_root.menu.desc.text = "";
}
}
function esell_turret(spot) {
if (spot == 1) {
_root.game.base_comp.turret1.removeMovieClip();
_root.espot1_turret = 0;
}
if (spot == 2) {
_root.game.base_comp.turret2.removeMovieClip();
_root.espot2_turret = 0;
}
if (spot == 3) {
_root.game.base_comp.turret3.removeMovieClip();
_root.espot3_turret = 0;
}
if (spot == 4) {
_root.game.base_comp.turret4.removeMovieClip();
_root.espot4_turret = 0;
}
}
function create_turret(spot, id, side) {
if (side == 1) {
if ((spot == 1) and (spot1_turret == 0)) {
_root.cash = _root.cash - _root.TU[id][1];
_root.hide_build_buttons();
_root.cursor.mod = 1;
Tt = _root.game.base_player.attachMovie("turret", "turret1", 20);
Tt._x = spot_turretx;
Tt._y = spot1_turrety;
Tt.id = id;
Tt.side = side;
spot1_turret = id;
_root.menu.m1._visible = true;
_root.menu.m2._visible = true;
_root.menu.btc._visible = false;
_root.menu.desc.text = "";
_root.menu.mt.text = "Menu";
}
if ((spot == 2) and (spot2_turret == 0)) {
_root.cash = _root.cash - _root.TU[id][1];
_root.hide_build_buttons();
_root.cursor.mod = 1;
Tt = _root.game.base_player.attachMovie("turret", "turret2", 21);
Tt._x = spot_turretx;
Tt._y = spot2_turrety;
Tt.id = id;
Tt.side = side;
spot2_turret = id;
_root.menu.m1._visible = true;
_root.menu.m2._visible = true;
_root.menu.btc._visible = false;
_root.menu.desc.text = "";
_root.menu.mt.text = "Menu";
}
if ((spot == 3) and (spot3_turret == 0)) {
_root.cash = _root.cash - _root.TU[id][1];
_root.hide_build_buttons();
_root.cursor.mod = 1;
Tt = _root.game.base_player.attachMovie("turret", "turret3", 22);
Tt._x = spot_turretx;
Tt._y = spot3_turrety;
Tt.id = id;
Tt.side = side;
spot3_turret = id;
_root.menu.m1._visible = true;
_root.menu.m2._visible = true;
_root.menu.btc._visible = false;
_root.menu.desc.text = "";
_root.menu.mt.text = "Menu";
}
if ((spot == 4) and (spot4_turret == 0)) {
_root.cash = _root.cash - _root.TU[id][1];
_root.hide_build_buttons();
_root.cursor.mod = 1;
Tt = _root.game.base_player.attachMovie("turret", "turret4", 23);
Tt._x = spot_turretx;
Tt._y = spot4_turrety;
Tt.id = id;
Tt.side = side;
spot4_turret = id;
_root.menu.m1._visible = true;
_root.menu.m2._visible = true;
_root.menu.btc._visible = false;
_root.menu.desc.text = "";
_root.menu.mt.text = "Menu";
}
} else if (side == 2) {
if ((spot == 1) and (espot1_turret == 0)) {
_root.ecash = _root.ecash - _root.TU[id][1];
Tt = _root.game.base_comp.attachMovie("turret", "turret1", 20);
Tt._x = espot_turretx;
Tt._y = espot1_turrety;
Tt.id = id;
Tt.side = side;
espot1_turret = id;
}
if ((spot == 2) and (espot2_turret == 0)) {
_root.ecash = _root.ecash - _root.TU[id][1];
Tt = _root.game.base_comp.attachMovie("turret", "turret2", 21);
Tt._x = espot_turretx;
Tt._y = espot2_turrety;
Tt.id = id;
Tt.side = side;
espot2_turret = id;
}
if ((spot == 3) and (espot3_turret == 0)) {
_root.ecash = _root.ecash - _root.TU[id][1];
Tt = _root.game.base_comp.attachMovie("turret", "turret3", 22);
Tt._x = espot_turretx;
Tt._y = espot3_turrety;
Tt.id = id;
Tt.side = side;
espot3_turret = id;
}
if ((spot == 4) and (espot3_turret == 0)) {
_root.ecash = _root.ecash - _root.TU[id][1];
Tt = _root.game.base_comp.attachMovie("turret", "turret4", 23);
Tt._x = espot_turretx;
Tt._y = espot4_turrety;
Tt.id = id;
Tt.side = side;
espot4_turret = id;
}
}
}
function create_bullet(x, y, rot, damage, id, side) {
Tb = _root.game.bullets.attachMovie("bullet" + id, "bullet" + bi, bi);
Tb._x = x;
Tb._y = y;
Tb._rotation = rot;
Tb.damage = damage;
Tb.side = side;
bi++;
}
function create_particule(x, y, id, params) {
Tp = _root.game.particules.attachMovie("part" + id, "part" + pi, pi);
Tp._x = x;
Tp._y = y;
Tp.params = params;
pi++;
}
create_game();
Symbol 8 MovieClip Frame 1 (8 B)
stop();
Symbol 33 MovieClip [base_comp] Frame 1 (4.25 KiB) ●
timer = 0;
u_timer = -1;
turn_time = 0;
uf = 0.3;
step_time = 40;
timer = 0;
check_action = false;
uof = 0;
tech_timer = 0;
unit_level = 1;
turret_level = 0;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
hr = (_root.game.ennemies.ennemybase2.health / _root.game.ennemies.ennemybase2.max_health) * 100;
h = Math.round(_root.game.ennemies.ennemybase2.health);
if (h < 0) {
_root.end_game(true);
}
hb._yscale = hr;
bu.gotoAndStop(_root.etech_level);
tech_timer++;
if (unit_level == 1) {
if (tech_timer == 1500) {
unit_level++;
}
} else if (unit_level == 2) {
if (tech_timer == 5000) {
unit_level++;
}
}
if (tech_timer == 8000) {
if (_root.etech_level != 5) {
_root.etech_level++;
_root.game.ennemies.ennemybase2.health = _root.game.ennemies.ennemybase2.health + (300 * _root.etech_level);
_root.game.ennemies.ennemybase2.max_health = _root.game.ennemies.ennemybase2.max_health + (300 * _root.etech_level);
unit_level = 1;
tech_timer = 0;
}
}
if (_root.etech_level == 1) {
if (tech_timer == 1000) {
_root.create_turret(1, 1, 2);
turret_level++;
} else if (tech_timer == 4000) {
_root.esell_turret(1);
_root.create_turret(1, 2, 2);
turret_level++;
} else if (tech_timer == 6000) {
_root.esell_turret(1);
_root.create_turret(1, 3, 2);
}
}
if (_root.etech_level == 2) {
if (tech_timer == 1000) {
_root.esell_turret(1);
_root.create_turret(1, 4, 2);
turret_level++;
} else if (tech_timer == 4000) {
_root.eaddons = 1;
_root.esell_turret(1);
_root.create_turret(1, 6, 2);
turret_level++;
} else if (tech_timer == 6000) {
_root.create_turret(2, 5, 2);
}
}
if (_root.etech_level == 3) {
if (tech_timer == 1000) {
_root.esell_turret(1);
_root.create_turret(1, 7, 2);
turret_level++;
} else if (tech_timer == 4000) {
_root.eaddons = 2;
_root.esell_turret(2);
_root.create_turret(2, 7, 2);
turret_level++;
} else if (tech_timer == 6000) {
_root.esell_turret(2);
_root.esell_turret(1);
_root.create_turret(3, 9, 2);
}
}
if (_root.etech_level == 4) {
if (tech_timer == 5000) {
_root.create_turret(1, 10, 2);
turret_level++;
} else if (tech_timer == 7000) {
_root.eaddons = 2;
_root.esell_turret(3);
_root.esell_turret(1);
_root.create_turret(2, 11, 2);
turret_level++;
}
}
if (_root.etech_level == 5) {
if (tech_timer == 5000) {
_root.create_turret(1, 13, 2);
turret_level++;
} else if (tech_timer == 12000) {
_root.esell_turret(2);
_root.esell_turret(1);
_root.esell_turret(3);
_root.create_turret(2, 14, 2);
turret_level++;
} else if (tech_timer == 20000) {
_root.eaddons = 3;
_root.esell_turret(2);
_root.esell_turret(1);
_root.esell_turret(3);
_root.create_turret(4, 15, 2);
turret_level++;
}
}
timer++;
if (step_time == timer) {
f = Math.random();
if (f < uf) {
action = 1;
} else {
action = 3;
}
timer = 0;
check_action = true;
}
if (check_action == true) {
if (action == 1) {
if (u_timer < -5) {
if (uof < 6) {
unit_type = random(unit_level) + 1;
unit_type = unit_type + ((_root.etech_level - 1) * 3);
will_create_unit = unit_type;
u_timer = _root.EN[unit_type][2];
u_timer_total = _root.EN[unit_type][2];
uof++;
check_action = false;
}
}
}
}
if (u_timer == 0) {
_root.create_ennemy(will_create_unit, 2);
}
u_timer--;
make_unit = Math.random();
bar._yscale = (u_timer / u_timer_total) * 100;
if (_root.eaddons == 0) {
e1._visible = false;
e2._visible = false;
e3._visible = false;
} else if (_root.eaddons == 1) {
e1._visible = true;
e2._visible = false;
e3._visible = false;
} else if (_root.eaddons == 2) {
e1._visible = true;
e2._visible = true;
e3._visible = false;
} else if (_root.eaddons == 3) {
e1._visible = true;
e2._visible = true;
e3._visible = true;
}
e1.gotoAndStop(_root.etech_level);
e2.gotoAndStop(_root.etech_level);
e3.gotoAndStop(_root.etech_level);
}
};
Symbol 38 Button (63 B)
on (press) {
_root.create_turret(1, _root.cursor.turret, 1);
}
Symbol 39 Button (63 B)
on (press) {
_root.create_turret(2, _root.cursor.turret, 1);
}
Symbol 40 Button (63 B)
on (press) {
_root.create_turret(3, _root.cursor.turret, 1);
}
Symbol 41 Button (63 B)
on (press) {
_root.create_turret(4, _root.cursor.turret, 1);
}
Symbol 42 Button (288 B)
on (press) {
_root.sell_turret(1, Math.round(_root.TU[_root.spot1_turret][1] / 2));
}
on (rollOver) {
_root.menu.desc.text = ((("Sell " + _root.TU[_root.spot1_turret][0]) + " for ") + Math.round(_root.TU[_root.spot1_turret][1] / 2)) + "$";
}
on (rollOut) {
_root.menu.desc.text = "";
}
Symbol 43 Button (288 B)
on (press) {
_root.sell_turret(2, Math.round(_root.TU[_root.spot2_turret][1] / 2));
}
on (rollOver) {
_root.menu.desc.text = ((("Sell " + _root.TU[_root.spot2_turret][0]) + " for ") + Math.round(_root.TU[_root.spot2_turret][1] / 2)) + "$";
}
on (rollOut) {
_root.menu.desc.text = "";
}
Symbol 44 Button (288 B)
on (press) {
_root.sell_turret(3, Math.round(_root.TU[_root.spot3_turret][1] / 2));
}
on (rollOver) {
_root.menu.desc.text = ((("Sell " + _root.TU[_root.spot3_turret][0]) + " for ") + Math.round(_root.TU[_root.spot3_turret][1] / 2)) + "$";
}
on (rollOut) {
_root.menu.desc.text = "";
}
Symbol 45 Button (288 B)
on (press) {
_root.sell_turret(4, Math.round(_root.TU[_root.spot4_turret][1] / 2));
}
on (rollOver) {
_root.menu.desc.text = ((("Sell " + _root.TU[_root.spot4_turret][0]) + " for ") + Math.round(_root.TU[_root.spot4_turret][1] / 2)) + "$";
}
on (rollOut) {
_root.menu.desc.text = "";
}
Symbol 46 MovieClip [base_player] Frame 1 (1.09 KiB) ●
e1._visible = false;
e2._visible = false;
e3._visible = false;
b2._visible = false;
b3._visible = false;
b4._visible = false;
b1._visible = false;
s2._visible = false;
s3._visible = false;
s4._visible = false;
s1._visible = false;
this.onEnterFrame = function () {
hr = (_root.game.ennemies.ennemybase1.health / _root.game.ennemies.ennemybase1.max_health) * 100;
h = Math.round(_root.game.ennemies.ennemybase1.health);
if (h < 0) {
_root.end_game(false);
}
hb._yscale = hr;
if (!_root.PAUSED) {
base.gotoAndStop(_root.tech_level);
e1.gotoAndStop(_root.tech_level);
e2.gotoAndStop(_root.tech_level);
e3.gotoAndStop(_root.tech_level);
if (_root.addons == 0) {
e1._visible = false;
e2._visible = false;
e3._visible = false;
} else if (_root.addons == 1) {
e1._visible = true;
e2._visible = false;
e3._visible = false;
} else if (_root.addons == 2) {
e1._visible = true;
e2._visible = true;
e3._visible = false;
} else if (_root.addons == 3) {
e1._visible = true;
e2._visible = true;
e3._visible = true;
}
}
};
Symbol 58 Button (109 B)
on (press) {
if (timer == 2000) {
_root.game.attachMovie("special1", "special1", 99999);
timer = 0;
}
}
Symbol 71 Button (109 B)
on (press) {
if (timer == 2000) {
_root.game.attachMovie("special2", "special2", 99999);
timer = 0;
}
}
Symbol 73 Button (109 B)
on (press) {
if (timer == 2000) {
_root.game.attachMovie("special3", "special3", 99999);
timer = 0;
}
}
Symbol 75 Button (109 B)
on (press) {
if (timer == 2000) {
_root.game.attachMovie("special4", "special4", 99999);
timer = 0;
}
}
Symbol 77 Button (109 B)
on (press) {
if (timer == 2000) {
_root.game.attachMovie("special5", "special5", 99999);
timer = 0;
}
}
Symbol 78 MovieClip Frame 1 (153 B)
timer = 1999;
this.onEnterFrame = function () {
frame = Math.round(timer / 2);
spt.gotoAndStop(frame);
if (timer < 2000) {
timer++;
}
};
Symbol 83 Button (356 B)
on (press) {
_parent.m1._visible = true;
_parent.m2._visible = true;
_parent.bf1._visible = false;
_parent.bf2._visible = false;
_parent.bf3._visible = false;
_parent.bfr._visible = false;
_parent.mt.text = "Menu";
_parent.desc.text = "";
}
on (rollOver) {
_parent.desc.text = "Return to previous menu";
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 89 Button (124 B)
on (press) {
_parent.add_to_tray(1);
}
on (rollOver) {
_parent.unit_info(1);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 92 Button (124 B)
on (press) {
_parent.add_to_tray(2);
}
on (rollOver) {
_parent.unit_info(2);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 101 Button (124 B)
on (press) {
_parent.add_to_tray(3);
}
on (rollOver) {
_parent.unit_info(3);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 103 Button (124 B)
on (press) {
_parent.add_to_tray(4);
}
on (rollOver) {
_parent.unit_info(4);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 105 Button (124 B)
on (press) {
_parent.add_to_tray(5);
}
on (rollOver) {
_parent.unit_info(5);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 107 Button (124 B)
on (press) {
_parent.add_to_tray(6);
}
on (rollOver) {
_parent.unit_info(6);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 109 Button (124 B)
on (press) {
_parent.add_to_tray(7);
}
on (rollOver) {
_parent.unit_info(7);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 111 Button (124 B)
on (press) {
_parent.add_to_tray(8);
}
on (rollOver) {
_parent.unit_info(8);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 113 Button (124 B)
on (press) {
_parent.add_to_tray(9);
}
on (rollOver) {
_parent.unit_info(9);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 115 Button (126 B)
on (press) {
_parent.add_to_tray(10);
}
on (rollOver) {
_parent.unit_info(10);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 117 Button (126 B)
on (press) {
_parent.add_to_tray(11);
}
on (rollOver) {
_parent.unit_info(11);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 119 Button (126 B)
on (press) {
_parent.add_to_tray(12);
}
on (rollOver) {
_parent.unit_info(12);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 122 Button (126 B)
on (press) {
_parent.add_to_tray(13);
}
on (rollOver) {
_parent.unit_info(13);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 138 Button (126 B)
on (press) {
_parent.add_to_tray(14);
}
on (rollOver) {
_parent.unit_info(14);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 140 Button (126 B)
on (press) {
_parent.add_to_tray(15);
}
on (rollOver) {
_parent.unit_info(15);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 141 Button (126 B)
on (press) {
_parent.add_to_tray(16);
}
on (rollOver) {
_parent.unit_info(16);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 143 Button (356 B)
on (press) {
_parent.m1._visible = true;
_parent.m2._visible = true;
_parent.bt1._visible = false;
_parent.bt2._visible = false;
_parent.bt3._visible = false;
_parent.btr._visible = false;
_parent.mt.text = "Menu";
_parent.desc.text = "";
}
on (rollOver) {
_parent.desc.text = "Return to previous menu";
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 145 Button (127 B)
on (press) {
_parent.build_turret(1);
}
on (rollOver) {
_parent.turret_info(1);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 147 Button (127 B)
on (press) {
_parent.build_turret(2);
}
on (rollOver) {
_parent.turret_info(2);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 149 Button (127 B)
on (press) {
_parent.build_turret(3);
}
on (rollOver) {
_parent.turret_info(3);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 151 Button (127 B)
on (press) {
_parent.build_turret(4);
}
on (rollOver) {
_parent.turret_info(4);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 153 Button (127 B)
on (press) {
_parent.build_turret(5);
}
on (rollOver) {
_parent.turret_info(5);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 155 Button (127 B)
on (press) {
_parent.build_turret(6);
}
on (rollOver) {
_parent.turret_info(6);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 157 Button (127 B)
on (press) {
_parent.build_turret(7);
}
on (rollOver) {
_parent.turret_info(7);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 159 Button (127 B)
on (press) {
_parent.build_turret(8);
}
on (rollOver) {
_parent.turret_info(8);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 161 Button (127 B)
on (press) {
_parent.build_turret(9);
}
on (rollOver) {
_parent.turret_info(9);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 163 Button (129 B)
on (press) {
_parent.build_turret(10);
}
on (rollOver) {
_parent.turret_info(10);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 165 Button (129 B)
on (press) {
_parent.build_turret(11);
}
on (rollOver) {
_parent.turret_info(11);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 167 Button (129 B)
on (press) {
_parent.build_turret(12);
}
on (rollOver) {
_parent.turret_info(12);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 169 Button (129 B)
on (press) {
_parent.build_turret(13);
}
on (rollOver) {
_parent.turret_info(13);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 171 Button (129 B)
on (press) {
_parent.build_turret(14);
}
on (rollOver) {
_parent.turret_info(14);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 176 Button (129 B)
on (press) {
_parent.build_turret(15);
}
on (rollOver) {
_parent.turret_info(15);
}
on (rollOut) {
_parent.unit_info_hide();
}
Symbol 179 Button (355 B)
on (press) {
_parent.bf1._visible = true;
_parent.bf2._visible = true;
_parent.bf3._visible = true;
_parent.bfr._visible = true;
_parent.m1._visible = false;
_parent.m2._visible = false;
_parent.mt.text = "Menu - Units";
_parent.desc.text = "";
}
on (rollOver) {
_parent.desc.text = "Train units menu";
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 181 Button (359 B)
on (press) {
_parent.bt1._visible = true;
_parent.bt2._visible = true;
_parent.bt3._visible = true;
_parent.btr._visible = true;
_parent.m1._visible = false;
_parent.m2._visible = false;
_parent.mt.text = "Menu - Turrets";
_parent.desc.text = "";
}
on (rollOver) {
_parent.desc.text = "Build turrets menu";
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 184 Button (314 B)
on (press) {
_parent.stc._visible = true;
_parent.m1._visible = false;
_parent.m2._visible = false;
_parent.mt.text = "Sell a turret";
_parent.desc.text = "";
_root.cursor.mod = 3;
_root.show_sell_turrets();
}
on (rollOver) {
_parent.desc.text = "Sell a turret";
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 186 Button (728 B)
on (press) {
if (_root.addons == 0) {
if (_root.cash >= 1000) {
_root.cash = _root.cash - 1000;
_root.addons++;
}
} else if (_root.addons == 1) {
if (_root.cash >= 3000) {
_root.cash = _root.cash - 3000;
_root.addons++;
}
} else if (_root.addons == 2) {
if (_root.cash >= 7500) {
_root.cash = _root.cash - 7500;
_root.addons++;
}
}
}
on (rollOver, release) {
if (_root.addons == 0) {
price = 1000;
} else if (_root.addons == 1) {
price = 3000;
} else if (_root.addons == 2) {
price = 7500;
}
if (_root.addons != 3) {
_parent.desc.text = price + "$ - Add a turret spot";
} else {
_parent.desc.text = "Can't build any more";
}
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 188 Button (638 B)
on (press) {
if (_root.tech_level < 5) {
needed = _root.EV[_root.tech_level - 1];
if (_root.xp >= needed) {
_root.tech_level++;
_root.game.ennemies.ennemybase1.max_health = _root.game.ennemies.ennemybase1.max_health + (300 * _root.tech_level);
_root.game.ennemies.ennemybase1.health = _root.game.ennemies.ennemybase1.health + (300 * _root.tech_level);
}
}
}
on (rollOver) {
if (_root.tech_level < 5) {
needed = _root.EV[_root.tech_level - 1];
_parent.desc.text = needed + " Xp - Evolve to next age";
} else {
_parent.desc.text = "You cannot evolve anymore";
}
}
on (rollOut) {
_parent.desc.text = "";
}
Symbol 195 Button (131 B)
on (press) {
_root.cursor.mod = 1;
m1._visible = true;
m2._visible = true;
btc._visible = false;
_root.hide_build_buttons();
}
Symbol 196 Button (149 B)
on (press) {
_root.cursor.mod = 1;
m1._visible = true;
m2._visible = true;
stc._visible = false;
mt.text = "Menu";
_root.hide_sell_buttons();
}
Symbol 211 MovieClip Frame 1 (8 B)
stop();
Symbol 212 MovieClip [menu] Frame 1 (2.54 KiB) ●
function add_to_tray(id) {
if (_root.cash >= _root.EN[id][1]) {
_root.cash = _root.cash - _root.EN[id][1];
if (tray[0] == 0) {
tray[0] = id;
create_ennemy(id);
} else if (tray[1] == 0) {
tray[1] = id;
} else if (tray[2] == 0) {
tray[2] = id;
} else if (tray[3] == 0) {
tray[3] = id;
} else if (tray[4] == 0) {
tray[4] = id;
} else {
_root.cash = _root.cash + _root.EN[id][1];
}
trace_tray();
}
}
function create_ennemy(id) {
if (c_id == 0) {
timer = _root.EN[id][2];
c_id = id;
c_timer = timer;
bdesc.text = ("Training " + _root.EN[id][0]) + "...";
}
}
function build_turret(id) {
if (_root.cash >= _root.TU[id][1]) {
cursor_turret(id);
}
}
function cursor_turret(id) {
_root.cursor.mod = 2;
_root.cursor.turret = id;
bt1._visible = false;
bt2._visible = false;
bt3._visible = false;
btr._visible = false;
btc._visible = true;
_root.show_build_buttons();
}
function trace_tray() {
t1.gotoAndStop(tray[0] + 1);
t2.gotoAndStop(tray[1] + 1);
t3.gotoAndStop(tray[2] + 1);
t4.gotoAndStop(tray[3] + 1);
t5.gotoAndStop(tray[4] + 1);
}
function unit_info(id) {
desc.text = (_root.EN[id][1] + "$ - ") + _root.EN[id][0];
}
function turret_info(id) {
desc.text = (_root.TU[id][1] + "$ - ") + _root.TU[id][0];
}
function unit_info_hide() {
desc.text = "";
}
c_id = 0;
prog._xscale = 0;
tray = Array(0, 0, 0, 0, 0);
bf1._visible = false;
bf2._visible = false;
bf3._visible = false;
bfr._visible = false;
bt1._visible = false;
bt2._visible = false;
bt3._visible = false;
btr._visible = false;
btc._visible = false;
stc._visible = false;
this.onEnterFrame = function () {
desc_text = desc.text;
menu_text = mt.text;
if (_ymouse > 120) {
if (_root.game._x > -350) {
if (_xmouse > 550) {
_root.game._x = _root.game._x - ((_xmouse - 550) / 10);
}
}
if (_root.game._x < -350) {
_root.game._x = -350;
}
if (_root.game._x < 0) {
if (_xmouse < 100) {
_root.game._x = _root.game._x + ((100 - _xmouse) / 10);
}
}
if (_root.game._x > 0) {
_root.game._x = 0;
}
}
if (timer > 0) {
timer--;
prog._xscale = 100 - ((timer / c_timer) * 100);
}
if (timer == 0) {
_root.create_ennemy(c_id, 1);
c_id = 0;
c_timer = 0;
timer = -1;
prog._xscale = 0;
bdesc.text = "";
tray[0] = 0 + tray[1];
tray[1] = 0 + tray[2];
tray[2] = 0 + tray[3];
tray[3] = 0 + tray[4];
tray[4] = 0;
if (tray[0] != 0) {
create_ennemy(tray[0]);
}
trace_tray();
}
};
Instance of Symbol 78 MovieClip in Symbol 212 MovieClip [menu] Frame 1 (65 B)
onClipEvent (enterFrame) {
this.gotoAndStop(_root.tech_level);
}
Instance of Symbol 142 MovieClip "bf1" in Symbol 212 MovieClip [menu] Frame 1 (125 B)
onClipEvent (load) {
this.gotoAndStop(_root.tech_level);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.tech_level);
}
Instance of Symbol 177 MovieClip "bt1" in Symbol 212 MovieClip [menu] Frame 1 (125 B)
onClipEvent (load) {
this.gotoAndStop(_root.tech_level);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.tech_level);
}
Symbol 231 MovieClip Frame 43 (17 B)
gotoAndPlay (1);
Symbol 237 MovieClip Frame 20 (31 B)
_parent._parent._parent.hit();
Symbol 244 MovieClip Frame 1 (34 B)
gotoAndStop((random(5) + 1) + 1);
Symbol 245 MovieClip Frame 24 (8 B)
stop();
Symbol 260 MovieClip Frame 43 (17 B)
gotoAndPlay (1);
Symbol 263 MovieClip Frame 20 (31 B)
_parent._parent._parent.hit();
Symbol 264 MovieClip Frame 24 (8 B)
stop();
Symbol 278 MovieClip Frame 26 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 278 MovieClip Frame 32 (17 B)
gotoAndPlay (1);
Symbol 280 MovieClip Frame 30 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 280 MovieClip Frame 43 (17 B)
gotoAndPlay (1);
Symbol 311 MovieClip Frame 40 (17 B)
gotoAndPlay (1);
Symbol 315 MovieClip Frame 21 (31 B)
_parent._parent._parent.hit();
Symbol 317 MovieClip Frame 50 (8 B)
stop();
Symbol 325 MovieClip Frame 1 (8 B)
stop();
Symbol 348 MovieClip Frame 1 (58 B)
anim = random(2) + 1;
this.gotoAndPlay("attack" + anim);
Symbol 348 MovieClip Frame 33 (31 B)
_parent._parent._parent.hit();
Symbol 348 MovieClip Frame 48 (21 B)
this.gotoAndPlay(1);
Symbol 348 MovieClip Frame 76 (31 B)
_parent._parent._parent.hit();
Symbol 348 MovieClip Frame 99 (21 B)
this.gotoAndPlay(1);
Symbol 349 MovieClip Frame 44 (8 B)
stop();
Symbol 380 MovieClip Frame 1 (58 B)
anim = random(2) + 1;
this.gotoAndPlay("attack" + anim);
Symbol 380 MovieClip Frame 38 (31 B)
_parent._parent._parent.hit();
Symbol 380 MovieClip Frame 48 (21 B)
this.gotoAndPlay(1);
Symbol 380 MovieClip Frame 49 (17 B)
gotoAndPlay (1);
Symbol 380 MovieClip Frame 79 (31 B)
_parent._parent._parent.hit();
Symbol 380 MovieClip Frame 99 (21 B)
this.gotoAndPlay(1);
Symbol 381 MovieClip Frame 44 (8 B)
stop();
Symbol 393 MovieClip Frame 15 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 404 MovieClip Frame 16 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 450 MovieClip Frame 23 (31 B)
_parent._parent._parent.hit();
Symbol 452 MovieClip Frame 22 (8 B)
stop();
Symbol 471 MovieClip Frame 1 (58 B)
anim = random(2) + 1;
this.gotoAndPlay("attack" + anim);
Symbol 471 MovieClip Frame 19 (31 B)
_parent._parent._parent.hit();
Symbol 471 MovieClip Frame 37 (21 B)
this.gotoAndPlay(1);
Symbol 471 MovieClip Frame 62 (31 B)
_parent._parent._parent.hit();
Symbol 471 MovieClip Frame 84 (21 B)
this.gotoAndPlay(1);
Symbol 472 MovieClip Frame 27 (8 B)
stop();
Symbol 482 MovieClip Frame 13 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 483 MovieClip Frame 70 (8 B)
stop();
Symbol 484 MovieClip Frame 1 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 497 MovieClip Frame 27 (31 B)
_parent._parent._parent.hit();
Symbol 498 MovieClip Frame 65 (8 B)
stop();
Symbol 516 MovieClip Frame 14 (31 B)
_parent._parent._parent.hit();
Symbol 517 MovieClip Frame 26 (8 B)
stop();
Symbol 532 MovieClip Frame 7 (31 B)
_parent._parent._parent.hit();
Symbol 533 MovieClip Frame 26 (8 B)
stop();
Symbol 542 MovieClip Frame 7 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 551 MovieClip Frame 3 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 569 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 573 MovieClip Frame 30 (31 B)
_parent._parent._parent.hit();
Symbol 589 MovieClip Frame 1 (25 B)
gotoAndPlay(random(25));
Symbol 589 MovieClip Frame 31 (17 B)
gotoAndPlay (3);
Symbol 607 MovieClip Frame 42 (8 B)
stop();
Symbol 639 MovieClip Frame 23 (31 B)
_parent._parent._parent.hit();
Symbol 640 MovieClip Frame 65 (8 B)
stop();
Symbol 654 MovieClip Frame 1 (58 B)
anim = random(2) + 1;
this.gotoAndPlay("attack" + anim);
Symbol 654 MovieClip Frame 21 (31 B)
_parent._parent._parent.hit();
Symbol 654 MovieClip Frame 32 (21 B)
this.gotoAndPlay(1);
Symbol 654 MovieClip Frame 44 (31 B)
_parent._parent._parent.hit();
Symbol 654 MovieClip Frame 56 (21 B)
this.gotoAndPlay(1);
Symbol 655 MovieClip Frame 46 (8 B)
stop();
Symbol 661 MovieClip Frame 6 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 662 MovieClip Frame 21 (38 B)
_parent._parent._parent.ranged_hit();
Symbol 681 MovieClip Frame 13 (31 B)
_parent._parent._parent.hit();
Symbol 685 MovieClip Frame 34 (8 B)
stop();
Symbol 696 Button (103 B)
on (rollOver) {
if (health > 0) {
hb._visible = true;
}
}
on (rollOut) {
hb._visible = false;
}
Symbol 699 MovieClip [ennemy] Frame 1 (6.31 KiB) ● ●
if (side == 1) {
speed = 0.7;
closest_dist = 300;
ed = 300;
}
hb._visible = false;
units.anims.stop();
_x = (_x + Math.random());
if (side == 2) {
speed = -0.7;
closest_dist = -300;
units._xscale = -100;
ed = -300;
}
hitzone.gotoAndStop(id);
hb_but.hb_but.gotoAndStop(id);
units.gotoAndStop(id);
c = 3;
closest_id = "";
limit = 100;
health = _root.ES[id][0];
rhealth = health;
damage = _root.ES[id][1];
range_damage = _root.ES[id][2];
if (side == 2) {
if (_root.diff == 2) {
health = health * 1.3;
rhealth = rhealth * 1.3;
damage = damage * 1.3;
range_damage = range_damage * 1.3;
} else if (_root.diff == 3) {
health = health * 2;
rhealth = rhealth * 2;
damage = damage * 2;
range_damage = range_damage * 2;
}
}
infront = side;
infront_id = 0;
range_shoot = _root.ES[id][4];
range_melee = _root.ES[id][3];
reward = Math.round(_root.EN[id][1] * 1.3);
ed_id = 0;
dc = 0;
dead = false;
hit = function () {
EN = _root.game.ennemies["ennemy" + ed_id];
type = EN.id;
EN.health = EN.health - (damage - (Math.random() * 2));
if (((ed_id != "base1") and (ed_id != "base2")) and (type != 12)) {
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
}
};
ranged_hit = function () {
EN = _root.game.ennemies["ennemy" + ed_id];
type = EN.id;
EN.health = EN.health - (range_damage - (Math.random() * 2));
if (((ed_id != "base1") and (ed_id != "base2")) and (type != 12)) {
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
}
};
this.onEnterFrame = function () {
if (!_root.PAUSED) {
if (health > 0) {
if (_root.specialh == true) {
if (side == 1) {
if (health < rhealth) {
health++;
}
aura._visible = true;
aura._width = hitzone._width;
}
} else if (aura._visible == true) {
aura._visible = false;
}
hb.hb._xscale = (health / rhealth) * 100;
if (Math.abs(closest_dist) > limit) {
_x = (_x + speed);
moving = true;
} else {
moving = false;
}
if (Math.abs(ed) < range_melee) {
attack_melee = true;
attack_range = false;
} else if (Math.abs(ed) < range_shoot) {
attack_melee = false;
attack_range = true;
} else {
attack_melee = false;
attack_range = false;
}
if (((!attack_melee) and (!moving)) and (!attack_range)) {
units.anims.gotoAndStop("idle");
} else if (attack_melee and (!moving)) {
units.anims.gotoAndStop("attack");
} else if (attack_range and moving) {
units.anims.gotoAndStop("shootwalk");
} else if (attack_range and (!moving)) {
units.anims.gotoAndStop("shoot");
} else if (((!attack_melee) and moving) and (!attack_range)) {
units.anims.gotoAndStop("walk");
}
c--;
if (c == 0) {
ed_id = 0;
if (side == 1) {
closest_dist = 300;
ed = 300;
}
if (side == 2) {
closest_dist = -300;
ed = -300;
}
a = _root.ennemies.length - 1;
while (a >= 0) {
dist = _root.game.ennemies["ennemy" + _root.ennemies[a][0]]._x - _x;
if (side == 1) {
if (dist > 0) {
if (closest_dist > dist) {
closest_dist = dist;
limit = (Math.abs(hitzone._width / 2) + Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2)) + 2;
}
if ((_root.ennemies[a][2] != side) and (ed > (dist - Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2)))) {
ed = dist - Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2);
ed_id = _root.ennemies[a][0];
}
}
}
if (side == 2) {
if (dist < 0) {
if (closest_dist < dist) {
closest_dist = dist;
limit = (Math.abs(hitzone._width / 2) + Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2)) + 2;
}
if ((_root.ennemies[a][2] != side) and (ed < (dist + Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2)))) {
ed = dist + Math.abs(_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._width / 2);
ed_id = _root.ennemies[a][0];
}
}
}
a--;
}
c = 5;
}
} else {
if (dead == false) {
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.ennemies[a][0] == uid) {
_root.ennemies.splice(a, 1);
}
a--;
}
if (side == 2) {
_root.game.base_comp.uof--;
_root.cash = _root.cash + reward;
_root.xp = _root.xp + (reward * 2);
_root.exp = _root.exp + Math.round(reward / 2);
par = new Array();
par[0] = reward;
_root.create_particule(_x, _y - hitzone._height, 1, par);
} else {
_root.uof--;
_root.e_cash = _root.e_cash + reward;
_root.xp = _root.xp + Math.round(reward / 2);
_root.exp = _root.exp + (reward * 2);
}
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
_root.create_particule(_x, _y - (hitzone._height / 1.5), 2, "");
dead = true;
}
units.anims.gotoAndStop("die");
dc++;
if (dc > 80) {
this.removeMovieClip();
}
}
} else {
units.anims.gotoAndStop("idle");
}
};
Instance of Symbol 216 MovieClip "hb" in Symbol 699 MovieClip [ennemy] Frame 1 (72 B)
onClipEvent (enterFrame) {
this._y = (-_parent.hitzone._height) - 10;
}
Symbol 725 MovieClip Frame 1 (8 B)
stop();
Symbol 725 MovieClip Frame 6 (25 B)
_parent._parent.shoot();
Symbol 737 MovieClip Frame 1 (8 B)
stop();
Symbol 737 MovieClip Frame 6 (25 B)
_parent._parent.shoot();
Symbol 752 MovieClip Frame 1 (8 B)
stop();
Symbol 752 MovieClip Frame 8 (25 B)
_parent._parent.shoot();
Symbol 780 MovieClip Frame 1 (8 B)
stop();
Symbol 780 MovieClip Frame 20 (25 B)
_parent._parent.shoot();
Symbol 800 MovieClip Frame 1 (8 B)
stop();
Symbol 800 MovieClip Frame 20 (25 B)
_parent._parent.shoot();
Symbol 811 MovieClip Frame 1 (8 B)
stop();
Symbol 811 MovieClip Frame 21 (25 B)
_parent._parent.shoot();
Symbol 820 MovieClip Frame 1 (8 B)
stop();
Symbol 820 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 828 MovieClip Frame 1 (8 B)
stop();
Symbol 828 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 836 MovieClip Frame 1 (8 B)
stop();
Symbol 836 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 850 MovieClip Frame 1 (8 B)
stop();
Symbol 850 MovieClip Frame 3 (25 B)
_parent._parent.shoot();
Symbol 853 MovieClip Frame 1 (8 B)
stop();
Symbol 853 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 864 MovieClip Frame 1 (18 B)
stop();
stop();
Symbol 864 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 864 MovieClip Frame 20 (8 B)
stop();
Symbol 864 MovieClip Frame 21 (25 B)
_parent._parent.shoot();
Symbol 869 MovieClip Frame 1 (8 B)
stop();
Symbol 869 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 876 MovieClip Frame 1 (8 B)
stop();
Symbol 876 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 880 MovieClip Frame 1 (8 B)
stop();
Symbol 880 MovieClip Frame 2 (25 B)
_parent._parent.shoot();
Symbol 885 MovieClip [cursor] Frame 1 (361 B)
tu._visible = false;
mod = 1;
turret = 1;
this.onEnterFrame = function () {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (mod == 1) {
ar._visible = true;
tu._visible = false;
se._visible = false;
} else if (mod == 2) {
tu._visible = true;
tu.gotoAndStop(turret);
} else if (mod == 3) {
se._visible = true;
}
};
Symbol 886 MovieClip [turret] Frame 1 (1.38 KiB) ●
function shoot() {
_root.create_bullet(rx, ry, _rotation, damage, bullet_id, side);
}
tu.gotoAndStop(id);
rx = _parent._x + _x;
ry = _parent._y + _y;
ed = 100000 /* 0x0186A0 */;
range = _root.TS[id][3];
c = 0;
shoot_speed = _root.TS[id][0];
bullet_id = _root.TS[id][1];
damage = _root.TS[id][2];
st = 0;
if (side == 2) {
tu._yscale = -100;
_rotation = -180;
}
this.onEnterFrame = function () {
if (!_root.PAUSED) {
c++;
if (c == 10) {
ed = 100000 /* 0x0186A0 */;
a = _root.ennemies.length - 1;
while (a >= 0) {
xdist = _root.game.ennemies["ennemy" + _root.ennemies[a][0]]._x - rx;
ydist = _root.game.ennemies["ennemy" + _root.ennemies[a][0]]._y - ry;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if ((_root.ennemies[a][2] != side) and (ed > dist)) {
ed = dist;
ed_h = _root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone._height;
ed_id = _root.ennemies[a][0];
}
a--;
}
c = 0;
}
if (ed < range) {
if (id != 6) {
targetx = _root.game.ennemies["ennemy" + ed_id]._x;
targety = _root.game.ennemies["ennemy" + ed_id]._y - (ed_h / 1.3);
myRadians = Math.atan2(targety - ry, targetx - rx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
}
st++;
if (st >= shoot_speed) {
tu.anim.play();
st = 0;
}
}
}
};
Symbol 888 MovieClip [bullet2] Frame 1 (826 B)
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 4));
_y = (_y + (ys * 4));
g = 0;
gf = 0.05;
rot = random(6) - 3;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
_root.game.ennemies["ennemy" + _root.ennemies[a][0]].health = _root.game.ennemies["ennemy" + _root.ennemies[a][0]].health - damage;
this.removeMovieClip();
}
a--;
}
}
};
Symbol 890 MovieClip [bulletspecial5] Frame 1 (1.2 KiB) ●
_rotation = 0;
ys = 1;
xs = 4 * Math.cos(_rotation * (Math.PI/180));
g = 0;
gf = 0.2;
rot = random(10) - 5;
par = new Array();
par[0] = _rotation;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
if (g < 15) {
g = g + gf;
}
xs = xs / 1.02;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
this.removeMovieClip();
}
};
Symbol 892 MovieClip [bulletspecial4] Frame 1 (1.26 KiB) ●
_rotation = 0;
ys = 1;
xs = 4 * Math.cos(_rotation * (Math.PI/180));
g = 0;
gf = 0.2;
rot = random(10) - 5;
par = new Array();
par[0] = _rotation;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
if (g < 15) {
g = g + gf;
}
xs = xs / 1.02;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + rot);
if (_y > 425) {
_root.create_particule(_x, _y, 12, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 12, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 894 MovieClip [bulletspecial2] Frame 1 (1.23 KiB) ●
_rotation = (80 + random(20));
ys = 10 * Math.sin(_rotation * (Math.PI/180));
xs = 10 * Math.cos(_rotation * (Math.PI/180));
_x = (random(500) + 200);
_y = -100;
g = 0;
gf = 0.05;
scale = random(70) + 120;
_yscale = scale;
_xscale = scale;
par = new Array();
par[0] = _rotation;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 896 MovieClip [bulletspecial1] Frame 1 (1.83 KiB) ●
_rotation = (80 + random(20));
ys = 10 * Math.sin(_rotation * (Math.PI/180));
xs = 10 * Math.cos(_rotation * (Math.PI/180));
_x = (random(500) + 200);
_y = -100;
g = 0;
gf = 0.05;
scale = random(70) + 120;
_yscale = scale;
_xscale = scale;
cc = 0;
par = new Array();
par[0] = _rotation;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
cc++;
if (cc == 1) {
_root.create_particule(_x, _y, 4, par);
cc = 0;
}
if (_y > 425) {
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
_root.create_particule(_x, _y - 10, 3, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 898 MovieClip [part11] Frame 1 (1.35 KiB) ●
_rotation = (-90 + (random(60) - 30));
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
ys = ys + Math.random();
g = 0;
gf = 0.2;
rot = random(20) - 10;
side = params[0];
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = 0;
if ((ys + g) > 0) {
if (_y > 425) {
_root.create_particule(_x, _y, 7, "");
_root.create_particule(_x, _y, 6, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - 30;
_root.create_particule(_x, _y, 7, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
}
};
Symbol 899 MovieClip [part5] Frame 1 (1.37 KiB) ●
_rotation = (-90 + (random(60) - 30));
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
ys = ys + Math.random();
g = 0;
gf = 0.2;
rot = random(20) - 10;
side = params[0];
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + rot);
if ((ys + g) > 0) {
if (_y > 425) {
_root.create_particule(_x, _y, 7, "");
_root.create_particule(_x, _y, 6, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - 10;
_root.create_particule(_x, _y, 7, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
}
};
Symbol 901 MovieClip [bullet5] Frame 1 (425 B)
if (side == 1) {
_x = (_x + 116);
_y = (_y + 7);
} else {
_y = (_y + 7);
_x = (_x - 116);
}
g = 0;
gf = 0.05;
par = new Array();
par[0] = side;
par[1] = damage;
timer = 40;
cc = 0;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
timer--;
cc++;
if (cc == 2) {
_root.create_particule(_x, _y, 8, par);
cc = 0;
}
if (timer <= 0) {
this.removeMovieClip();
}
}
};
Symbol 902 MovieClip [bullet4] Frame 1 (1.61 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
if (side == 1) {
_y = (_y - (xs * 5));
} else {
_y = (_y + (xs * 5));
}
g = 0;
gf = 0.05;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + 6);
if (_y > 425) {
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 6, par);
_root.create_particule(_x, _y, 7, par);
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 5, par);
_root.create_particule(_x, _y, 7, par);
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 903 MovieClip [bullet12] Frame 1 (1.29 KiB) ●
ys = 0.2 * Math.sin(_rotation * (Math.PI/180));
xs = 0.2 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 100));
_y = (_y + (ys * 100));
acc = 1.01;
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 7;
while (b >= 0) {
if (xs < 15) {
_x = (_x + xs);
_y = (_y + ys);
xs = xs * acc;
ys = ys * acc;
}
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 904 MovieClip [bullet11] Frame 1 (1.29 KiB) ●
ys = 0.2 * Math.sin(_rotation * (Math.PI/180));
xs = 0.2 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 42));
_y = (_y + (ys * 42));
acc = 1.01;
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 7;
while (b >= 0) {
if (xs < 15) {
_x = (_x + xs);
_y = (_y + ys);
xs = xs * acc;
ys = ys * acc;
}
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 905 MovieClip [bullet10] Frame 1 (1.29 KiB) ●
ys = 0.2 * Math.sin(_rotation * (Math.PI/180));
xs = 0.2 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 42));
_y = (_y + (ys * 42));
acc = 1.01;
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 7;
while (b >= 0) {
if (xs < 15) {
_x = (_x + xs);
_y = (_y + ys);
xs = xs * acc;
ys = ys * acc;
}
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 907 MovieClip [bullet9] Frame 1 (1.34 KiB) ●
ys = 0.2 * Math.sin(_rotation * (Math.PI/180));
xs = 0.2 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 200));
_y = (_y + (ys * 200));
acc = 1.01;
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 7;
while (b >= 0) {
_x = (_x + xs);
_y = (_y + ys);
xs = xs * acc;
ys = ys * acc;
if (_y > 425) {
_root.create_particule(_x, _y, 7, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 7, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 909 MovieClip [bullet8] Frame 1 (1.22 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 5));
_y = (_y + (ys * 5));
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 3;
while (b >= 0) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
if (_y > 425) {
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 911 MovieClip [bullet7] Frame 1 (1.63 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 5));
_y = (_y + (ys * 5));
g = 0;
gf = 0.02;
par = new Array();
par[0] = side;
par[1] = damage;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 3;
while (b >= 0) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
if (_y > 425) {
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 7, par);
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 11, par);
_root.create_particule(_x, _y, 7, par);
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 913 MovieClip [bullet6] Frame 1 (1.61 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 5));
_y = (_y + (ys * 5));
g = 0;
gf = 0.02;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
b = 3;
while (b >= 0) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
if (_y > 425) {
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(_x, _y, 10, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
b--;
}
}
};
Symbol 915 MovieClip [bullet3] Frame 1 (1.63 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
if (side == 1) {
_y = (_y - (xs * 5));
} else {
_y = (_y + (xs * 5));
}
g = 0;
gf = 0.05;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + 2);
if (_y > 425) {
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 917 MovieClip [bullet1] Frame 1 (1.6 KiB) ●
ys = 7 * Math.sin(_rotation * (Math.PI/180));
xs = 7 * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xs * 5));
_y = (_y + (ys * 5));
g = 0;
gf = 0.05;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
_x = (_x + xs);
_y = (_y + (ys + g));
_rotation = (_rotation + 2);
if (_y > 425) {
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
this.removeMovieClip();
}
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(_x, _y, 3, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
}
};
Symbol 920 MovieClip [base2] Frame 1 (34 B)
_y = 425;
_x = 950;
side = 2;
Symbol 921 MovieClip [base1] Frame 1 (33 B)
_y = 425;
_x = 50;
side = 1;
Symbol 923 MovieClip [part4] Frame 1 (541 B)
scale = random(20) + 100;
_rotation = params[0];
_xscale = scale;
_yscale = scale;
_x = (_x + ((Math.random() * 9) - 4));
_y = (_y + ((Math.random() * 9) - 4));
rot = random(4) - 1.5;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
_y = (_y - 1);
scale = scale - 4;
_alpha = (_alpha - 4);
_xscale = scale;
_yscale = scale;
if (_y > 425) {
this.removeMovieClip();
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (scale <= 0) {
this.removeMovieClip();
}
}
};
Symbol 925 MovieClip [part9] Frame 1 (488 B)
gf = 0.15;
f = 0.1;
scale = random(40) + 100;
_xscale = scale;
_yscale = scale;
xs = (Math.random() * 6) - 3;
g = (-(Math.random() * 3)) + 1;
_x = (_x + ((Math.random() * 9) - 4));
_y = (_y + ((Math.random() * 9) - 4));
rot = random(4) - 1.5;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
xs = xs / (1 + f);
_x = (_x + xs);
_y = (_y + g);
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
}
};
Symbol 927 MovieClip [part10] Frame 1 (488 B)
gf = 0.15;
f = 0.1;
scale = random(40) + 100;
_xscale = scale;
_yscale = scale;
xs = (Math.random() * 6) - 3;
g = (-(Math.random() * 3)) + 1;
_x = (_x + ((Math.random() * 9) - 4));
_y = (_y + ((Math.random() * 9) - 4));
rot = random(4) - 1.5;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
xs = xs / (1 + f);
_x = (_x + xs);
_y = (_y + g);
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
}
};
Symbol 929 MovieClip [part3] Frame 1 (488 B)
gf = 0.15;
f = 0.1;
scale = random(40) + 100;
_xscale = scale;
_yscale = scale;
xs = (Math.random() * 6) - 3;
g = (-(Math.random() * 3)) + 1;
_x = (_x + ((Math.random() * 9) - 4));
_y = (_y + ((Math.random() * 9) - 4));
rot = random(4) - 1.5;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
xs = xs / (1 + f);
_x = (_x + xs);
_y = (_y + g);
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
}
};
Symbol 930 MovieClip [part12] Frame 28 (24 B)
this.removeMovieClip();
Symbol 931 MovieClip [part7] Frame 28 (24 B)
this.removeMovieClip();
Symbol 933 MovieClip [part6] Frame 1 (232 B)
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
this.onEnterFrame = function () {
if (!_root.PAUSED) {
_alpha = (_alpha - 1);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
};
Symbol 946 MovieClip Frame 1 (8 B)
stop();
Symbol 948 MovieClip [part8] Frame 1 (1.06 KiB) ●
gf = 0.2;
f = 0.1;
g = 1;
_x = (_x + ((Math.random() * 2) - 1));
_y = (_y + ((Math.random() * 2) - 1));
rot = random(4) - 1.5;
damage = params[1];
side = params[0];
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
xs = xs / (1 + f);
_x = (_x + xs);
_y = (_y + g);
_rotation = (_rotation + rot);
a = _root.ennemies.length - 1;
while (a >= 0) {
if (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].hitzone.hitTest(_x + _root.game._x, _y, false) and (_root.game.ennemies["ennemy" + _root.ennemies[a][0]].side != side)) {
EN = _root.game.ennemies["ennemy" + _root.ennemies[a][0]];
EN.health = EN.health - damage;
_root.create_particule(_x, _y, 9, "");
_root.create_particule(_x, _y, 9, "");
_root.create_particule(_x, _y, 9, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
_root.create_particule(EN._x, EN._y - (EN.hitzone._height / 1.5), 2, "");
this.removeMovieClip();
}
a--;
}
if (_y > 425) {
this.removeMovieClip();
}
}
};
Instance of Symbol 946 MovieClip in Symbol 948 MovieClip [part8] Frame 1 (57 B)
onClipEvent (load) {
this.gotoAndStop(random(12) + 1);
}
Symbol 949 MovieClip [part2] Frame 1 (421 B)
gf = 0.2;
f = 0.1;
xs = (Math.random() * 2) - 1;
g = (Math.random() * 1.5) - 1;
_x = (_x + ((Math.random() * 6) - 3));
_y = (_y + ((Math.random() * 6) - 3));
rot = random(4) - 1.5;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
g = g + gf;
xs = xs / (1 + f);
_x = (_x + xs);
_y = (_y + g);
_rotation = (_rotation + rot);
if (_y > 425) {
this.removeMovieClip();
}
}
};
Instance of Symbol 946 MovieClip in Symbol 949 MovieClip [part2] Frame 1 (57 B)
onClipEvent (load) {
this.gotoAndStop(random(12) + 1);
}
Symbol 961 MovieClip [part1] Frame 1 (267 B)
cash = "+ " + params[0];
ymove = 3;
this.onEnterFrame = function () {
if (!_root.PAUSED) {
_y = (_y - ymove);
ymove = ymove / 1.1;
if (ymove <= 0.2) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
};
Symbol 965 MovieClip [pause] Frame 1 (416 B)
ad = false;
_x = 325;
_y = 225;
this.onEnterFrame = function () {
if (Key.isDown(32)) {
if (!ad) {
if (_root.PAUSED == true) {
_root.PAUSED = false;
this._visible = false;
_root.menu._visible = true;
} else if (_root.PAUSED == false) {
_root.PAUSED = true;
this._visible = true;
_root.menu._visible = false;
}
ad = true;
}
} else {
ad = false;
}
};
Symbol 966 MovieClip [special3] Frame 1 (174 B)
timer = 300;
cc = 0;
_root.specialh = true;
this.onEnterFrame = function () {
timer--;
if (timer == 0) {
_root.specialh = false;
this.removeMovieClip();
}
};
Symbol 973 MovieClip [special4] Frame 1 (391 B)
cc = 0;
_y = 200;
_x = -100;
this.onEnterFrame = function () {
cc++;
timer--;
if (cc == 15) {
if (_x < 700) {
_root.create_bullet(_x, _y, 0, 400, "special4", 1);
cc = 0;
}
}
_x = (_x + 4);
_root.game._x = _root.game._x + (random(3) - 1);
_root.game._y = (0 + random(3)) - 1;
if (_x > 1000) {
_root.game._y = 0;
this.removeMovieClip();
}
};
Symbol 976 MovieClip [special5] Frame 1 (402 B)
cc = 0;
_y = 425;
_x = 150;
this.onEnterFrame = function () {
cc++;
timer--;
if (cc == 5) {
if (_x < 700) {
_root.create_bullet(_x + 30, _y - 5, 0, 1000, "special5", 1);
_x = (_x + 50);
cc = 0;
}
}
_root.game._x = _root.game._x + (random(3) - 1);
_root.game._y = (0 + random(3)) - 1;
if (_x > 1000) {
_root.game._y = 0;
this.removeMovieClip();
}
};
Symbol 976 MovieClip [special5] Frame 57 (44 B)
_root.game._y = 0;
this.removeMovieClip();
Symbol 977 MovieClip [special2] Frame 1 (332 B)
timer = 200;
cc = 0;
this.onEnterFrame = function () {
cc++;
timer--;
if (cc == 5) {
_root.create_bullet(_x, _y, rot, 200, "special2", 1);
cc = 0;
}
_root.game._x = _root.game._x + (random(4) - 2);
_root.game._y = (0 + random(4)) - 2;
if (timer == 0) {
_root.game._y = 0;
this.removeMovieClip();
}
};
Symbol 978 MovieClip [special1] Frame 1 (334 B)
timer = 200;
cc = 0;
this.onEnterFrame = function () {
cc++;
timer--;
if (cc == 9) {
_root.create_bullet(_x, _y, rot, 200, "special1", 1);
cc = 0;
}
_root.game._x = _root.game._x + (random(10) - 5);
_root.game._y = (0 + random(10)) - 5;
if (timer == 0) {
_root.game._y = 0;
this.removeMovieClip();
}
};
Symbol 984 MovieClip Frame 1 (129 B)
lb._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (lb._xscale == 100) {
_root.gotoAndPlay("loaded");
}
Symbol 984 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 992 Button (68 B)
on (release) {
_root.getURL("http://www.maxgames.com", "_blank");
}
Symbol 996 Button (29 B)
on (press) {
_root.play();
}
Symbol 1001 MovieClip Frame 26 (8 B)
stop();
Symbol 1008 MovieClip Frame 160 (23 B)
stop();
_root.play();
Symbol 1019 Button (41 B)
on (press) {
_root.gotoAndStop("sta");
}
Symbol 1020 Button (41 B)
on (press) {
_root.gotoAndStop("ins");
}
Symbol 1021 Button (41 B)
on (press) {
_root.gotoAndStop("ext");
}
Symbol 1022 Button (68 B)
on (release) {
_root.getURL("http://www.maxgames.com", "_blank");
}
Symbol 1023 Button (74 B)
on (release) {
_root.getURL("http://louissi.newgrounds.com", "_blank");
}
Symbol 1026 Button (47 B)
on (press) {
_root.gotoAndStop("menuframe");
}
Symbol 1032 Button (61 B)
on (press) {
_root.diff = 1;
_root.gotoAndStop("ingame");
}
Symbol 1033 Button (61 B)
on (press) {
_root.diff = 2;
_root.gotoAndStop("ingame");
}
Symbol 1034 Button (61 B)
on (press) {
_root.diff = 3;
_root.gotoAndStop("ingame");
}