Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1b5c4b09", this, 10301, true);
function onEnterFrame() {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
loadBar.gotoAndStop(2);
_root.loadBar._width = 65;
xlf = true;
}
loadBar.onRelease = function () {
if (xlf == true) {
removeMovieClip(adBox);
gotoAndStop (2);
}
};
}
stop();
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=1534Q759A030B");
Frame 2
stopAllSounds();
removeMovieClip(adBox);
A = SharedObject.getLocal("achilpa");
achievement_complete = A.data.achievement_complete;
if (achievement_complete == undefined) {
achievement_complete = new Array();
}
easy_level = A.data.easy_level;
if (easy_level == undefined) {
easy_level = 1;
}
medium_level = A.data.medium_level;
if (medium_level == undefined) {
medium_level = 1;
}
hard_level = A.data.hard_level;
if (hard_level == undefined) {
hard_level = 1;
}
topspeed = A.data.topspeed;
if (topspeed == undefined) {
topspeed = 0;
}
acceleration2 = A.data.acceleration2;
if (acceleration2 == undefined) {
acceleration2 = 0;
}
friction2 = A.data.friction2;
if (friction2 == undefined) {
friction2 = 0;
}
money_amount = A.data.money_amount;
if (money_amount == undefined) {
money_amount = 0;
}
counter_totaltime = A.data.counter_totaltime;
if (counter_totaltime == undefined) {
counter_totaltime = 0;
}
total_level = A.data.total_level;
if (total_level == undefined) {
total_level = 0;
}
ac_width = 70;
ac_dim = 2;
ac_start_timer = 50;
if (achievement_complete[8] != true) {
first_upgrade = false;
}
play();
Frame 3
stop();
GBbut.onRelease = function () {
getURL ("http://www.gameboltz.com/home.php?gameref=bulletlab", "_blank");
};
Frame 5
music2 = 100;
music1 = 60;
shoot_sound = 20;
ac_vol = 200;
hit_vol = 50;
var sound_mute = false;
mute_sound = new Sound();
this.createEmptyMovieClip("soundholder1", this.getNextHighestDepth());
loop1 = new Sound(soundholder1);
loop1.attachSound("loop1");
loop1.setVolume(music1);
loop1.start(0, 20000);
this.createEmptyMovieClip("soundholder2", this.getNextHighestDepth());
loop2 = new Sound(soundholder2);
loop2.attachSound("loop2");
loop2.start(0, 20000);
loop2.setVolume(0);
this.createEmptyMovieClip("soundholder3", this.getNextHighestDepth());
shoot = new Sound(soundholder3);
shoot.attachSound("shoot");
shoot.setVolume(50);
this.createEmptyMovieClip("soundholder4", this.getNextHighestDepth());
ac_sound = new Sound(soundholder4);
ac_sound.attachSound("ac_sound");
ac_sound.setVolume(ac_vol);
this.createEmptyMovieClip("soundholder5", this.getNextHighestDepth());
hit_sound = new Sound(soundholder5);
hit_sound.attachSound("hit_sound");
hit_sound.setVolume(hit_vol);
mute_sound.setVolume(50);
nextFrame();
muteBut.gotoAndStop(1);
Frame 6
function tower1_() {
i = 1;
while (i <= tower_amount_1) {
if (this["tower_1_" + i]._alpha < 50) {
this["tower_1_" + i]._alpha++;
}
this["tower_1_" + i].timer--;
if (this["tower_1_" + i].timer < 0) {
this["tower_1_" + i].timer = tower_1_timer;
attachMovie("bullet2_", "bullet1_" + bullet1number, getNextHighestDepth(), {_x:this["tower_1_" + i]._x, _y:this["tower_1_" + i]._y});
this["bullet1_" + bullet1number]._alpha = 50;
if ((i == 1) || (i == 3)) {
this["bullet1_" + bullet1number].mov_dir = 1;
}
if ((i == 2) || (i == 4)) {
this["bullet1_" + bullet1number].mov_dir = 2;
}
bullets1.push(bullet1number);
bullet1number++;
}
i++;
}
}
function bullet1_() {
for (i in bullets1) {
if (this["bullet1_" + bullets1[i]].mov_dir == 1) {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x + bullet1_speed;
}
if (this["bullet1_" + bullets1[i]].mov_dir == 2) {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x - bullet1_speed;
}
if ((((this["bullet1_" + bullets1[i]]._x > 550) || (this["bullet1_" + bullets1[i]]._x < 0)) || (this["bullet1_" + bullets1[i]]._y < 0)) || (this["bullet1_" + bullets1[i]]._y > 400)) {
removeMovieClip(this["bullet1_" + bullets1[i]]);
bullets1.splice(i, 1);
}
}
}
function remove_all() {
i2 = 1;
while (i2 <= 5) {
for (i3 in this["bullets" + i2]) {
curvar = this["bullets" + [i2]][i3];
removeMovieClip(this[(("bullet" + i2) + "_") + curvar]);
this["bullets" + i2].splice(i3, 1);
}
i = 0;
while (i <= 50) {
removeMovieClip(this[(("tower_" + i2) + "_") + i]);
i++;
}
i2++;
}
}
function onEnterFrame() {
counter_totaltime++;
tower1_();
bullet1_();
if (back_button.hitTest(_xmouse, _ymouse, true)) {
startfade = true;
}
if (startfade == true) {
back_button._alpha = back_button._alpha - 2;
}
}
stop();
back_button._alpha = 100;
startfade = false;
play_button.onRelease = function () {
gotoAndStop (7);
remove_all();
};
create = true;
bullets1 = new Array();
bullet1number = 0;
tower_1_timer = 80;
if (create == true) {
create = false;
tower_amount_1 = 1;
attachMovie("tower_2_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:15, _y:150});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_2_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:535, _y:150});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_2_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:15, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_2_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:535, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
bullet1_speed = 1;
}
muteBut.onRelease = function () {
if (sound_mute == false) {
sound_mute = true;
mute_sound.setVolume(0);
muteBut.gotoAndStop(2);
} else {
sound_mute = false;
mute_sound.setVolume(50);
muteBut.gotoAndStop(1);
}
};
Frame 7
function tower1_() {
i = 1;
while (i <= tower_amount_1) {
if (this["tower_1_" + i]._alpha < 50) {
this["tower_1_" + i]._alpha++;
}
this["tower_1_" + i].timer--;
if (this["tower_1_" + i].timer < 0) {
this["tower_1_" + i].timer = tower_1_timer;
attachMovie(("bullet" + i) + "_", "bullet1_" + bullet1number, getNextHighestDepth(), {_x:this["tower_1_" + i]._x, _y:this["tower_1_" + i]._y});
this["bullet1_" + bullet1number]._alpha = 50;
if (i == 1) {
this["bullet1_" + bullet1number].mov_dir = 1;
}
if (i == 2) {
this["bullet1_" + bullet1number].mov_dir = 3;
}
if (i == 3) {
this["bullet1_" + bullet1number].mov_dir = 4;
}
if (i == 4) {
this["bullet1_" + bullet1number].mov_dir = 2;
}
bullets1.push(bullet1number);
bullet1number++;
}
i++;
}
}
function bullet1_() {
for (i in bullets1) {
if (this["bullet1_" + bullets1[i]].mov_dir == 1) {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x + bullet1_speed;
}
if (this["bullet1_" + bullets1[i]].mov_dir == 2) {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x - bullet1_speed;
}
if (this["bullet1_" + bullets1[i]].mov_dir == 3) {
this["bullet1_" + bullets1[i]]._y = this["bullet1_" + bullets1[i]]._y + bullet1_speed;
}
if (this["bullet1_" + bullets1[i]].mov_dir == 4) {
this["bullet1_" + bullets1[i]]._y = this["bullet1_" + bullets1[i]]._y - bullet1_speed;
}
if ((((this["bullet1_" + bullets1[i]]._x > 550) || (this["bullet1_" + bullets1[i]]._x < 0)) || (this["bullet1_" + bullets1[i]]._y < 0)) || (this["bullet1_" + bullets1[i]]._y > 400)) {
removeMovieClip(this["bullet1_" + bullets1[i]]);
bullets1.splice(i, 1);
}
}
}
function remove_all() {
removeMovieClip(achievement);
i2 = 1;
while (i2 <= 4) {
i = 1;
while (i <= 10) {
removeMovieClip(_root[(("upgradester_" + i2) + "_") + i]);
i++;
}
i2++;
}
i2 = 1;
while (i2 <= 5) {
for (i3 in this["bullets" + i2]) {
curvar = this["bullets" + [i2]][i3];
removeMovieClip(this[(("bullet" + i2) + "_") + curvar]);
this["bullets" + i2].splice(i3, 1);
}
i = 0;
while (i <= 50) {
removeMovieClip(this[(("tower_" + i2) + "_") + i]);
i++;
}
i2++;
}
}
function Ac() {
if (achievement_complete[r] != true) {
achievement_complete[r] = true;
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
A.data.achievement_complete = achievement_complete;
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
}
function onEnterFrame() {
Ac();
counter_totaltime++;
if ((counter_totaltime / 45) > 300) {
r = 9;
Ac();
}
if ((counter_totaltime / 45) > 900) {
r = 10;
Ac();
}
if ((counter_totaltime / 45) > 2700) {
r = 11;
Ac();
}
tower1_();
bullet1_();
modehover = false;
if (easy.hitTest(_xmouse, _ymouse, true)) {
gametype = "easy";
modehover = true;
on_hoover = "Easy mode. 5 lives per level. 1x money multiplier.";
lives = 5;
}
if (medium.hitTest(_xmouse, _ymouse, true)) {
gametype = "medium";
modehover = true;
on_hoover = "Medium mode. 1 life per level. 2x money multiplier.";
lives = 1;
}
if (hard.hitTest(_xmouse, _ymouse, true)) {
gametype = "hard";
modehover = true;
on_hoover = "Hard mode. 1 life per level. 5x money multiplier. Double speed!";
lives = 1;
}
if (extreme.hitTest(_xmouse, _ymouse, true)) {
if (((achievement_complete[18] == true) || (achievement_complete[19] == true)) || (achievement_complete[20] == true)) {
gametype = "extreme";
on_hoover = "What are you insane? Only one live for the whole game! 10x money multiplier. Double speed!";
lives = 1;
} else {
on_hoover = "Complete any of the other difficulties to play extreme mode!";
}
modehover = true;
}
if (modehover == false) {
on_hoover = "";
}
hover2 = false;
speed_cost = Math.round(Math.pow(1.6, topspeed + 4) + 10);
if (buy_speed.hitTest(_xmouse, _ymouse, true)) {
hover2 = true;
cost_speed = "$" + speed_cost;
if (topspeed >= 10) {
cost_speed = "$-";
}
} else {
cost_speed = "";
}
friction_cost = Math.round(Math.pow(1.6, friction2 + 4) + 10);
if (buy_friction.hitTest(_xmouse, _ymouse, true)) {
hover2 = true;
cost_friction = "$" + friction_cost;
if (friction2 >= 10) {
cost_friction = "$-";
}
} else {
cost_friction = "";
}
accel_cost = Math.round(Math.pow(1.6, acceleration2 + 4) + 10);
if (buy_accel.hitTest(_xmouse, _ymouse, true)) {
hover2 = true;
cost_accelerate = "$" + accel_cost;
if (acceleration2 >= 10) {
cost_accelerate = "$-";
}
} else {
cost_accelerate = "";
}
if (hover2 == false) {
not_enough_money = "";
}
money_amount2 = "$" + money_amount;
}
on_hoover = "";
stop();
GBbut.onRelease = function () {
getURL ("http://www.gameboltz.com/home.php?gameref=bulletlab", "_blank");
};
easy.onRelease = function () {
remove_all();
gotoAndStop (11);
};
easy.onRelease = function () {
remove_all();
gotoAndStop (11);
};
medium.onRelease = function () {
remove_all();
gotoAndStop (11);
};
hard.onRelease = function () {
remove_all();
gotoAndStop (11);
};
if (((achievement_complete[18] == true) || (achievement_complete[19] == true)) || (achievement_complete[20] == true)) {
extreme._alpha = 100;
} else {
extreme._alpha = 40;
}
extreme.onRelease = function () {
if (((achievement_complete[18] == true) || (achievement_complete[19] == true)) || (achievement_complete[20] == true)) {
_root.loop1.setVolume(0);
_root.loop2.setVolume(music2);
remove_all();
level = 1;
gotoAndStop (8);
}
};
i2 = 1;
while (i2 <= 3) {
i = 1;
while (i <= 10) {
attachMovie("upgradester", (("upgradester_" + i2) + "_") + i, getNextHighestDepth(), {_x:115 + (27 * i), _y:235 + (25 * i2)});
if (i2 == 1) {
if (topspeed >= i) {
this[(("upgradester_" + i2) + "_") + i].gotoAndStop(2);
}
}
if (i2 == 2) {
if (friction2 >= i) {
this[(("upgradester_" + i2) + "_") + i].gotoAndStop(2);
}
}
if (i2 == 3) {
if (acceleration2 >= i) {
this[(("upgradester_" + i2) + "_") + i].gotoAndStop(2);
}
}
i++;
}
i2++;
}
create = true;
bullets1 = new Array();
bullet1number = 0;
tower_1_timer = 40;
if (create == true) {
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:15, _y:15});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_2_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:535, _y:15});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_3_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:15, _y:385});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_4_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:535, _y:385});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
bullet1_speed = 2;
}
r = 1;
A.data.counter_totaltime = counter_totaltime;
buy_speed.onRelease = function () {
if (topspeed < 10) {
if (money_amount >= speed_cost) {
if (first_upgrade == false) {
r = 8;
if (achievement_complete[r] != true) {
achievement_complete[r] = true;
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
A.data.achievement_complete = achievement_complete;
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
}
first_upgrade = true;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
money_amount = money_amount - speed_cost;
A.data.money_amount = money_amount;
_root["upgradester_1_" + (topspeed + 1)].gotoAndStop(2);
topspeed++;
A.data.topspeed = topspeed;
} else {
not_enough_money = "Not enough money!";
}
}
if (topspeed == 10) {
r = 12;
}
};
buy_friction.onRelease = function () {
if (friction2 < 10) {
if (money_amount >= friction_cost) {
if (first_upgrade == false) {
r = 8;
if (achievement_complete[r] != true) {
achievement_complete[r] = true;
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
A.data.achievement_complete = achievement_complete;
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
}
first_upgrade = true;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
money_amount = money_amount - friction_cost;
A.data.money_amount = money_amount;
_root["upgradester_2_" + (friction2 + 1)].gotoAndStop(2);
friction2++;
A.data.friction2 = friction2;
} else {
not_enough_money = "Not enough money!";
}
if (friction2 == 10) {
r = 13;
}
}
};
buy_accel.onRelease = function () {
if (acceleration2 < 10) {
if (money_amount >= accel_cost) {
if (first_upgrade == false) {
r = 8;
if (achievement_complete[r] != true) {
achievement_complete[r] = true;
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
A.data.achievement_complete = achievement_complete;
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
}
first_upgrade = true;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
money_amount = money_amount - accel_cost;
A.data.money_amount = money_amount;
_root["upgradester_3_" + (acceleration2 + 1)].gotoAndStop(2);
acceleration2++;
A.data.acceleration2 = acceleration2;
} else {
not_enough_money = "Not enough money!";
}
}
if (acceleration2 == 10) {
r = 14;
}
};
goodjob_button.onRelease = function () {
gotoAndStop (12);
remove_all();
};
Frame 8
function playermovement() {
if (player._x > 535) {
player._x = 535;
}
if (player._x < 15) {
player._x = 15;
}
if (player._y > 365) {
player._y = 365;
}
if (player._y < 35) {
player._y = 35;
}
calculated_topspeed = top_speed * ((topspeed * 0.04) + 0.6);
calculated_accel = acceleration * ((acceleration2 * 0.07) + 0.3);
calculated_friction = friction - (friction2 * 0.02);
no_key_down_y = true;
no_key_down_x = true;
if (Key.isDown(87) || (Key.isDown(38))) {
if (player_y_speed >= (-calculated_topspeed)) {
player_y_speed = player_y_speed - calculated_accel;
}
no_key_down_y = false;
}
if (Key.isDown(65) || (Key.isDown(37))) {
if (player_x_speed >= (-calculated_topspeed)) {
player_x_speed = player_x_speed - calculated_accel;
}
no_key_down_x = false;
}
if (Key.isDown(83) || (Key.isDown(40))) {
if (player_y_speed <= calculated_topspeed) {
player_y_speed = player_y_speed + calculated_accel;
}
no_key_down_y = false;
}
if (Key.isDown(68) || (Key.isDown(39))) {
if (player_x_speed <= calculated_topspeed) {
player_x_speed = player_x_speed + calculated_accel;
}
no_key_down_x = false;
}
if (no_key_down_y == true) {
player_y_speed = player_y_speed * calculated_friction;
}
if (no_key_down_x == true) {
player_x_speed = player_x_speed * calculated_friction;
}
player._x = player._x + player_x_speed;
player._y = player._y + player_y_speed;
}
function level1() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:100, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
}
if (tower_amount_1 > 0) {
tower1_();
}
r = 2;
Ac();
}
function level2() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 3;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level3() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 5;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level4() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 3;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level5() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 3;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level6() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:20});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:20});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 5;
tower_1_timer = 40;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level7() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 1.5;
tower_1_timer = 10;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level8() {
top_speed = 2;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 4;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level9() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 40;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:275, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 20;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
r = 4;
Ac();
}
function level10() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:400, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 3;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:250, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:150, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:350, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:450, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
bullet2_speed = 3;
tower_3_timer = 30;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level11() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 30;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 15;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level12() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 30;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 15;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level13() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 3;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 8;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level14() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 6;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 8;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level15() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:265, _y:330});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
i = 0;
while (i <= 28) {
attachMovie("tower_3_", "tower_3_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:350});
this["tower_3_" + i].timer = tower_3_timer;
this["tower_3_" + i]._alpha = 0;
i++;
}
tower_3_timer = 40;
tower_amount_3 = 28;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level16() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:240, _y:340});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 2;
tower_2_timer = 100;
}
if (tower_amount_2 > 0) {
tower2_();
}
r = 3;
Ac();
}
function level17() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:30, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:30, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:520, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:520, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
bullet2_speed = 2;
tower_2_timer = 150;
}
if (tower_amount_2 > 0) {
tower2_();
}
}
function level18() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:10, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:540, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 3;
tower_2_timer = 100;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 8;
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level19() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:265, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 3.5;
tower_2_timer = 100;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 40;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level20() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:10, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:540, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:10, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:540, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 3;
tower_2_timer = 100;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:40, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:50});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:500, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:265, _y:350});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 8;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level21() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:240, _y:330});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_2_timer = 100;
bullet2_speed = 1;
i = 0;
while (i <= 28) {
attachMovie("tower_3_", "tower_3_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:350});
this["tower_3_" + i].timer = tower_3_timer;
this["tower_3_" + i]._alpha = 0;
i++;
}
tower_amount_3 = 28;
tower_3_timer = 40;
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level22() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 20 * framerate;
create = false;
i = 0;
while (i <= 28) {
attachMovie("tower_4_", "tower_4_" + i, getNextHighestDepth(), {_x:(40 * i) - 30, _y:50});
this["tower_4_" + i].timer = tower_4_timer;
this["tower_4_" + i]._alpha = 0;
i++;
}
tower_amount_4 = 14;
tower_4_timer = 15;
bullet4_speed = 15;
}
if (tower_amount_4 > 0) {
tower4_();
}
r = 5;
Ac();
}
function level23() {
if (create == true) {
top_speed = 5;
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
i = 0;
while (i <= 14) {
attachMovie("tower_4_", "tower_4_" + i, getNextHighestDepth(), {_x:(40 * i) - 10, _y:50});
this["tower_4_" + i].timer = tower_4_timer;
this["tower_4_" + i]._alpha = 0;
i++;
}
tower_amount_4 = 14;
tower_4_timer = 50;
bullet4_speed = 1;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:150, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:350, _y:200});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_1_timer = 40;
bullet1_speed = 2;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_4 > 0) {
tower4_();
}
}
function level24() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
i = 0;
while (i <= 14) {
attachMovie("tower_4_", "tower_4_" + i, getNextHighestDepth(), {_x:(40 * i) - 10, _y:50});
this["tower_4_" + i].timer = tower_4_timer;
this["tower_4_" + i]._alpha = 0;
i++;
}
tower_amount_4 = 14;
tower_4_timer = 50;
bullet4_speed = 0.5;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:265, _y:200});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_2_timer = 100;
bullet2_speed = 2;
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_4 > 0) {
tower4_();
}
}
function level25() {
if (create == true) {
bullet_5_explo = 150;
gen_timer = 30 * framerate;
create = false;
tower_amount_5 = 1;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:265, _y:190});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_5_timer = 40;
bullet5_speed = 1;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:10, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:540, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_1_timer = 40;
bullet1_speed = 2;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_5 > 0) {
tower5_();
}
r = 6;
Ac();
}
function level26() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_5 = 1;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_5_timer = 100;
bullet5_speed = 2;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:265, _y:190});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_2_timer = 100;
bullet2_speed = 2;
}
if (tower_amount_5 > 0) {
tower5_();
}
if (tower_amount_2 > 0) {
tower2_();
}
}
function level27() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
i = 0;
while (i <= 28) {
attachMovie("tower_5_", "tower_5_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:50});
this["tower_5_" + i].timer = tower_5_timer;
this["tower_5_" + i]._alpha = 0;
i++;
}
tower_amount_5 = 28;
tower_5_timer = 100;
bullet5_speed = 0.5;
bullet3_speed = 4;
}
if (tower_amount_5 > 0) {
tower5_();
}
}
function level28() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_5 = 1;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_5_timer = 100;
bullet5_speed = 2;
i = 0;
while (i <= 28) {
attachMovie("tower_3_", "tower_3_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:330});
this["tower_3_" + i].timer = tower_3_timer;
this["tower_3_" + i]._alpha = 0;
i++;
}
tower_amount_3 = 28;
tower_3_timer = 40;
}
if (tower_amount_5 > 0) {
tower5_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level29() {
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
i = 0;
while (i <= 28) {
attachMovie("tower_1_", "tower_1_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:50});
this["tower_1_" + i].timer = tower_1_timer;
this["tower_1_" + i]._alpha = 0;
i++;
}
tower_amount_1 = 56;
tower_1_timer = 20;
bullet1_speed = 4;
}
if (tower_amount_1 > 0) {
tower1_();
}
}
function level30() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:265, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 20;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:10, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:540, _y:50});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:10, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_amount_2++;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:540, _y:350});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 2;
tower_2_timer = 150;
tower_amount_3 = 1;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:100, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:100});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_amount_3++;
attachMovie("tower_3_", "tower_3_" + tower_amount_3, getNextHighestDepth(), {_x:400, _y:300});
this["tower_3_" + tower_amount_3].timer = tower_3_timer;
this["tower_3_" + tower_amount_3]._alpha = 0;
tower_3_timer = 8;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level31() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:265, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 5;
tower_amount_5 = 1;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:10, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:50});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_amount_5++;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:540, _y:350});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
tower_5_timer = 40;
bullet5_speed = 2;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_5 > 0) {
tower5_();
}
}
function level32() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 200;
gen_timer = 30 * framerate;
create = false;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 10;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:265, _y:190});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
bullet2_speed = 3;
tower_2_timer = 150;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_2 > 0) {
tower2_();
}
}
function level33() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 100;
gen_timer = 30 * framerate;
create = false;
tower_amount_5 = 1;
attachMovie("tower_5_", "tower_5_" + tower_amount_5, getNextHighestDepth(), {_x:265, _y:200});
this["tower_5_" + tower_amount_5].timer = tower_5_timer;
this["tower_5_" + tower_amount_5]._alpha = 0;
bullet5_speed = 2;
tower_5_timer = 10;
tower_amount_1 = 1;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:20, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:50});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
tower_amount_1++;
attachMovie("tower_1_", "tower_1_" + tower_amount_1, getNextHighestDepth(), {_x:530, _y:350});
this["tower_1_" + tower_amount_1].timer = tower_1_timer;
this["tower_1_" + tower_amount_1]._alpha = 0;
bullet1_speed = 2;
tower_1_timer = 20;
}
if (tower_amount_1 > 0) {
tower1_();
}
if (tower_amount_5 > 0) {
tower5_();
}
}
function level34() {
top_speed = 5;
if (create == true) {
bullet_5_explo = 100;
gen_timer = 30 * framerate;
create = false;
i = 1;
while (i <= 27) {
attachMovie("tower_3_", "tower_3_" + i, getNextHighestDepth(), {_x:(20 * i) - 10, _y:365});
this["tower_3_" + i].timer = tower_3_timer;
this["tower_3_" + i]._alpha = 0;
i++;
}
i2 = 28;
while (i2 <= 44) {
attachMovie("tower_3_", "tower_3_" + i2, getNextHighestDepth(), {_x:535, _y:(20 * (i2 - 27)) + 10});
this["tower_3_" + i2].timer = tower_3_timer;
this["tower_3_" + i2]._alpha = 0;
i2++;
}
tower_amount_3 = 45;
tower_3_timer = 30;
bullet3_speed = 2;
}
if (tower_amount_3 > 0) {
tower3_();
}
}
function level35() {
if (create == true) {
top_speed = 5;
bullet_5_explo = 100;
gen_timer = 30 * framerate;
create = false;
tower_amount_2 = 1;
attachMovie("tower_2_", "tower_2_" + tower_amount_2, getNextHighestDepth(), {_x:265, _y:200});
this["tower_2_" + tower_amount_2].timer = tower_2_timer;
this["tower_2_" + tower_amount_2]._alpha = 0;
tower_2_timer = 15;
bullet2_speed = 3;
tower_amount_4 = 1;
attachMovie("tower_4_", "tower_4_" + tower_amount_4, getNextHighestDepth(), {_x:10, _y:30});
this["tower_4_" + tower_amount_4].timer = tower_4_timer;
this["tower_4_" + tower_amount_4]._alpha = 0;
tower_amount_4++;
attachMovie("tower_4_", "tower_4_" + tower_amount_4, getNextHighestDepth(), {_x:20, _y:370});
this["tower_4_" + tower_amount_4].timer = tower_4_timer;
this["tower_4_" + tower_amount_4]._alpha = 0;
tower_amount_4++;
attachMovie("tower_4_", "tower_4_" + tower_amount_4, getNextHighestDepth(), {_x:530, _y:30});
this["tower_4_" + tower_amount_4].timer = tower_4_timer;
this["tower_4_" + tower_amount_4]._alpha = 0;
tower_amount_4++;
attachMovie("tower_4_", "tower_4_" + tower_amount_4, getNextHighestDepth(), {_x:530, _y:370});
this["tower_4_" + tower_amount_4].timer = tower_4_timer;
this["tower_4_" + tower_amount_4]._alpha = 0;
tower_4_timer = 20;
bullet4_speed = 2;
}
if (tower_amount_2 > 0) {
tower2_();
}
if (tower_amount_4 > 0) {
tower4_();
}
}
function tower1_() {
i = 1;
while (i <= tower_amount_1) {
if (this["tower_1_" + i]._alpha < 50) {
this["tower_1_" + i]._alpha++;
}
this["tower_1_" + i].timer--;
if (this["tower_1_" + i].timer < 0) {
this["tower_1_" + i].timer = tower_1_timer;
attachMovie("bullet1_", "bullet1_" + bullet1number, getNextHighestDepth(), {_x:this["tower_1_" + i]._x, _y:this["tower_1_" + i]._y});
this["bullet1_" + bullet1number].xdist = this["bullet1_" + bullet1number]._x - player._x;
this["bullet1_" + bullet1number].ydist = this["bullet1_" + bullet1number]._y - player._y;
this["bullet1_" + bullet1number].dir = Math.atan2(this["bullet1_" + bullet1number].ydist, this["bullet1_" + bullet1number].xdist);
this["bullet1_" + bullet1number]._alpha = 50;
bullets1.push(bullet1number);
bullet1number++;
if (sound_mute == false) {
shoot.setVolume(shoot_sound);
shoot.start(0, 1);
}
}
i++;
}
}
function tower2_() {
i = 1;
while (i <= tower_amount_2) {
if (this["tower_2_" + i]._alpha < 50) {
this["tower_2_" + i]._alpha++;
}
this["tower_2_" + i].timer--;
if (this["tower_2_" + i].timer < 0) {
this["tower_2_" + i].timer = tower_2_timer;
attachMovie("bullet2_", "bullet2_" + bullet2number, getNextHighestDepth(), {_x:this["tower_2_" + i]._x, _y:this["tower_2_" + i]._y});
this["bullet2_" + bullet2number]._alpha = 50;
bullets2.push(bullet2number);
bullet2number++;
if (sound_mute == false) {
shoot.setVolume(shoot_sound);
shoot.start(0, 1);
}
}
i++;
}
}
function tower3_() {
i = 1;
while (i <= tower_amount_3) {
if (this["tower_3_" + i]._alpha < 50) {
this["tower_3_" + i]._alpha++;
}
this["tower_3_" + i].timer--;
if (this["tower_3_" + i].timer < 0) {
this["tower_3_" + i].timer = tower_3_timer;
attachMovie("bullet3_", "bullet3_" + bullet3number, getNextHighestDepth(), {_x:this["tower_3_" + i]._x, _y:this["tower_3_" + i]._y});
this["bullet3_" + bullet3number].mov_dir = Math.round((Math.random() * 4) + 0.5);
this["bullet3_" + bullet3number]._alpha = 50;
bullets3.push(bullet3number);
bullet3number++;
}
i++;
}
}
function tower4_() {
i = 1;
while (i <= tower_amount_4) {
if (this["tower_4_" + i]._alpha < 50) {
this["tower_4_" + i]._alpha++;
}
this["tower_4_" + i].timer--;
if (this["tower_4_" + i].timer < 0) {
this["tower_4_" + i].timer = tower_4_timer;
attachMovie("bullet4_", "bullet4_" + bullet4number, getNextHighestDepth(), {_x:this["tower_4_" + i]._x, _y:this["tower_4_" + i]._y});
this["bullet4_" + bullet4number].xdist = this["bullet4_" + bullet4number]._x - player._x;
this["bullet4_" + bullet4number].ydist = this["bullet4_" + bullet4number]._y - player._y;
this["bullet4_" + bullet4number].dir = Math.atan2(this["bullet4_" + bullet4number].ydist, this["bullet4_" + bullet4number].xdist);
this["bullet4_" + bullet4number]._alpha = 50;
bullets4.push(bullet4number);
bullet4number++;
if (sound_mute == false) {
shoot.setVolume(shoot_sound);
shoot.start(0, 1);
}
}
i++;
}
}
function tower5_() {
i = 1;
while (i <= tower_amount_5) {
if (this["tower_5_" + i]._alpha < 50) {
this["tower_5_" + i]._alpha++;
}
this["tower_5_" + i].timer--;
if (this["tower_5_" + i].timer < 0) {
this["tower_5_" + i].timer = tower_5_timer;
attachMovie("bullet5_", "bullet5_" + bullet5number, getNextHighestDepth(), {_x:this["tower_5_" + i]._x, _y:this["tower_5_" + i]._y});
this["bullet5_" + bullet5number].xdist = this["bullet5_" + bullet5number]._x - player._x;
this["bullet5_" + bullet5number].ydist = this["bullet5_" + bullet5number]._y - player._y;
this["bullet5_" + bullet5number].dir = Math.atan2(this["bullet5_" + bullet5number].ydist, this["bullet5_" + bullet5number].xdist);
this["bullet5_" + bullet5number].explosiontime = bullet_5_explo;
this["bullet5_" + bullet5number]._alpha = 50;
bullets5.push(bullet5number);
bullet5number++;
if (sound_mute == false) {
shoot.setVolume(shoot_sound);
shoot.start(0, 1);
}
}
i++;
}
}
function bullet1_() {
for (i in bullets1) {
if (this["bullet1_" + bullets1[i]]._alpha >= 50) {
if ((gametype == "extreme") || (gametype == "hard")) {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x - ((bullet1_speed * Math.cos(this["bullet1_" + bullets1[i]].dir)) * 2);
this["bullet1_" + bullets1[i]]._y = this["bullet1_" + bullets1[i]]._y - ((bullet1_speed * Math.sin(this["bullet1_" + bullets1[i]].dir)) * 2);
} else {
this["bullet1_" + bullets1[i]]._x = this["bullet1_" + bullets1[i]]._x - (bullet1_speed * Math.cos(this["bullet1_" + bullets1[i]].dir));
this["bullet1_" + bullets1[i]]._y = this["bullet1_" + bullets1[i]]._y - (bullet1_speed * Math.sin(this["bullet1_" + bullets1[i]].dir));
}
if ((((this["bullet1_" + bullets1[i]]._x > 550) || (this["bullet1_" + bullets1[i]]._x < 0)) || (this["bullet1_" + bullets1[i]]._y < 20)) || (this["bullet1_" + bullets1[i]]._y > 380)) {
removeMovieClip(this["bullet1_" + bullets1[i]]);
bullets1.splice(i, 1);
}
if (this["bullet1_" + bullets1[i]].hitTest(player._x, player._y)) {
if (sound_mute == false) {
hit_sound.setVolume(hit_vol);
hit_sound.start(0, 1);
}
removeMovieClip(this["bullet1_" + bullets1[i]]);
bullets1.splice(i, 1);
lives--;
}
}
}
}
function bullet2_() {
if (bullets2.length > 10) {
removeMovieClip(this["bullet2_" + bullets2[1]]);
bullets2.splice(1, 1);
}
for (i in bullets2) {
if (this["bullet2_" + bullets2[i]]._alpha >= 50) {
this["bullet2_" + bullets2[i]].xdist = this["bullet2_" + bullets2[i]]._x - player._x;
this["bullet2_" + bullets2[i]].ydist = this["bullet2_" + bullets2[i]]._y - player._y;
this["bullet2_" + bullets2[i]].dir = Math.atan2(this["bullet2_" + bullets2[i]].ydist, this["bullet2_" + bullets2[i]].xdist);
this["bullet2_" + bullets2[i]]._x = this["bullet2_" + bullets2[i]]._x - (bullet2_speed * Math.cos(this["bullet2_" + bullets2[i]].dir));
this["bullet2_" + bullets2[i]]._y = this["bullet2_" + bullets2[i]]._y - (bullet2_speed * Math.sin(this["bullet2_" + bullets2[i]].dir));
if ((((this["bullet2_" + bullets2[i]]._x > 550) || (this["bullet2_" + bullets2[i]]._x < 0)) || (this["bullet2_" + bullets2[i]]._y < 20)) || (this["bullet2_" + bullets2[i]]._y > 380)) {
removeMovieClip(this["bullet2_" + bullets2[i]]);
bullets2.splice(i, 1);
}
if (this["bullet2_" + bullets2[i]].hitTest(player._x, player._y)) {
if (sound_mute == false) {
hit_sound.setVolume(hit_vol);
hit_sound.start(0, 1);
}
removeMovieClip(this["bullet2_" + bullets2[i]]);
bullets2.splice(i, 1);
lives--;
}
}
}
}
function bullet3_() {
for (i in bullets3) {
if (this["bullet3_" + bullets3[i]]._alpha >= 50) {
if ((level == 15) || (level == 21)) {
if (this["bullet3_" + bullets3[i]].mov_dir == 1) {
this["bullet3_" + bullets3[i]].mov_dir = 4;
}
if (this["bullet3_" + bullets3[i]].mov_dir == 2) {
this["bullet3_" + bullets3[i]].mov_dir = 3;
}
}
if ((gametype == "extreme") || (gametype == "hard")) {
if (this["bullet3_" + bullets3[i]].mov_dir == 1) {
this["bullet3_" + bullets3[i]]._x = this["bullet3_" + bullets3[i]]._x + (bullet3_speed * 2);
}
if (this["bullet3_" + bullets3[i]].mov_dir == 2) {
this["bullet3_" + bullets3[i]]._x = this["bullet3_" + bullets3[i]]._x - (bullet3_speed * 2);
}
if (this["bullet3_" + bullets3[i]].mov_dir == 3) {
this["bullet3_" + bullets3[i]]._y = this["bullet3_" + bullets3[i]]._y + (bullet3_speed * 2);
}
if (this["bullet3_" + bullets3[i]].mov_dir == 4) {
this["bullet3_" + bullets3[i]]._y = this["bullet3_" + bullets3[i]]._y - (bullet3_speed * 2);
}
} else {
if (this["bullet3_" + bullets3[i]].mov_dir == 1) {
this["bullet3_" + bullets3[i]]._x = this["bullet3_" + bullets3[i]]._x + bullet3_speed;
}
if (this["bullet3_" + bullets3[i]].mov_dir == 2) {
this["bullet3_" + bullets3[i]]._x = this["bullet3_" + bullets3[i]]._x - bullet3_speed;
}
if (this["bullet3_" + bullets3[i]].mov_dir == 3) {
this["bullet3_" + bullets3[i]]._y = this["bullet3_" + bullets3[i]]._y + bullet3_speed;
}
if (this["bullet3_" + bullets3[i]].mov_dir == 4) {
this["bullet3_" + bullets3[i]]._y = this["bullet3_" + bullets3[i]]._y - bullet3_speed;
}
}
if ((((this["bullet3_" + bullets3[i]]._x > 550) || (this["bullet3_" + bullets3[i]]._x < 0)) || (this["bullet3_" + bullets3[i]]._y < 20)) || (this["bullet3_" + bullets3[i]]._y > 380)) {
removeMovieClip(this["bullet3_" + bullets3[i]]);
bullets3.splice(i, 1);
}
if (this["bullet3_" + bullets3[i]].hitTest(player._x, player._y)) {
if (sound_mute == false) {
hit_sound.setVolume(hit_vol);
hit_sound.start(0, 1);
}
removeMovieClip(this["bullet3_" + bullets3[i]]);
bullets3.splice(i, 1);
lives--;
}
}
}
}
function bullet4_() {
for (i in bullets4) {
if (this["bullet4_" + bullets4[i]]._alpha >= 50) {
if ((gametype == "extreme") || (gametype == "hard")) {
this["bullet4_" + bullets4[i]]._x = this["bullet4_" + bullets4[i]]._x - ((2 * bullet4_speed) * Math.cos(this["bullet4_" + bullets4[i]].dir));
this["bullet4_" + bullets4[i]]._y = this["bullet4_" + bullets4[i]]._y - ((2 * bullet4_speed) * Math.sin(this["bullet4_" + bullets4[i]].dir));
} else {
this["bullet4_" + bullets4[i]]._x = this["bullet4_" + bullets4[i]]._x - (bullet4_speed * Math.cos(this["bullet4_" + bullets4[i]].dir));
this["bullet4_" + bullets4[i]]._y = this["bullet4_" + bullets4[i]]._y - (bullet4_speed * Math.sin(this["bullet4_" + bullets4[i]].dir));
}
if ((((this["bullet4_" + bullets4[i]]._x > 550) || (this["bullet4_" + bullets4[i]]._x < 0)) || (this["bullet4_" + bullets4[i]]._y < 20)) || (this["bullet4_" + bullets4[i]]._y > 380)) {
removeMovieClip(this["bullet4_" + bullets4[i]]);
bullets4.splice(i, 1);
}
if (this["bullet4_" + bullets4[i]].hitTest(player._x, player._y)) {
removeMovieClip(this["bullet4_" + bullets4[i]]);
bullets4.splice(i, 1);
top_speed = top_speed * 0.7;
}
}
}
}
function bullet5_() {
for (i in bullets5) {
if (this["bullet5_" + bullets5[i]]._alpha >= 50) {
this["bullet5_" + bullets5[i]].explosiontime--;
if (this["bullet5_" + bullets5[i]].explosiontime < 0) {
attachMovie("bullet3_", "bullet3_" + bullet3number, getNextHighestDepth(), {_x:this["bullet5_" + bullets5[i]]._x, _y:this["bullet5_" + bullets5[i]]._y});
this["bullet3_" + bullet3number].mov_dir = 1;
this["bullet3_" + bullet3number]._alpha = 50;
bullets3.push(bullet3number);
bullet3number++;
attachMovie("bullet3_", "bullet3_" + bullet3number, getNextHighestDepth(), {_x:this["bullet5_" + bullets5[i]]._x, _y:this["bullet5_" + bullets5[i]]._y});
this["bullet3_" + bullet3number].mov_dir = 2;
this["bullet3_" + bullet3number]._alpha = 50;
bullets3.push(bullet3number);
bullet3number++;
attachMovie("bullet3_", "bullet3_" + bullet3number, getNextHighestDepth(), {_x:this["bullet5_" + bullets5[i]]._x, _y:this["bullet5_" + bullets5[i]]._y});
this["bullet3_" + bullet3number].mov_dir = 3;
this["bullet3_" + bullet3number]._alpha = 50;
bullets3.push(bullet3number);
bullet3number++;
attachMovie("bullet3_", "bullet3_" + bullet3number, getNextHighestDepth(), {_x:this["bullet5_" + bullets5[i]]._x, _y:this["bullet5_" + bullets5[i]]._y});
this["bullet3_" + bullet3number].mov_dir = 4;
this["bullet3_" + bullet3number]._alpha = 50;
bullets3.push(bullet3number);
bullet3number++;
removeMovieClip(this["bullet5_" + bullets5[i]]);
bullets5.splice(i, 1);
}
if ((gametype == "extreme") || (gametype == "hard")) {
this["bullet5_" + bullets5[i]]._x = this["bullet5_" + bullets5[i]]._x - ((2 * bullet5_speed) * Math.cos(this["bullet5_" + bullets5[i]].dir));
this["bullet5_" + bullets5[i]]._y = this["bullet5_" + bullets5[i]]._y - ((2 * bullet5_speed) * Math.sin(this["bullet5_" + bullets5[i]].dir));
} else {
this["bullet5_" + bullets5[i]]._x = this["bullet5_" + bullets5[i]]._x - (bullet5_speed * Math.cos(this["bullet5_" + bullets5[i]].dir));
this["bullet5_" + bullets5[i]]._y = this["bullet5_" + bullets5[i]]._y - (bullet5_speed * Math.sin(this["bullet5_" + bullets5[i]].dir));
}
if ((((this["bullet5_" + bullets5[i]]._x > 550) || (this["bullet5_" + bullets5[i]]._x < 0)) || (this["bullet5_" + bullets5[i]]._y < 20)) || (this["bullet5_" + bullets5[i]]._y > 380)) {
removeMovieClip(this["bullet5_" + bullets5[i]]);
bullets5.splice(i, 1);
}
if (this["bullet5_" + bullets5[i]].hitTest(player._x, player._y)) {
if (sound_mute == false) {
hit_sound.setVolume(hit_vol);
hit_sound.start(0, 1);
}
removeMovieClip(this["bullet5_" + bullets5[i]]);
bullets5.splice(i, 1);
lives--;
}
}
}
}
function Ac() {
if (achievement_complete[r] != true) {
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
achievement_complete[r] = true;
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
A.data.achievement_complete = achievement_complete;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
}
function onEnterFrame() {
counter_totaltime++;
if (Key.isDown(80)) {
if (pdown == true) {
pdown = false;
if (pause2 == false) {
pausemenu._alpha = 100;
pause2 = true;
} else {
pausemenu._alpha = 0;
pause2 = false;
}
}
} else {
pdown = true;
}
if (pause2 == false) {
Ac();
if (death == false) {
gen_timer2 = Math.round(gen_timer / framerate);
if (gen_timer2 < 0) {
gen_timer2 = 0;
}
playermovement();
if (begintimer > 50) {
this["level" + level]();
bullet1_();
bullet2_();
bullet3_();
bullet4_();
bullet5_();
gen_timer--;
if (gen_timer < 0) {
timer2++;
i2 = 1;
while (i2 <= 5) {
for (i3 in this["bullets" + i2]) {
curvar = this["bullets" + [i2]][i3];
this[(("bullet" + i2) + "_") + curvar]._alpha = this[(("bullet" + i2) + "_") + curvar]._alpha - 10;
if (this[(("bullet" + i2) + "_") + curvar]._alpha < 5) {
removeMovieClip(this[(("bullet" + i2) + "_") + curvar]);
this["bullets" + i2].splice(i3, 1);
}
}
i = 0;
while (i <= 50) {
this[(("tower_" + i2) + "_") + i]._alpha = this[(("tower_" + i2) + "_") + i]._alpha - 5;
if (this[(("tower_" + i2) + "_") + i]._alpha < 5) {
removeMovieClip(this[(("tower_" + i2) + "_") + i]);
}
i++;
}
i2++;
}
if (play_survive == true) {
r = 7;
total_level++;
A.data.total_level = total_level;
if (total_level > 10) {
r = 15;
}
if (total_level > 35) {
r = 16;
}
if (total_level > 70) {
r = 17;
}
Ac();
money_amount = money_amount + ((1 * level) * multiplier);
A.data.money_amount = money_amount;
money2 = "$" + money_amount;
top_speed = 5;
Comment = commentaar[level + 1];
if (gametype == "easy") {
lives = 5;
easy_level = level + 1;
A.data.easy_level = easy_level;
}
if (gametype == "medium") {
lives = 1;
medium_level = level + 1;
A.data.medium_level = medium_level;
}
if (gametype == "hard") {
lives = 1;
hard_level = level + 1;
A.data.hard_level = hard_level;
}
play_survive = false;
}
if (level > 34) {
if (timer2 > 0) {
removeMovieClip(player);
_root.loop1.setVolume(music1);
_root.loop2.setVolume(0);
removeMovieClip(pausemenu);
removeMovieClip(achievement);
i2 = 1;
while (i2 <= 5) {
for (i3 in this["bullets" + i2]) {
curvar = this["bullets" + [i2]][i3];
removeMovieClip(this[(("bullet" + i2) + "_") + curvar]);
this["bullets" + i2].splice(i3, 1);
}
i = 0;
while (i <= 50) {
removeMovieClip(this[(("tower_" + i2) + "_") + i]);
i++;
}
i2++;
}
gotoAndStop (10);
}
}
if (timer2 > 130) {
play_survive = true;
level++;
timer2 = 0;
create = true;
}
}
if (lives <= 0) {
_root.loop1.setVolume(music1);
_root.loop2.setVolume(0);
death = true;
removeMovieClip(pausemenu);
removeMovieClip(achievement);
removeMovieClip(player);
i2 = 1;
while (i2 <= 5) {
for (i3 in this["bullets" + i2]) {
curvar = this["bullets" + [i2]][i3];
removeMovieClip(this[(("bullet" + i2) + "_") + curvar]);
this["bullets" + i2].splice(i3, 1);
}
i = 0;
while (i <= 50) {
removeMovieClip(this[(("tower_" + i2) + "_") + i]);
i++;
}
i2++;
}
gotoAndStop (9);
}
} else {
begintimer++;
if (begintimer < 3) {
Comment = commentaar[level];
}
}
}
}
}
stop();
A.data.counter_totaltime = counter_totaltime;
pause2 = false;
var i = 0;
framerate = 40;
gen_timer = 0;
room = 1;
money2 = "$" + money_amount;
removeMovieClip(achievement);
death = false;
if (gametype == "easy") {
multiplier = 1;
}
if (gametype == "medium") {
multiplier = 2;
}
if (gametype == "hard") {
multiplier = 5;
}
if (gametype == "extreme") {
multiplier = 10;
}
top_speed = 5;
acceleration = 1;
friction = 0.98;
player_x_speed = 0;
player_y_speed = 0;
bullet_5_explo = 40;
create = true;
timer2 = 0;
Comment = "";
play_survive = true;
bullets1 = new Array();
bullets2 = new Array();
bullets3 = new Array();
bullets4 = new Array();
bullets5 = new Array();
bullet1number = 0;
bullet2number = 0;
bullet3number = 0;
bullet4number = 0;
bullet5number = 0;
tower_1_timer = 40;
tower_2_timer = 40;
tower_3_timer = 40;
tower_4_timer = 40;
tower_5_timer = 40;
bullet1_speed = 2;
bullet2_speed = 1;
bullet3_speed = 1;
bullet4_speed = 1;
bullet5_speed = 1;
commentaar = new Array();
commentaar[1] = "Try not to hit anything, it might hurt you. Arrow keys to move!";
commentaar[2] = "It seems you survived the first test. Are you ready for more?";
commentaar[3] = "Maybe faster bullets will kill you!";
commentaar[4] = "Divide and conquer!";
commentaar[5] = "MachineGun, Getting nervous already?";
commentaar[6] = "You're never getting out!";
commentaar[7] = "Did you know every year 99% of the testsubjects die in here? I bet you didn't.";
commentaar[8] = "What if you were slow? No seriously, you are slow now!";
commentaar[9] = "Time for something new!";
commentaar[10] = "Lets pump it up.";
commentaar[11] = "There is no more escape!";
commentaar[12] = "Santa brought you presents: it's Double fire power, On you.";
commentaar[13] = "Don't you ever feel like the walls are coming at you?";
commentaar[14] = "Or bombs coming at you... Whatever...";
commentaar[15] = "The bomb labyrint! sounds like a fun game. Oh no wait.. it's still horrifying.";
commentaar[16] = "Someone is following you.";
commentaar[17] = "Maybe they are kittens and you can pet them? or not.. probably not..";
commentaar[18] = "You can't hide anymore.. from those cute atomic kittens.";
commentaar[19] = "RUUUUN!";
commentaar[20] = "The ultimate divider.. a wall of explosives";
commentaar[21] = "You get to play bomblabyrint again.. now with kittens";
commentaar[22] = "Did they kill you? No they didn't. They just slowed you down. Were you scared?";
commentaar[23] = "Please hit the bombs so this is all over..";
commentaar[24] = "Even when i beg you don't listen? IT IS ON NOW!";
commentaar[25] = "My ultimate firepower is here!";
commentaar[26] = "Quadruple ultimate fire power... And a kittenbomb";
commentaar[27] = "Superdruple ultimate firepower!";
commentaar[28] = "There is no way you can outrun them all.";
commentaar[29] = "Avoiding is no longer an option";
commentaar[30] = "Goodbye my friend. you will be dead after this level.";
commentaar[31] = "Ok you survived, no big deal, more bombs is always the answer! ";
commentaar[32] = "You were supposed to be dead by now....";
commentaar[33] = "No-one will ever read this comment, i'm sure of it!";
commentaar[34] = "Double labyrint!";
commentaar[35] = "Kamikaze!!";
Comment = commentaar[level];
attachMovie("player", "player", getNextHighestDepth(), {_x:275, _y:200});
begintimer = 0;
attachMovie("pausemenu", "pausemenu", getNextHighestDepth());
pausemenu._alpha = 0;
Frame 9
function onEnterFrame() {
if (Key.isDown(32)) {
_root.loop1.setVolume(0);
_root.loop2.setVolume(music2);
gotoAndStop (8);
if (gametype == "easy") {
lives = 5;
}
if (gametype == "medium") {
lives = 1;
}
if (gametype == "hard") {
lives = 1;
}
if (gametype == "extreme") {
lives = 1;
level = 1;
}
}
}
STbut.onRelease = function () {
getURL ("http://www.styxtwo.com", "_blank");
};
GBbut.onRelease = function () {
getURL ("http://gameboltz.com/home.php", "_blank");
};
again_button.onRelease = function () {
_root.loop1.setVolume(0);
_root.loop2.setVolume(music2);
gotoAndStop (8);
if (gametype == "easy") {
lives = 5;
}
if (gametype == "medium") {
lives = 1;
}
if (gametype == "hard") {
lives = 1;
}
if (gametype == "extreme") {
lives = 1;
level = 1;
}
};
menu_button.onRelease = function () {
gotoAndStop (7);
};
A.data.counter_totaltime = counter_totaltime;
Frame 10
function Ac() {
if (achievement_complete[r] != true) {
achievement_complete[r] = true;
if (sound_mute == false) {
ac_sound.setVolume(ac_vol);
ac_sound.start(0, 1);
}
attachMovie("achievement", "achievement", getNextHighestDepth(), {_x:400, _y:250, _alpha:0, width:ac_width, height:ac_width});
achievement.gotoAndStop(r);
a_timer = ac_start_timer;
up = true;
A.data.achievement_complete = achievement_complete;
}
if (up == true) {
achievement._alpha = achievement._alpha + (ac_dim * ac_dim);
if (achievement._alpha > 99) {
up = false;
}
} else if (achievement._alpha > 5) {
a_timer--;
if (a_timer < 0) {
achievement._alpha = achievement._alpha - ac_dim;
}
} else {
removeMovieClip(achievement);
}
}
function onEnterFrame() {
if (gametype == "easy") {
r = 18;
}
if (gametype == "medium") {
r = 19;
}
if (gametype == "hard") {
r = 20;
}
if (gametype == "extreme") {
r = 21;
}
Ac();
counter_totaltime++;
if (back_button.hitTest(_xmouse, _ymouse, true)) {
startfade = true;
}
if (startfade == true) {
back_button._alpha = back_button._alpha - 1;
}
}
A.data.counter_totaltime = counter_totaltime;
back_button._alpha = 100;
startfade = false;
play_button.onRelease = function () {
gotoAndStop (7);
};
Frame 11
function startGame(levelx) {
level = levelx;
i = 1;
while (i <= i_level) {
removeMovieClip(_root["level_button" + i]);
i++;
}
gotoAndStop (8);
}
i_level = 1;
width = 5;
height = 8;
menu_button.onRelease = function () {
gotoAndStop (7);
i = 1;
while (i <= i_level) {
removeMovieClip(_root["level_button" + i]);
i++;
}
};
y = 0;
while (y < width) {
x = 0;
while (x < height) {
attachMovie("level_button", "level_button" + i_level, getNextHighestDepth(), {_x:(x * 60) + 20, _y:(y * 60) + 40, _alpha:20});
this["level_button" + i_level].buttonnumber = i_level;
if (gametype == "easy") {
if (i_level <= easy_level) {
this["level_button" + i_level]._alpha = 100;
}
}
if (gametype == "medium") {
if (i_level <= medium_level) {
this["level_button" + i_level]._alpha = 100;
}
}
if (gametype == "hard") {
if (i_level <= hard_level) {
this["level_button" + i_level]._alpha = 100;
}
}
i_level++;
if (i_level > 35) {
break;
}
x++;
}
y++;
}
i_level = 35;
i = 1;
while (i <= i_level) {
if (this["level_button" + i]._alpha > 80) {
_root["level_button" + i].i = i;
this["level_button" + i].onRelease = function () {
_root.loop1.setVolume(0);
_root.loop2.setVolume(music2);
startGame(this.i);
};
}
i++;
}
Frame 12
function remove_all() {
s = 1;
i2 = 1;
while (i2 <= 3) {
i = 1;
while (i <= 7) {
removeMovieClip(this["ac" + s]);
s++;
i++;
}
i2++;
}
}
function onEnterFrame() {
counter_totaltime++;
m = 1;
hit_no_ac = true;
i2 = 1;
while (i2 <= 3) {
i = 1;
while (i <= 8) {
if (this["ac" + m].hitTest(_xmouse, _ymouse, true)) {
if (achievement_complete[m] == true) {
ac_comment2 = ac_comment[m];
} else {
ac_comment2 = "You have not unlocked this achievement yet.";
}
hit_no_ac = false;
}
m++;
i++;
}
i2++;
}
if (hit_no_ac == true) {
ac_comment2 = "";
}
}
p = 1;
i2 = 1;
while (i2 <= 5) {
i = 1;
while (i <= 5) {
if (p < 21) {
attachMovie("ac_screen", "ac" + p, getNextHighestDepth(), {_x:20 + (85 * (i - 1)), _y:35 + (80 * (i2 - 1)), _width:75, _height:75, _alpha:20});
if (achievement_complete[p] == true) {
this["ac" + p]._alpha = 100;
this["ac" + p].gotoAndStop(p);
} else {
this["ac" + p].gotoAndStop(22);
}
p++;
}
if (p == 21) {
attachMovie("ac_screen", "ac" + p, getNextHighestDepth(), {_x:445, _y:115, _width:75, _height:75, _alpha:20});
if (achievement_complete[p] == true) {
this["ac" + p]._alpha = 100;
this["ac" + p].gotoAndStop(p);
} else {
this["ac" + p].gotoAndStop(22);
}
p++;
}
i++;
}
i2++;
}
menu_button.onRelease = function () {
gotoAndStop (7);
remove_all();
};
ac_comment = new Array();
ac_comment[1] = "Welcome to the game, you did nothing yet!";
ac_comment[2] = "Met your first Green tower.";
ac_comment[3] = "Met your first Yellow tower.";
ac_comment[4] = "Met your first Blue tower.";
ac_comment[5] = "Met your first Purple tower.";
ac_comment[6] = "Met your first Red tower.";
ac_comment[7] = "Complete your first level";
ac_comment[8] = "Your first upgrade.";
ac_comment[9] = "Play for 5 minutes.";
ac_comment[10] = "Play for 15 minutes.";
ac_comment[11] = "Play for 45 minutes.";
ac_comment[12] = "Upgrade speed to the maximum.";
ac_comment[13] = "Upgrade friction to the maximum.";
ac_comment[14] = "Upgrade acceleration to the maximum.";
ac_comment[15] = "10 levels played.";
ac_comment[16] = "35 levels played.";
ac_comment[17] = "70 levels played.";
ac_comment[18] = "Easy completed.";
ac_comment[19] = "Medium completed.";
ac_comment[20] = "Hard completed.";
ac_comment[21] = "Extreme completed.";
Symbol 6 MovieClip [survive_text] Frame 120
stop();
Symbol 67 MovieClip [upgradester] Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 100
stop();
_parent.gotoAndPlay("shock");
Symbol 133 MovieClip Frame 62
stop();
botak.play();
Symbol 133 MovieClip Frame 234
_parent.play();
Symbol 151 MovieClip Frame 1
this._visible = false;
_parent.stop();
stxy.onRelease = function () {
getURL ("http://www.styxtwo.com", "_blank");
};
Symbol 151 MovieClip Frame 2
this._visible = true;
Symbol 151 MovieClip Frame 150
_parent.play();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();