Frame 1
stop();
Instance of Symbol 235 MovieClip "vars" in Frame 1
onClipEvent (load) {
_root.archer_power = 1;
_root.voorraad = 250;
_root.nuke_teller = 0;
_root.fire_storms = 0;
_root.nukes = 0;
_root.firestorm = 0;
_root.hp_pion = 1;
_root.hp_loper = 3;
_root.hp_toren = 10;
_root.hp_elite = 5;
_root.hp_tank = 10;
_root.pion_damage = 1;
_root.loper_damage = 2;
_root.toren_damage = 5;
_root.elite_damage = 3;
_root.attack = 1;
_root.spawned = 0;
_root.level = 1;
_root.kills = 0;
_root.muur = 100;
_root.damage = 0;
_root.muur_over = _root.muur - _root.damage;
_root.cash = 0;
_root.gracht_soort = 0;
_root.archers = 0;
_root.level = 1;
_root.highscore = 0;
_root.clicks = 0;
}
onClipEvent (enterFrame) {
_root.muur_over = _root.muur - (_root.damage / (_root.muur / 100));
_root.muur_score = int(_root.muur_over);
_root.muur_over_balk._width = _root.muur_over / (_root.muur / 100);
if (_root.muur_over <= 0) {
_root.levelscherm.gotoAndStop("game_over");
}
}
onClipEvent (mouseDown) {
_root.clicks = _root.clicks + 1;
}
Frame 2
if (_root.level < 21) {
keuze = random(_root.level) + 1;
} else {
keuze = random(20) + 1;
}
if (keuze == 20) {
duplicateMovieClip (_root.dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 19) {
duplicateMovieClip (_root.dummy_elite_2, "elite_2" + i, i);
setProperty("elite_2" + i, _x , -50);
setProperty("elite_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 4;
}
if (keuze == 18) {
duplicateMovieClip (_root.dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 17) {
duplicateMovieClip (_root.dummy_tank, "tank" + i, i);
setProperty("tank" + i, _x , -50);
setProperty("tank" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 16) {
duplicateMovieClip (_root.dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 15) {
duplicateMovieClip (_root.dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 14) {
duplicateMovieClip (_root.dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 13) {
duplicateMovieClip (_root.dummy_toren, "toren" + i, i);
setProperty("toren" + i, _x , -50);
setProperty("toren" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 12) {
duplicateMovieClip (_root.dummy_toren, "toren" + i, i);
setProperty("toren" + i, _x , -50);
setProperty("toren" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 11) {
duplicateMovieClip (_root.dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 10) {
duplicateMovieClip (_root.dummy_loper_2, "loper_2" + i, i);
setProperty("loper_2" + i, _x , -50);
setProperty("loper_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 3;
}
if (keuze == 9) {
duplicateMovieClip (_root.dummy_loper_2, "loper_2" + i, i);
setProperty("loper_2" + i, _x , -50);
setProperty("loper_2" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 3;
}
if (keuze == 8) {
duplicateMovieClip (_root.dummy_pion_2, "pion_2" + i, i);
setProperty("pion_2" + i, _x , -50);
setProperty("pion_2" + i, _y , 100 + (25 * random(4)));
i++;
keuze = 0;
_root.spawned = _root.spawned + 10;
}
if (keuze == 7) {
duplicateMovieClip (_root.dummy_pion_2, "pion_2" + i, i);
setProperty("pion_2" + i, _x , -50);
setProperty("pion_2" + i, _y , 100 + (25 * random(4)));
i++;
keuze = 0;
_root.spawned = _root.spawned + 10;
}
if (keuze == 6) {
duplicateMovieClip (_root.dummy_pion_2, "pion_2" + i, i);
setProperty("pion_2" + i, _x , -50);
setProperty("pion_2" + i, _y , 100 + (25 * random(4)));
i++;
keuze = 0;
_root.spawned = _root.spawned + 10;
}
if (keuze == 4) {
duplicateMovieClip (_root.dummy_loper, "loper" + i, i);
setProperty("loper" + i, _x , -50);
setProperty("loper" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 3) {
duplicateMovieClip (_root.dummy_loper, "loper" + i, i);
setProperty("loper" + i, _x , -50);
setProperty("loper" + i, _y , 50 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze > 0) {
duplicateMovieClip (_root.dummy_pion, "pion" + i, i);
setProperty("pion" + i, _x , -50);
setProperty("pion" + i, _y , 100 + (25 * random(4)));
i++;
_root.spawned = _root.spawned + 5;
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
_root.gotoAndPlay(2);
Symbol 11 MovieClip Frame 3
_root.vars.max_spawned();
Symbol 11 MovieClip Frame 10
if (_root.level > 25) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 20
if (_root.level > 20) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 30
if (_root.level > 15) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 40
if (_root.level > 10) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 50
if (_root.level > 5) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 60
gotoAndPlay (2);
Symbol 16 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 16 MovieClip Frame 13
gotoAndPlay (2);
Symbol 18 Button
on (press) {
_root.vars.hit(this, "pion");
}
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._y > 0) {
if (_parent._x > 400) {
_parent._x = 400;
_root.damage = _root.damage + _root.pion_damage;
}
}
}
Symbol 24 MovieClip Frame 2
_root.cash = _root.cash + 25;
Symbol 24 MovieClip Frame 6
_root.highscore = _root.highscore + 25;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 24 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Symbol 31 MovieClip Frame 1
starter = random(6) + 2;
gotoAndPlay(starter);
Symbol 31 MovieClip Frame 9
gotoAndPlay (2);
Symbol 33 Button
on (press) {
_root.vars.hit(this, "loper");
}
Symbol 34 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 34 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._y > 0) {
if (_parent._x > 450) {
_parent._x = 450;
_root.damage = _root.damage + _root.loper_damage;
}
if (_parent._x > 300) {
if (_root.archers > 0) {
keuze = random(20);
if (keuze == 1) {
_parent.hp = _parent.hp - (_root.archers * 0.01);
if (_parent.hp < 0) {
_parent.gotoAndPlay(3);
}
}
}
}
}
}
Symbol 34 MovieClip Frame 2
_root.cash = _root.cash + 50;
Symbol 34 MovieClip Frame 6
_root.highscore = _root.highscore + 50;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 34 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 34 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 34 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Symbol 41 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 41 MovieClip Frame 13
gotoAndPlay (2);
Symbol 43 Button
on (press) {
_root.vars.hit(this, "toren");
}
Symbol 44 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._y > 0) {
if (_parent._x > 450) {
_parent._x = 450;
_root.damage = _root.damage + _root.toren_damage;
}
if (_parent._x > 250) {
if (_root.archers > 0) {
keuze = random(20);
if (keuze == 1) {
_parent.hp = _parent.hp - (_root.archers * 0.01);
if (_parent.hp < 0) {
_parent.gotoAndPlay(3);
}
}
}
}
}
}
Symbol 44 MovieClip Frame 2
_root.cash = _root.cash + 100;
Symbol 44 MovieClip Frame 6
_root.highscore = _root.highscore + 100;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 44 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 44 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Symbol 51 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 51 MovieClip Frame 13
gotoAndPlay (2);
Symbol 52 Button
on (press) {
_root.vars.hit(this, "elite");
}
Symbol 53 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._y > 0) {
if (_parent._x > 460) {
_parent._x = 460;
_root.damage = _root.damage + _root.pion_damage;
}
}
}
Symbol 53 MovieClip Frame 2
_root.cash = _root.cash + 75;
Symbol 53 MovieClip Frame 6
_root.highscore = _root.highscore + 75;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 53 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - _root.archer_power;
}
}
}
if (hp <= 0) {
hp = 1;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Symbol 60 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 60 MovieClip Frame 13
gotoAndPlay (2);
Symbol 61 Button
on (press) {
_root.vars.hit(this, "tank");
}
Symbol 62 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._y > 0) {
if (_parent._x > 450) {
_parent._x = 450;
_root.damage = _root.damage + _root.toren_damage;
}
}
}
Symbol 62 MovieClip Frame 2
_root.cash = _root.cash + 100;
Symbol 62 MovieClip Frame 6
_root.highscore = _root.highscore + 100;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Symbol 63 MovieClip Frame 1
stop();
Instance of Symbol 62 MovieClip in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_tank;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this.gotoAndPlay(3);
}
}
}
}
Symbol 65 MovieClip Frame 1
if (_root.archers > 0) {
teller_archer = teller_archer + 1;
if (teller_archer > 20) {
_root.archer_kills = _root.archers;
teller_archer = 0;
trace("to");
}
}
if (_root.archers > 0) {
if (_root.voorraad > 0) {
_root.reload.gotoAndStop(2);
_root.voorraad = _root.voorraad - (0.01 * _root.archers);
_root.voorraad_balk._height = _root.voorraad;
} else {
_root.voorraad = 0;
_root.reload.gotoAndStop(3);
}
} else {
_root.voorraad_balk._height = 0;
}
Symbol 70 Button
on (press) {
if (_root.cash >= 3000) {
_root.cash = _root.cash - 3000;
_root.gracht_soort = 1;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Make a trench to slow down the enemy.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 76 Button
on (press) {
if (_root.cash >= 5000) {
_root.cash = _root.cash - 5000;
_root.gracht_soort = 2;
gotoAndStop (3);
}
}
on (rollOver) {
_root.tip = "Upgrade the trench.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 81 Button
on (press) {
if (_root.cash >= 7000) {
_root.cash = _root.cash - 7000;
_root.gracht_soort = 3;
gotoAndStop (4);
}
}
on (rollOver) {
_root.tip = "Fill the trench with water.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 93 Button
on (press) {
if (_root.cash >= 5000) {
_root.cash = _root.cash - 5000;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates archers that defent your castle.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 109 Button
on (press) {
if (_root.cash >= 500) {
_root.cash = _root.cash - 500;
_root.archers = _root.archers + 1;
_root.tip = "";
gotoAndPlay (3);
}
if (_root.archers > 0) {
pijl_schieter.gotoAndStop(2);
}
if (_root.archers > 5) {
pijl_schieter.gotoAndStop(3);
}
if (_root.archers > 10) {
pijl_schieter.gotoAndStop(4);
}
if (_root.archers > 25) {
pijl_schieter.gotoAndStop(5);
}
if (_root.archers > 50) {
pijl_schieter.gotoAndStop(6);
}
if (_root.archers > 100) {
pijl_schieter.gotoAndStop(7);
}
}
on (rollOver) {
_root.tip = "Create a archer.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
Symbol 117 MovieClip Frame 300
gotoAndStop (2);
Symbol 121 Button
on (press) {
if (_root.cash >= 2000) {
_root.cash = _root.cash - 2000;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates a wall workshop.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 129 Button
on (press) {
if (_root.cash >= 300) {
_root.cash = _root.cash - 300;
_root.muur = _root.muur + 50;
_root.tip = "";
gotoAndPlay (3);
}
}
on (rollOver) {
_root.tip = "Reinforce your wall";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 200
gotoAndStop (2);
Symbol 136 Button
on (press) {
if (_root.cash >= 1000) {
_root.cash = _root.cash - 1000;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates a wall workshop.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 139 Button
on (press) {
if (_root.damage != 0) {
if (_root.cash >= 150) {
_root.cash = _root.cash - 150;
if (_root.damage < 51) {
_root.damage = 0;
} else {
_root.damage = _root.damage - 50;
}
_root.tip = "";
gotoAndPlay (3);
}
}
}
on (rollOver) {
_root.tip = "Repairs your wall";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 40
gotoAndStop (2);
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 4
_root.firestorm = 1;
Symbol 153 MovieClip Frame 11
_root.firestorm = 0;
Symbol 157 Button
on (press) {
_root.fire_storms = _root.fire_storms - 1;
if (_root.fire_storms == 0) {
gotoAndStop (2);
}
_root.fire_storm.gotoAndPlay(2);
}
Symbol 160 MovieClip Frame 1
if (_root.fire_storms == 0) {
gotoAndStop (2);
}
stop();
Symbol 161 Button
on (press) {
_root.nukes = _root.nukes - 1;
if (_root.nukes < 1) {
gotoAndStop (1);
}
_root.nuke_blast.gotoAndPlay(2);
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
if (_root.nukes == 0) {
gotoAndStop (1);
}
Symbol 168 Button
on (press) {
_root.voorraad = 250;
}
Symbol 171 Button
on (press) {
_root.archers = _root.archers_pauze;
_root.voorraad = 250;
if (_root.archers > 0) {
_root.archery.pijl_schieter.gotoAndStop(2);
}
if (_root.archers > 5) {
_root.archery.pijl_schieter.gotoAndStop(3);
}
if (_root.archers > 10) {
_root.archery.pijl_schieter.gotoAndStop(4);
}
if (_root.archers > 25) {
_root.archery.pijl_schieter.gotoAndStop(5);
}
if (_root.archers > 50) {
_root.archery.pijl_schieter.gotoAndStop(6);
}
if (_root.archers > 100) {
_root.archery.pijl_schieter.gotoAndStop(7);
}
gotoAndStop (2);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 3
_root.archers_pauze = _root.archers;
_root.archers = 0;
_root.archery.pijl_schieter.gotoAndStop(1);
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 3
/* no clip actions */
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 4
_root.nuke = 1;
Symbol 190 MovieClip Frame 26
_root.nuke = 0;
Symbol 198 Button
on (press) {
gotoAndPlay (2);
}
Symbol 224 Button
on (press) {
gotoAndPlay (54);
_root.counter.gotoAndPlay(1);
}
Symbol 225 Button
on (press) {
play();
}
Symbol 229 Button
on (release) {
getURL ("http://www.silverburst.com", "_blank");
}
Symbol 234 MovieClip Frame 1
mydate = new Date();
code = (((((((mydate.getMonth() + "") + mydate.getDate()) + "") + mydate.getHours()) + "") + mydate.getMinutes()) + "") + mydate.getSeconds();
loadVariablesNum ("http://www.silverburst.com/data/ma_counter.php?" add code, 0, "POST");
stop();
Symbol 234 MovieClip Frame 3
_root.counter.gotoAndStop(2);
_root.generator.gotoAndStop(1);
_root.fire_storms = _root.fire_storms + 1;
_root.nuke_teller = _root.nuke_teller + 0.2;
if (_root.nuke_teller == 1) {
_root.nuke_teller = 0;
_root.nukes = _root.nukes + 1;
}
if (_root.nukes > 0) {
_root.nuke_knop.gotoAndStop(2);
}
_root.fire.gotoAndStop(1);
Symbol 234 MovieClip Frame 9
amount = 1000;
i = 0;
while (amount > 0) {
unloadMovie ("_root.pion" + i);
unloadMovie ("_root.pion_2" + i);
unloadMovie ("_root.loper" + i);
unloadMovie ("_root.loper_2" + i);
unloadMovie ("_root.toren" + i);
unloadMovie ("_root.toren_2" + i);
unloadMovie ("_root.elite" + i);
unloadMovie ("_root.elite_2" + i);
unloadMovie ("_root.tank" + i);
i++;
amount--;
_root.doel = 0;
}
Symbol 234 MovieClip Frame 53
stop();
Symbol 234 MovieClip Frame 60
_root.vars.setup_level();
_root.generator.gotoAndPlay(1);
stop();
Symbol 234 MovieClip Frame 61
_root.clicks_eind = _root.clicks;
amount = 1000;
i = 0;
while (amount > 0) {
unloadMovie ("_root.pion" + i);
unloadMovie ("_root.pion_2" + i);
unloadMovie ("_root.loper" + i);
unloadMovie ("_root.loper_2" + i);
unloadMovie ("_root.toren" + i);
unloadMovie ("_root.toren_2" + i);
unloadMovie ("_root.elite" + i);
unloadMovie ("_root.elite_2" + i);
unloadMovie ("_root.tank" + i);
i++;
amount--;
_root.doel = 0;
}
Symbol 235 MovieClip Frame 1
function setup_level() {
_root.i = 0;
_root.kills = 0;
_root.spawned = 0;
_root.doel = 10 * _root.level;
}
function doel() {
if (_root.kills >= _root.doel) {
if (_root.kills == _root.spawned) {
_root.level = _root.level + 1;
_root.levelscherm.gotoAndPlay(3);
}
}
}
function max_spawned() {
if (_root.spawned >= _root.doel) {
_root.gotoAndStop(1);
_root.generator.gotoAndStop(1);
} else {
_root.gotoAndPlay(2);
}
}
function hit(dummy, soort) {
if (soort == "pion") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(2);
}
}
if (soort == "loper") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(2);
}
}
if (soort == "toren") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(2);
}
}
if (soort == "elite") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(2);
}
}
if (soort == "tank") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(2);
}
}
_root.vars.doel();
}
function move(dummy, soort) {
verschil = (70 + random(50)) / 100;
if (soort == "pion") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + (2 * verschil);
}
if (_root.gracht_soort == 1) {
if (dummy._x > 330) {
dummy._x = dummy._x + (1 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 330) {
dummy._x = dummy._x + (0.5 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 330) {
dummy._x = dummy._x + (0.5 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
}
if (soort == "loper") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + (4 * verschil);
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + (3 * verschil);
} else {
dummy._x = dummy._x + (4 * verschil);
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + (2 * verschil);
} else {
dummy._x = dummy._x + (4 * verschil);
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + (1 * verschil);
} else {
dummy._x = dummy._x + (4 * verschil);
}
}
}
if (soort == "toren") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + (1 * verschil);
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + (3 * verschil);
} else {
dummy._x = dummy._x + (1 * verschil);
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + (2 * verschil);
} else {
dummy._x = dummy._x + (1 * verschil);
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + (0.5 * verschil);
} else {
dummy._x = dummy._x + (1 * verschil);
}
}
}
if (soort == "elite") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + (2 * verschil);
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + (1 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + (0.5 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + (0.5 * verschil);
} else {
dummy._x = dummy._x + (2 * verschil);
}
}
}
}