Frame 1
stop();
Instance of Symbol 340 MovieClip "vars" in Frame 1
onClipEvent (load) {
_root.cash = 0;
_root.level = 1;
_root.archers = 0;
fscommand ("showmenu", "false");
_root.extra._visible = false;
_root.clean_up = 0;
_root.hell_wall = 0;
_root.archer_power = 0.5;
_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 = 7;
_root.hp_elite = 5;
_root.hp_tank = 7;
_root.hp_cat = 10;
_root.pion_damage = 0.1;
_root.loper_damage = 0.2;
_root.toren_damage = 1;
_root.elite_damage = 0.5;
_root.cat_damage = 25;
_root.attack = 1;
_root.spawned = 0;
_root.kills = 0;
_root.muur = 100;
_root.damage = 0;
_root.muur_over = _root.muur - _root.damage;
_root.gracht_soort = 0;
_root.highscore = 0;
_root.clicks = 0;
}
onClipEvent (mouseDown) {
_root.clicks = _root.clicks + 1;
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 25 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 27 Button
on (press) {
if (_root.cash >= 3000) {
_root.cash = _root.cash - 3000;
_root.gracht_soort = 2;
gotoAndStop (3);
}
}
on (rollOver) {
_root.tip = "Upgrade the trench.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 29 Button
on (press) {
if (_root.cash >= 3000) {
_root.cash = _root.cash - 3000;
_root.gracht_soort = 3;
gotoAndStop (4);
}
}
on (rollOver) {
_root.tip = "Upgrade the trench.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 4
_root.nuke = 1;
Symbol 40 MovieClip Frame 26
_root.nuke = 0;
Symbol 45 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 45 MovieClip Frame 13
gotoAndPlay (2);
Symbol 47 Button
on (press) {
_root.vars.hit(this, "pion");
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
_root.cash = _root.cash + 15;
Symbol 52 MovieClip Frame 6
_root.highscore = _root.highscore + 25;
_root.kills = _root.kills + 1;
_root.cash = _root.cash + 10;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 52 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "pion");
if (_parent._y > 0) {
if (this._x > 400) {
this._x = 400;
if (hp < 100) {
_root.damage = _root.damage + _root.pion_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 10;
this.gotoAndPlay(3);
}
}
}
}
Symbol 59 MovieClip Frame 1
starter = random(6) + 2;
gotoAndPlay(starter);
Symbol 59 MovieClip Frame 9
gotoAndPlay (2);
Symbol 61 Button
on (press) {
_root.vars.hit(this, "loper");
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
_root.cash = _root.cash + 30;
Symbol 62 MovieClip Frame 6
_root.highscore = _root.highscore + 50;
_root.kills = _root.kills + 1;
_root.cash = _root.cash + 20;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 62 MovieClip in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_parent._y > 0) {
if (this._x > 455) {
this._x = 455;
if (hp < 100) {
_root.damage = _root.damage + _root.loper_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 62 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_parent._y > 0) {
if (this._x > 455) {
this._x = 455;
if (hp < 100) {
_root.damage = _root.damage + _root.loper_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 62 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_parent._y > 0) {
if (this._x > 455) {
this._x = 455;
if (hp < 100) {
_root.damage = _root.damage + _root.loper_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 62 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_loper;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "loper");
if (_parent._y > 0) {
if (this._x > 455) {
this._x = 455;
if (hp < 100) {
_root.damage = _root.damage + _root.loper_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Symbol 69 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 69 MovieClip Frame 13
gotoAndPlay (2);
Symbol 71 Button
on (press) {
_root.vars.hit(this, "toren");
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
_root.cash = _root.cash + 75;
Symbol 72 MovieClip Frame 6
_root.highscore = _root.highscore + 100;
_root.kills = _root.kills + 1;
_root.cash = _root.cash + 25;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_parent._y > 0) {
if (this._x > 450) {
this._x = 450;
if (hp < 100) {
_root.damage = _root.damage + _root.toren_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.02;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.02;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 72 MovieClip in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_parent._y > 0) {
if (this._x > 450) {
this._x = 450;
if (hp < 100) {
_root.damage = _root.damage + _root.toren_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.02;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.02;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 72 MovieClip in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_toren;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_parent._y > 0) {
if (this._x > 450) {
this._x = 450;
if (hp < 100) {
_root.damage = _root.damage + _root.toren_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.02;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.02;
}
}
}
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) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
}
Symbol 79 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 79 MovieClip Frame 13
gotoAndPlay (2);
Symbol 81 Button
on (press) {
_root.vars.hit(this, "elite");
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
_root.cash = _root.cash + 100;
Symbol 82 MovieClip Frame 6
_root.highscore = _root.highscore + 75;
_root.cash = _root.cash + 50;
_root.kills = _root.kills + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_parent._y > 0) {
if (this._x > 460) {
this._x = 460;
if (hp < 100) {
_root.damage = _root.damage + _root.elite_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - (0.2 * _root.archer_power);
}
}
}
if (hp <= 0) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_parent._y > 0) {
if (this._x > 460) {
this._x = 460;
if (hp < 100) {
_root.damage = _root.damage + _root.elite_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - (0.2 * _root.archer_power);
}
}
}
if (hp <= 0) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_parent._y > 0) {
if (this._x > 460) {
this._x = 460;
if (hp < 100) {
_root.damage = _root.damage + _root.elite_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - (0.2 * _root.archer_power);
}
}
}
if (hp <= 0) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_elite;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "elite");
if (_parent._y > 0) {
if (this._x > 460) {
this._x = 460;
if (hp < 100) {
_root.damage = _root.damage + _root.elite_damage;
}
if (_root.hell_wall == 1) {
hp = hp - 0.01;
}
}
}
if (_parent._y > 0) {
if (this._x > 350) {
if (_root.gracht_soort == 4) {
hp = hp - 0.01;
}
}
}
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - (0.2 * _root.archer_power);
}
}
}
if (hp <= 0) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.firestorm == 1) {
if (this._x > 300) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Symbol 89 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 89 MovieClip Frame 13
gotoAndPlay (2);
Symbol 90 Button
on (press) {
_root.vars.hit(this, "tank");
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
_root.cash = _root.cash + 100;
Symbol 91 MovieClip Frame 6
_root.highscore = _root.highscore + 100;
_root.kills = _root.kills + 1;
_root.cash = _root.cash + 50;
_root.vars.doel();
unloadMovie (this);
Symbol 92 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_tank;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "toren");
if (_parent._y > 0) {
if (this._x > 450) {
this._x = 450;
if (hp < 100) {
_root.damage = _root.damage + _root.toren_damage;
}
}
}
if (_root.archer_kills > 0) {
if (this._x > 200) {
_root.archer_kills = _root.archer_kills - 1;
keuze = random(3);
if ((keuze = 1)) {
hp = hp - (0.2 * _root.archer_power);
}
}
}
if (hp <= 0) {
_parent.hp = _parent.hp + 1;
hp = 999;
this.gotoAndPlay(3);
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
this._x = this._x - 15;
this.gotoAndPlay(3);
}
}
}
}
Symbol 95 MovieClip Frame 1
starter = random(12) + 2;
gotoAndPlay(starter);
Symbol 95 MovieClip Frame 8
gotoAndPlay (2);
Symbol 97 Button
on (press) {
_root.vars.hit(this, "cat");
}
Symbol 102 MovieClip Frame 1
Symbol 102 MovieClip Frame 31
_root.damage = _root.damage + _root.cat_damage;
Symbol 104 Button
on (press) {
_root.vars.hit(this, "cat");
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 3
_root.cash = _root.cash + 100;
Symbol 105 MovieClip Frame 7
_root.highscore = _root.highscore + 100;
_root.cash = _root.cash + 100;
_root.vars.doel();
unloadMovie (this);
stop();
Symbol 106 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_cat;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "cat");
if (hp != 999) {
if (_parent._y > 0) {
if (this._x > 150) {
this._x = 150;
gotoAndStop (2);
}
}
}
if (_parent._y > 0) {
if (_root.nuke == 1) {
if (this._x > -50) {
gotoAndStop (2);
}
}
}
if (hp <= 0) {
_root.kills = _root.kills + 1;
_root.vars.doel();
_parent.hp = _parent.hp + 1;
hp = 999;
gotoAndPlay (3);
}
}
Symbol 110 MovieClip Frame 5
if (kaas == 1) {
gotoAndPlay (1);
}
Symbol 110 MovieClip Frame 6
kaas = 1;
Symbol 112 Button
on (press) {
_root.vars.hit(this, "pion");
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 10
_root.highscore = _root.highscore + 50;
_root.kills = _root.kills + 1;
_parent.hp = _parent.hp + 1;
_root.vars.doel();
unloadMovie (this);
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
hp = _root.hp_pion;
}
onClipEvent (enterFrame) {
_root.vars.move(this, "kami");
if (hp != 999) {
if (_parent._y > 0) {
if (this._x > 455) {
this._x = 455;
_root.damage = _root.damage + 100;
hp = 0;
}
}
}
if (hp <= 0) {
hp = 999;
this.gotoAndPlay(2);
}
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._x = this._x - 20;
this.gotoAndPlay(3);
}
}
}
}
Symbol 115 MovieClip Frame 1
_root.muur_over = _root.muur - _root.damage;
_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");
}
if (_root.muur_repair == 1) {
_root.repairshop.balk._yscale = 100 - teller_muur_repair;
teller_muur_repair = teller_muur_repair + 2;
if (teller_muur_repair > 100) {
_root.repairshop.gotoAndStop(2);
if (_root.damage < 51) {
_root.damage = 0;
} else {
_root.damage = _root.damage - (25 + _root.level);
if (_root.damage < 0) {
_root.damage = 0;
}
}
_root.muur_repair = 0;
teller_muur_repair = 0;
}
}
if (_root.muur_make == 1) {
_root.workshop.balk._yscale = 100 - teller_muur_make;
teller_muur_make = teller_muur_make + 0.5;
if (teller_muur_make > 99) {
_root.workshop.gotoAndStop(2);
_root.muur = _root.muur + 50;
_root.muur_make = 0;
teller_muur_make = 0;
}
}
if (_root.archer_make == 1) {
_root.archery.balk._yscale = 100 - teller_archer_make;
teller_archer_make = teller_archer_make + 0.5;
if (teller_archer_make > 99) {
_root.archery.gotoAndStop(2);
_root.archers = _root.archers + 1;
_root.archer_make = 0;
teller_archer_make = 0;
}
}
if (_root.archers > 0) {
teller_archer = teller_archer + 1;
if (teller_archer > 20) {
_root.archer_kills = _root.archers;
teller_archer = 0;
}
}
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;
}
Instance of Symbol 53 MovieClip "dummy_pion" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 10) {
trace("kill pion");
unloadMovie (this);
}
}
}
Instance of Symbol 54 MovieClip "dummy_pion_2" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 20) {
trace("kill pion 2");
unloadMovie (this);
}
}
}
Instance of Symbol 63 MovieClip "dummy_loper" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 2) {
trace("kill paard");
unloadMovie (this);
}
}
}
Instance of Symbol 64 MovieClip "dummy_loper_2" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 6) {
trace("kill paard 2");
unloadMovie (this);
}
}
}
Instance of Symbol 73 MovieClip "dummy_toren" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 2) {
trace("kill toren");
unloadMovie (this);
}
}
}
Instance of Symbol 74 MovieClip "dummy_toren_2" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 4) {
trace("kill toren 2");
unloadMovie (this);
}
}
}
Instance of Symbol 83 MovieClip "dummy_elite_2" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 6) {
trace("kill elite");
unloadMovie (this);
}
}
}
Instance of Symbol 84 MovieClip "dummy_elite" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 2) {
trace("kill paard");
unloadMovie (this);
}
}
}
Instance of Symbol 92 MovieClip "dummy_tank" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 2) {
trace("kill tank");
unloadMovie (this);
}
}
}
Instance of Symbol 106 MovieClip "dummy_cat" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 1) {
trace("kill cat");
unloadMovie (this);
}
}
}
Instance of Symbol 114 MovieClip "dummy_kami" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
hp = 0;
}
onClipEvent (enterFrame) {
if (this._y > 0) {
if (hp == 2) {
trace("kill kami");
unloadMovie (this);
}
}
}
Symbol 115 MovieClip Frame 2
if (_root.spawned >= _root.doel) {
} else if (_root.level < 40) {
teller_generator = teller_generator + 1;
if (teller_generator > (40 - _root.level)) {
gotoAndPlay (3);
teller_generator = 0;
}
} else {
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 115 MovieClip Frame 3
if (_root.level <= 26) {
keuze = random(_root.level) + 1;
} else {
keuze = random(25) + 1;
}
if (keuze == 25) {
duplicateMovieClip (dummy_kami, "kami" + i, i);
setProperty("kami" + i, _x , -50);
setProperty("kami" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 21) {
duplicateMovieClip (dummy_cat, "cat" + i, i);
setProperty("cat" + i, _x , -50);
setProperty("cat" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 20) {
duplicateMovieClip (dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 19) {
duplicateMovieClip (dummy_elite_2, "elite_2" + i, i);
setProperty("elite_2" + i, _x , -50);
setProperty("elite_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 3;
}
if (keuze == 18) {
duplicateMovieClip (dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 17) {
duplicateMovieClip (dummy_tank, "tank" + i, i);
setProperty("tank" + i, _x , -50);
setProperty("tank" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 16) {
duplicateMovieClip (dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 15) {
duplicateMovieClip (dummy_toren_2, "toren_2" + i, i);
setProperty("toren_2" + i, _x , -50);
setProperty("toren_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 2;
}
if (keuze == 14) {
duplicateMovieClip (dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 13) {
duplicateMovieClip (dummy_toren, "toren" + i, i);
setProperty("toren" + i, _x , -50);
setProperty("toren" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 12) {
duplicateMovieClip (dummy_toren, "toren" + i, i);
setProperty("toren" + i, _x , -50);
setProperty("toren" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 11) {
duplicateMovieClip (dummy_elite, "elite" + i, i);
setProperty("elite" + i, _x , -50);
setProperty("elite" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 10) {
duplicateMovieClip (dummy_loper_2, "loper_2" + i, i);
setProperty("loper_2" + i, _x , -50);
setProperty("loper_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 3;
}
if (keuze == 9) {
duplicateMovieClip (dummy_loper_2, "loper_2" + i, i);
setProperty("loper_2" + i, _x , -50);
setProperty("loper_2" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 3;
}
if (keuze == 8) {
duplicateMovieClip (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 (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 (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 (dummy_loper, "loper" + i, i);
setProperty("loper" + i, _x , -50);
setProperty("loper" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze == 3) {
duplicateMovieClip (dummy_loper, "loper" + i, i);
setProperty("loper" + i, _x , -50);
setProperty("loper" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze > 20) {
duplicateMovieClip (dummy_tank, "tank" + i, i);
setProperty("tank" + i, _x , -50);
setProperty("tank" + i, _y , 100 + random(150));
i++;
keuze = 0;
_root.spawned = _root.spawned + 1;
}
if (keuze > 0) {
duplicateMovieClip (dummy_pion, "pion" + i, i);
setProperty("pion" + i, _x , -50);
setProperty("pion" + i, _y , 100 + (25 * random(4)));
i++;
_root.spawned = _root.spawned + 5;
}
gotoAndPlay (1);
Symbol 115 MovieClip Frame 4
amount = 2000;
i = 0;
while (amount > 0) {
unloadMovie ("pion" + i);
unloadMovie ("pion_2" + i);
unloadMovie ("loper" + i);
unloadMovie ("loper_2" + i);
unloadMovie ("toren" + i);
unloadMovie ("toren_2" + i);
unloadMovie ("elite" + i);
unloadMovie ("elite_2" + i);
unloadMovie ("tank" + i);
i++;
amount--;
_root.doel = 0;
}
Symbol 126 Button
on (press) {
_root.levelscherm.gotoAndStop(2);
gotoAndPlay (2);
}
Symbol 130 Button
on (press) {
stopAllSounds();
gotoAndStop (1);
}
Symbol 133 MovieClip Frame 555
gotoAndPlay (2);
Symbol 135 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 143 Button
on (press) {
if (_root.cash >= 3000) {
_root.cash = _root.cash - 3000;
_root.archery_uit = 1;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates archers that defent your castle.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 162 Button
on (press) {
if (_root.cash >= 500) {
_root.archery.gotoAndStop(3);
_root.cash = _root.cash - 500;
_root.tip = "";
_root.archer_make = 1;
}
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 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
Symbol 172 Button
on (press) {
if (_root.cash >= 2000) {
_root.cash = _root.cash - 2000;
_root.workshop_uit = 1;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates a wall workshop.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 180 Button
on (press) {
if (_root.cash >= 300) {
_root.cash = _root.cash - 300;
_root.tip = "";
_root.muur_make = 1;
_root.workshop.gotoAndStop(3);
}
}
on (rollOver) {
_root.tip = "Reinforce your wall";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 190 Button
on (press) {
if (_root.cash >= 1000) {
_root.cash = _root.cash - 1000;
_root.repairshop_uit = 1;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates a wall repairshop.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 193 Button
on (press) {
if (_root.damage != 0) {
if (_root.cash >= 150) {
_root.cash = _root.cash - 150;
_root.tip = "";
_root.muur_repair = 1;
_root.repairshop.gotoAndStop(3);
}
}
}
on (rollOver) {
_root.tip = "Repairs your wall";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 205 Button
on (press) {
if (_root.cash >= 2500) {
_root.cash = _root.cash - 2500;
_root.defence_tower = 1;
gotoAndStop (2);
}
}
on (rollOver) {
_root.tip = "Creates a development tower .";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip = "";
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 4
_root.firestorm = 1;
Symbol 218 MovieClip Frame 11
_root.firestorm = 0;
Symbol 219 Button
on (press) {
_root.fire_storms = _root.fire_storms - 1;
if (_root.fire_storms == 0) {
gotoAndStop (2);
}
_root.fire_storm.gotoAndPlay(2);
}
Symbol 222 MovieClip Frame 1
if (_root.fire_storms == 0) {
gotoAndStop (2);
}
stop();
Symbol 223 Button
on (press) {
_root.nukes = _root.nukes - 1;
if (_root.nukes < 1) {
gotoAndStop (1);
}
_root.nuke_blast.gotoAndPlay(2);
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
if (_root.nukes == 0) {
gotoAndStop (1);
}
Symbol 230 Button
on (press) {
_root.voorraad = 250;
}
Symbol 233 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 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 3
_root.archers_pauze = _root.archers;
_root.archers = 0;
_root.archery.pijl_schieter.gotoAndStop(1);
Instance of Symbol 235 MovieClip in Symbol 236 MovieClip Frame 3
/* no clip actions */
Symbol 257 Button
on (press) {
toggleHighQuality();
}
Symbol 263 Button
on (press) {
_root.levelscherm.gotoAndPlay(2);
}
Symbol 267 Button
on (press) {
gotoAndStop (2);
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 299 Button
on (release) {
getURL ("http://www.silverburst.com", "_blank");
}
Symbol 305 Button
on (press) {
stopAllSounds();
gotoAndPlay (54);
_root.vars.setup_level();
_root.counter.gotoAndPlay(3);
}
Symbol 311 Button
on (press) {
if (_root.cash >= 2500) {
_root.cash = _root.cash - 2500;
_root.archer_power = 1.5;
_root.special_1 = 1;
this._visible = false;
}
}
on (rollOver) {
_root.tip2 = "Upgrade the damage and of the arrows.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip2 = "";
}
Symbol 315 Button
on (press) {
if (_root.cash >= 5000) {
_root.cash = _root.cash - 5000;
_root.hell_wall = 1;
_root.muur1.gotoAndStop(2);
_root.muur2.gotoAndStop(2);
_root.special_2 = 1;
this._visible = false;
}
}
on (rollOver) {
_root.tip2 = "Let's the wall kill his attackers.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip2 = "";
}
Symbol 319 Button
on (press) {
if (_root.cash >= 4000) {
_root.cash = _root.cash - 4000;
_root.attack = 3;
_root.special_3 = 1;
this._visible = false;
}
}
on (rollOver) {
_root.tip2 = "More killing power in you mouse clicks.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip2 = "";
}
Symbol 323 Button
on (press) {
if (_root.cash >= 2500) {
_root.cash = _root.cash - 2500;
_root.nukes = _root.nukes + 1;
_root.nuke_knop.gotoAndStop(2);
}
}
on (rollOver) {
_root.tip2 = "Buy yourself a brandnew nuke.";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip2 = "";
}
Symbol 327 Button
on (press) {
if (_root.cash >= 10000) {
_root.cash = _root.cash - 10000;
_root.gracht_soort = 4;
_root.grachten.gotoAndStop(5);
_root.special_5 = 1;
this._visible = false;
}
}
on (rollOver) {
_root.tip2 = "Fills the trench with fire, ouch!";
}
on (rollOut, release, dragOut, releaseOutside) {
_root.tip2 = "";
}
Symbol 331 MovieClip Frame 1
if (_root.defence_tower == 1) {
if (_root.special_1 == 1) {
special_1._visible = false;
}
if (_root.special_2 == 1) {
special_2._visible = false;
}
if (_root.special_3 == 1) {
special_3._visible = false;
}
if (_root.special_5 == 1) {
special_5._visible = false;
}
} else {
this._visible = false;
}
Symbol 339 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 339 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 339 MovieClip Frame 4
keuze = random(14) + 1;
if (keuze == 1) {
hint = "Use the keyboard: A = Make a archer";
}
if (keuze == 2) {
hint = "Use the keyboard: S = Upgrade your wall";
}
if (keuze == 3) {
hint = "Use the keyboard: D = Repair your wall";
}
if (keuze == 4) {
hint = "Use the keyboard: SPACEBAR = Reload archers";
}
if (keuze == 5) {
hint = "Use the keyboard: Z = Use the Firewall";
}
if (keuze == 6) {
hint = "Use the keyboard: X = Use the Nuke";
}
if (keuze == 7) {
hint = "Get more cash by killing the enemy yourself ";
}
if (keuze == 8) {
hint = "Build buildings to upgrade your defence system ";
}
if (keuze == 9) {
hint = "Don't forget to build the defence tower for extra upgrades ";
}
if (keuze == 10) {
hint = "Tanks will go faster in trenches ";
}
if (keuze == 11) {
hint = "Heavy tanks can not be killed by fire";
}
if (keuze == 12) {
hint = "Don't forget to reload your archers ";
}
if (keuze == 13) {
hint = "Stop the thunder for extra graphic performance ";
}
if (keuze == 14) {
hint = "Set your quality to low for extra graphic performance ";
}
Symbol 339 MovieClip Frame 9
stopAllSounds();
if (_root.defence_tower == 1) {
if (_root.special_1 == 1) {
defence.special_1._visible = false;
}
if (_root.special_2 == 1) {
defence.special_2._visible = false;
}
if (_root.special_3 == 1) {
defence.special_3._visible = false;
}
if (_root.special_5 == 1) {
defence.special_5._visible = false;
}
} else {
defence._visible = false;
}
Symbol 339 MovieClip Frame 53
stop();
Symbol 339 MovieClip Frame 60
_root.generator.gotoAndPlay(1);
stop();
Symbol 339 MovieClip Frame 61
_root.clicks_eind = _root.clicks;
_root.highscore_eind = _root.highscore;
amount = 1000;
i = 0;
_root.cheater = 1;
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 340 MovieClip Frame 1
function setup_level() {
if (_root.level == 1) {
_root.highscore = 0;
_root.cash = 0;
}
_root.kills = 0;
_root.spawned = 0;
_root.counter.i = 0;
_root.doel = 20 * _root.level;
_root.grond.gotoAndStop(random(6) + 1);
_root.weer.gotoAndStop(random(10) + 1);
}
function doel() {
if (_root.kills >= _root.doel) {
if (_root.kills == _root.spawned) {
_root.counter.gotoAndPlay(4);
_root.level = _root.level + 1;
_root.levelscherm.gotoAndPlay(3);
}
}
}
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);
}
}
if (soort == "cat") {
dummy.hp = dummy.hp - _root.attack;
if (dummy.hp < 1) {
dummy.gotoAndPlay(3);
}
}
_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) + (_root.level / 20));
}
if (_root.gracht_soort == 1) {
if (dummy._x > 330) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 330) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 330) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 4) {
if (dummy._x > 330) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
}
if (soort == "loper") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + ((4 * verschil) + (_root.level / 20));
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((3 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((4 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((4 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((4 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 4) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((4 * verschil) + (_root.level / 20));
}
}
}
if (soort == "toren") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((3 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 4) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
}
}
if (soort == "elite") {
if (_root.gracht_soort == 0) {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
if (_root.gracht_soort == 1) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 2) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 3) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
if (_root.gracht_soort == 4) {
if (dummy._x > 360) {
dummy._x = dummy._x + ((0.5 * verschil) + (_root.level / 20));
} else {
dummy._x = dummy._x + ((2 * verschil) + (_root.level / 20));
}
}
}
if (soort == "cat") {
dummy._x = dummy._x + ((1 * verschil) + (_root.level / 20));
}
if (soort == "kami") {
dummy._x = dummy._x + (9 + (_root.level / 20));
}
}
Symbol 341 Button
on (press) {
unloadMovie (this);
}
on (keyPress "x") {
if (_root.nukes > 0) {
_root.nukes = _root.nukes - 1;
if (_root.nukes < 1) {
_root.nuke_knop.gotoAndStop(1);
}
_root.nuke_blast.gotoAndPlay(2);
}
}
on (keyPress "z") {
if (_root.fire_storms > 0) {
_root.fire_storms = _root.fire_storms - 1;
if (_root.fire_storms == 0) {
_root.fire.gotoAndStop(2);
}
_root.fire_storm.gotoAndPlay(2);
}
}
on (keyPress "d") {
if (_root.muur_repair != 1) {
if (_root.repairshop_uit == 1) {
if (_root.damage != 0) {
if (_root.cash >= 150) {
_root.cash = _root.cash - 150;
_root.tip = "";
_root.muur_repair = 1;
_root.repairshop.gotoAndStop(3);
}
}
}
}
}
on (keyPress "s") {
if (_root.muur_make != 1) {
if (_root.workshop_uit == 1) {
if (_root.cash >= 300) {
_root.cash = _root.cash - 300;
_root.tip = "";
_root.muur_make = 1;
_root.workshop.gotoAndStop(3);
}
}
}
}
on (keyPress "<Space>") {
if (_root.reload._currentframe == 3) {
_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);
}
_root.reload.gotoAndStop(2);
}
_root.voorraad = 250;
}
on (keyPress "a") {
if (_root.archer_make != 1) {
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);
}
if (_root.archery_uit == 1) {
if (_root.cash >= 500) {
_root.archery.gotoAndStop(3);
_root.cash = _root.cash - 500;
_root.tip = "";
_root.archer_make = 1;
}
}
}
}