Frame 1
function doSomething() {
}
function doSomething2() {
getURL ("http://www.godlygamer.com", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("This game is copyright (C) Godly Gamer", doSomething);
Functioned2 = new ContextMenuItem("Visit Godly Gamer", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
_root.kbtotal = Math.round(getBytesTotal() / 1024);
_root.kbloaded = Math.round(getBytesLoaded() / 1024);
_root.percent = Math.round((_root.kbloaded / _root.kbtotal) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay ("start");
}
_root.loadBar.gotoAndStop(_root.percent);
_root.percent = _root.percent + "%";
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (load) {
this._x = random(550);
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 650) {
this._x = -100;
this._y = random(100);
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 31 MovieClip in Frame 3
onClipEvent (mouseMove) {
if ((((_root._xmouse < 550) && (_root._xmouse > 0)) && (_root._ymouse < 400)) && (_root._ymouse > 0)) {
Mouse.hide();
} else {
Mouse.show();
}
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 33 MovieClip in Frame 3
onClipEvent (load) {
this.mtoggle = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(77) && (this.mtoggle == false)) {
this.play();
this.mtoggle = true;
}
if ((!Key.isDown(77)) && (this.mtoggle == true)) {
this.mtoggle = false;
}
}
Frame 4
stop();
Frame 5
stop();
Frame 6
_root.enemysleft = 0;
_root.enemycount = 15;
_root.onscreenenemys = 0;
stop();
_root.level = 1;
_root.landmine1active = false;
_root.landmine2active = false;
_root.landmine3active = false;
_root.soldier1health = 50;
_root.enemy1attack = 1;
_root.enemy1gold = 1;
_root.unlockdualshock = false;
_root.projectilespeed = 40;
_root.projectiledmg = 1;
_root.teslahealth = 1000;
_root.wallhealth = 500;
_root.gold = 10;
_root.totalgold = 10;
_root.enemyskilled = 0;
_root.archer1active = false;
_root.archer1dead = false;
_root.archer1shot = false;
_root.archer1shooting = false;
_root.archer1health = 0;
_root.archer1explodingarrows = false;
_root.archer1speed = 0;
_root.archer1power = 1;
_root.archer2active = false;
_root.archer2dead = false;
_root.archer2shot = false;
_root.archer2shooting = false;
_root.archer2health = 0;
_root.archer2explodingarrows = false;
_root.archer2speed = 0;
_root.archer2power = 1;
_root.archer3active = false;
_root.archer3dead = false;
_root.archer3shot = false;
_root.archer3shooting = false;
_root.archer3health = 0;
_root.archer3explodingarrows = false;
_root.archer3speed = 0;
_root.archer3power = 1;
_root.archer4active = false;
_root.archer4dead = false;
_root.archer4shot = false;
_root.archer4shooting = false;
_root.archer4health = 0;
_root.archer4explodingarrows = false;
_root.archer4speed = 0;
_root.archer4power = 1;
_root.archer5active = false;
_root.archer5dead = false;
_root.archer5shot = false;
_root.archer5shooting = false;
_root.archer5health = 0;
_root.archer5explodingarrows = false;
_root.archer5speed = 0;
_root.archer5power = 1;
Instance of Symbol 418 MovieClip "wall" in Frame 6
onClipEvent (enterFrame) {
if (_root.wallhealth <= 0) {
this.gotoAndStop(2);
}
if (_root.wallhealth > 0) {
this.gotoAndStop(1);
}
if (_root.wallhealth < 0) {
_root.wallhealth = 0;
}
}
Instance of Symbol 441 MovieClip "archer4" in Frame 6
onClipEvent (enterFrame) {
if (_root.archer4active == true) {
_root.archer4dead = false;
_root.archer4active = false;
_root.archer4shot = false;
_root.archer4shooting = false;
_root.archer4health = 100;
this.gotoAndStop(1);
}
if (((_root.archer4active == false) && (_root.archer4health <= 0)) && (_root.archer4dead == false)) {
this.gotoAndStop(2);
_root.archer4dead = true;
}
if (_root.archer4health < 0) {
_root.archer4health = 0;
}
}
Instance of Symbol 452 MovieClip "teslabase" in Frame 6
onClipEvent (enterFrame) {
if (_root.teslahealth <= 0) {
_root.gotoAndStop("lose");
}
}
Instance of Symbol 481 MovieClip "tesla" in Frame 6
onClipEvent (load) {
_root.fired1 = false;
_root.fired2 = false;
}
onClipEvent (enterFrame) {
if ((Key.isDown(1) && (_root.fired1 == false)) && (_root.timeshot1 == 0)) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.gotoAndStop(1);
_root.firetarget._x = _root._xmouse;
_root.firetarget._y = _root._ymouse;
_root.xposition = _root._xmouse;
_root.yposition = _root._ymouse;
_root.ballmovex = (_root.xposition - this._x) / _root.projectilespeed;
_root.ballmovey = (_root.yposition - this._y) / _root.projectilespeed;
_root.fired1 = true;
_root.timeshot1 = _root.projectilespeed;
_root.ball.gotoAndStop(1);
}
if ((((Key.isDown(1) && (_root.unlockdualshock == true)) && (_root.fired2 == false)) && (_root.timeshot1 <= (_root.projectilespeed / 2))) && (_root.timeshot2 == 0)) {
_root.ball2._x = this._x;
_root.ball2._y = this._y;
_root.ball2.gotoAndStop(1);
_root.firetarget2._x = _root._xmouse;
_root.firetarget2._y = _root._ymouse;
_root.xposition2 = _root._xmouse;
_root.yposition2 = _root._ymouse;
_root.ballmovex2 = (_root.xposition2 - this._x) / _root.projectilespeed;
_root.ballmovey2 = (_root.yposition2 - this._y) / _root.projectilespeed;
_root.fired2 = true;
_root.timeshot2 = _root.projectilespeed;
_root.ball2.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
this.objectsx = this._x;
this.objectsy = this._y;
this.adjacentside = _root._xmouse - this.objectsx;
this.oppositeside = this.objectsy - _root._ymouse;
this.angle = Math.atan2(this.oppositeside, this.adjacentside);
this.angle = Math.round((this.angle / Math.PI) * 180);
_root.tesla._rotation = this.angle * -1;
}
Instance of Symbol 503 MovieClip "archer1" in Frame 6
onClipEvent (enterFrame) {
if (_root.archer1active == true) {
_root.archer1dead = false;
_root.archer1active = false;
_root.archer1shot = false;
_root.archer1shooting = false;
_root.archer1health = 100;
this.gotoAndStop(1);
}
if (((_root.archer1active == false) && (_root.archer1health <= 0)) && (_root.archer1dead == false)) {
this.gotoAndStop(2);
_root.archer1dead = true;
}
if (_root.archer1health < 0) {
_root.archer1health = 0;
}
}
Instance of Symbol 518 MovieClip "archer3" in Frame 6
onClipEvent (enterFrame) {
if (_root.archer3active == true) {
_root.archer3dead = false;
_root.archer3active = false;
_root.archer3shot = false;
_root.archer3shooting = false;
_root.archer3health = 100;
this.gotoAndStop(1);
}
if (((_root.archer3active == false) && (_root.archer3health <= 0)) && (_root.archer3dead == false)) {
this.gotoAndStop(2);
_root.archer3dead = true;
}
if (_root.archer3health < 0) {
_root.archer3health = 0;
}
}
Instance of Symbol 533 MovieClip "archer5" in Frame 6
onClipEvent (enterFrame) {
if (_root.archer5active == true) {
_root.archer5dead = false;
_root.archer5active = false;
_root.archer5shot = false;
_root.archer5shooting = false;
_root.archer5health = 100;
this.gotoAndStop(1);
}
if (((_root.archer5active == false) && (_root.archer5health <= 0)) && (_root.archer5dead == false)) {
this.gotoAndStop(2);
_root.archer5dead = true;
}
if (_root.archer5health < 0) {
_root.archer5health = 0;
}
}
Instance of Symbol 548 MovieClip "archer2" in Frame 6
onClipEvent (enterFrame) {
if (_root.archer2active == true) {
_root.archer2dead = false;
_root.archer2active = false;
_root.archer2shot = false;
_root.archer2shooting = false;
_root.archer2health = 100;
this.gotoAndStop(1);
}
if (((_root.archer2active == false) && (_root.archer2health <= 0)) && (_root.archer2dead == false)) {
this.gotoAndStop(2);
_root.archer2dead = true;
}
if (_root.archer2health < 0) {
_root.archer2health = 0;
}
}
Instance of Symbol 565 MovieClip "landmine1" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(65) && (_root.landmine1active == true)) {
_root.landmine1active = false;
}
if (_root.landmine1active == true) {
this.gotoAndStop(1);
}
if (_root.landmine1active == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 578 MovieClip "landmine2" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(83) && (_root.landmine2active == true)) {
_root.landmine2active = false;
}
if (_root.landmine2active == true) {
this.gotoAndStop(1);
}
if (_root.landmine2active == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 591 MovieClip "landmine3" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(68) && (_root.landmine3active == true)) {
_root.landmine3active = false;
}
if (_root.landmine3active == true) {
this.gotoAndStop(1);
}
if (_root.landmine3active == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 604 MovieClip in Frame 6
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 6
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 6
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 6
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 6
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 7
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 8
_root.enemysleft = 0;
_root.enemycount = 30;
_root.onscreenenemys = 0;
stop();
_root.level = 2;
_root.soldier1health = 60;
_root.soldier2health = 80;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
Instance of Symbol 958 MovieClip in Frame 8
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 8
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 8
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 8
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 8
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 9
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 10
_root.enemysleft = 0;
_root.enemycount = 50;
_root.onscreenenemys = 0;
stop();
_root.level = 3;
_root.soldier1health = 60;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
Instance of Symbol 974 MovieClip in Frame 10
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 10
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 10
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 10
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 10
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 11
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 12
_root.enemysleft = 0;
_root.enemycount = 5;
_root.onscreenenemys = 0;
stop();
_root.level = 4;
_root.soldier1health = 60;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.soldier4health = 100;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy4attack = 2;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
Instance of Symbol 986 MovieClip in Frame 12
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 12
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 12
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 12
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 12
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 13
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 14
_root.enemysleft = 0;
_root.enemycount = 50;
_root.onscreenenemys = 0;
stop();
_root.level = 5;
_root.soldier1health = 70;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.soldier4health = 100;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy4attack = 2;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 3;
Instance of Symbol 604 MovieClip in Frame 14
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 14
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 14
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 14
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 14
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 14
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 15
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 16
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 6;
_root.soldier1health = 70;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.soldier4health = 100;
_root.soldier5health = 150;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 15;
Instance of Symbol 998 MovieClip in Frame 16
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 16
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 16
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 16
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 16
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 17
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 18
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 7;
_root.soldier1health = 70;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.soldier4health = 120;
_root.soldier5health = 160;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
Instance of Symbol 986 MovieClip in Frame 18
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 18
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 18
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 18
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 18
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 19
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 20
_root.enemysleft = 0;
_root.enemycount = 4;
_root.onscreenenemys = 0;
stop();
_root.level = 8;
_root.soldier1health = 70;
_root.soldier2health = 80;
_root.soldier3health = 90;
_root.soldier4health = 120;
_root.soldier5health = 160;
_root.soldier6health = 160;
_root.enemy1attack = 1;
_root.enemy2attack = 1;
_root.enemy3attack = 1;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 20;
Instance of Symbol 1010 MovieClip in Frame 20
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 20
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 20
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 20
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 21
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 22
_root.enemysleft = 0;
_root.enemycount = 40;
_root.onscreenenemys = 0;
stop();
_root.level = 9;
_root.soldier1health = 120;
_root.soldier2health = 120;
_root.soldier3health = 120;
_root.soldier4health = 160;
_root.soldier5health = 160;
_root.soldier6health = 160;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 1;
_root.enemy3gold = 1;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 10;
Instance of Symbol 998 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 604 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 958 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 986 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 22
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 627 MovieClip in Frame 22
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 22
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 22
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 23
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 24
_root.enemysleft = 0;
_root.enemycount = 60;
_root.onscreenenemys = 0;
stop();
_root.level = 10;
_root.soldier1health = 140;
_root.soldier2health = 150;
_root.soldier3health = 160;
_root.soldier4health = 170;
_root.soldier5health = 180;
_root.soldier6health = 190;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 1;
_root.enemy3gold = 1;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 24
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 24
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 24
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 25
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 26
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 11;
_root.soldier1health = 140;
_root.soldier2health = 150;
_root.soldier3health = 160;
_root.soldier4health = 170;
_root.soldier5health = 180;
_root.soldier6health = 190;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 1;
_root.enemy3gold = 1;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 1013 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 1027 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 26
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 627 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 26
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 26
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 27
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 28
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 12;
_root.soldier1health = 140;
_root.soldier2health = 150;
_root.soldier3health = 160;
_root.soldier4health = 170;
_root.soldier5health = 180;
_root.soldier6health = 190;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 1;
_root.enemy2gold = 1;
_root.enemy3gold = 1;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 1027 MovieClip in Frame 28
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 28
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 28
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 28
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 28
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 28
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 29
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 30
_root.enemysleft = 0;
_root.enemycount = 40;
_root.onscreenenemys = 0;
stop();
_root.level = 13;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 3;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 8;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 974 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 30
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 30
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 30
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 31
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 32
_root.enemysleft = 0;
_root.enemycount = 25;
_root.onscreenenemys = 0;
stop();
_root.level = 14;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 998 MovieClip in Frame 32
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 32
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 32
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 32
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 32
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 32
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 32
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 33
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 34
_root.enemysleft = 0;
_root.enemycount = 25;
_root.onscreenenemys = 0;
stop();
_root.level = 15;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 974 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 34
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 34
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 34
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 35
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 36
_root.enemysleft = 0;
_root.enemycount = 30;
_root.onscreenenemys = 0;
stop();
_root.level = 16;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 36
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 36
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 36
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 36
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 37
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 38
_root.enemysleft = 0;
_root.enemycount = 30;
_root.onscreenenemys = 0;
stop();
_root.level = 17;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 38
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 38
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 38
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 38
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 39
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 40
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 18;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 974 MovieClip in Frame 40
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 40
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 40
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 40
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 40
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 40
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 40
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 40
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 41
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 42
_root.enemysleft = 0;
_root.enemycount = 15;
_root.onscreenenemys = 0;
stop();
_root.level = 19;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 986 MovieClip in Frame 42
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 42
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 42
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 42
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 42
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 42
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 42
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 43
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 44
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 20;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 250;
_root.soldier8health = 250;
_root.soldier9health = 250;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 1010 MovieClip in Frame 44
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 44
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 44
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 44
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 44
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 44
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 44
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 45
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 46
_root.enemysleft = 0;
_root.enemycount = 15;
_root.onscreenenemys = 0;
stop();
_root.level = 21;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 1013 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 1027 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 46
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 627 MovieClip in Frame 46
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 46
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 46
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 47
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 48
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 22;
_root.soldier1health = 150;
_root.soldier2health = 160;
_root.soldier3health = 170;
_root.soldier4health = 180;
_root.soldier5health = 190;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 1013 MovieClip in Frame 48
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 48
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 48
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 48
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 48
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 48
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 48
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 49
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 50
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 23;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
Instance of Symbol 604 MovieClip in Frame 50
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 50
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 50
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 50
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 50
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 50
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 50
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 50
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 51
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 52
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 24;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy10gold = 15;
Instance of Symbol 1052 MovieClip in Frame 52
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier10health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy10gold;
_root.totalgold = _root.totalgold + _root.enemy10gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 52
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1052 MovieClip in Frame 52
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier10health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy10gold;
_root.totalgold = _root.totalgold + _root.enemy10gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 52
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 52
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 52
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 52
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 53
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 54
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 25;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
Instance of Symbol 1065 MovieClip in Frame 54
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 54
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 54
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 54
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 54
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 54
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 55
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 56
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 26;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.soldier12health = 300;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
Instance of Symbol 1079 MovieClip in Frame 56
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 56
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1079 MovieClip in Frame 56
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 56
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 56
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 56
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 57
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 58
_root.enemysleft = 0;
_root.enemycount = 4;
_root.onscreenenemys = 0;
stop();
_root.level = 27;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.soldier12health = 300;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
Instance of Symbol 1091 MovieClip in Frame 58
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 58
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 58
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 58
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 58
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 59
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 60
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 28;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.soldier12health = 300;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
Instance of Symbol 1091 MovieClip in Frame 60
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 60
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1079 MovieClip in Frame 60
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 60
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 60
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 60
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 60
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 60
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 61
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 62
_root.enemysleft = 0;
_root.enemycount = 10;
_root.onscreenenemys = 0;
stop();
_root.level = 29;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.soldier12health = 300;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
Instance of Symbol 1103 MovieClip in Frame 62
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 62
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 62
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 62
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 62
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 62
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 62
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 63
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 64
_root.enemysleft = 0;
_root.enemycount = 14;
_root.onscreenenemys = 0;
stop();
_root.level = 30;
_root.soldier1health = 200;
_root.soldier2health = 200;
_root.soldier3health = 200;
_root.soldier4health = 200;
_root.soldier5health = 200;
_root.soldier6health = 200;
_root.soldier7health = 300;
_root.soldier8health = 300;
_root.soldier9health = 300;
_root.soldier10health = 300;
_root.soldier11health = 300;
_root.soldier12health = 300;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy1gold = 2;
_root.enemy2gold = 2;
_root.enemy3gold = 2;
_root.enemy4gold = 5;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
Instance of Symbol 1013 MovieClip in Frame 64
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 64
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 64
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 64
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 64
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 64
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 64
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 65
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 66
_root.enemysleft = 0;
_root.enemycount = 2;
_root.onscreenenemys = 0;
stop();
_root.level = 31;
_root.soldier1health = 210;
_root.soldier2health = 210;
_root.soldier3health = 210;
_root.soldier4health = 210;
_root.soldier5health = 210;
_root.soldier6health = 210;
_root.soldier7health = 310;
_root.soldier8health = 310;
_root.soldier9health = 310;
_root.soldier10health = 310;
_root.soldier11health = 310;
_root.soldier12health = 310;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 2;
_root.enemy2attack = 2;
_root.enemy3attack = 2;
_root.enemy4attack = 2;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 3;
_root.enemy2gold = 3;
_root.enemy3gold = 3;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1119 MovieClip in Frame 66
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier15health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy15gold;
_root.totalgold = _root.totalgold + _root.enemy15gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1119 MovieClip in Frame 66
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier15health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy15gold;
_root.totalgold = _root.totalgold + _root.enemy15gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 66
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 66
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 66
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 67
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 68
_root.enemysleft = 0;
_root.enemycount = 2;
_root.onscreenenemys = 0;
stop();
_root.level = 32;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 4;
_root.enemy2gold = 4;
_root.enemy3gold = 4;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1133 MovieClip in Frame 68
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1133 MovieClip in Frame 68
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 68
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 68
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 68
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 69
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 70
_root.enemysleft = 0;
_root.enemycount = 6;
_root.onscreenenemys = 0;
stop();
_root.level = 33;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 5;
_root.enemy2gold = 5;
_root.enemy3gold = 5;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1091 MovieClip in Frame 70
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1079 MovieClip in Frame 70
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 70
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 70
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1133 MovieClip in Frame 70
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 0.5;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 627 MovieClip in Frame 70
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 70
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 70
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 71
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 72
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 34;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 5;
_root.enemy2gold = 5;
_root.enemy3gold = 5;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 60;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1013 MovieClip in Frame 72
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 72
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 72
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1013 MovieClip in Frame 72
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier9health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy9gold;
_root.totalgold = _root.totalgold + _root.enemy9gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 72
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 72
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 72
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 73
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 74
_root.enemysleft = 0;
_root.enemycount = 15;
_root.onscreenenemys = 0;
stop();
_root.level = 35;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 5;
_root.enemy2gold = 5;
_root.enemy3gold = 5;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1079 MovieClip in Frame 74
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 74
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1027 MovieClip in Frame 74
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1133 MovieClip in Frame 74
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1119 MovieClip in Frame 74
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier15health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy15gold;
_root.totalgold = _root.totalgold + _root.enemy15gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 74
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 74
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 74
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 75
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 76
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 36;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 5;
_root.enemy2gold = 5;
_root.enemy3gold = 5;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1091 MovieClip in Frame 76
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 986 MovieClip in Frame 76
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier4health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy4gold;
_root.totalgold = _root.totalgold + _root.enemy4gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 76
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 76
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1091 MovieClip in Frame 76
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 76
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 76
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 76
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 77
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 78
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 37;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 5;
_root.enemy2gold = 5;
_root.enemy3gold = 5;
_root.enemy4gold = 6;
_root.enemy5gold = 10;
_root.enemy6gold = 10;
_root.enemy7gold = 10;
_root.enemy8gold = 10;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1065 MovieClip in Frame 78
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 604 MovieClip in Frame 78
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier1health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy1gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 958 MovieClip in Frame 78
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier2health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy2gold;
_root.totalgold = _root.totalgold + _root.enemy2gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1065 MovieClip in Frame 78
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier11health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy11gold;
_root.totalgold = _root.totalgold + _root.enemy1gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1052 MovieClip in Frame 78
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier10health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy10gold;
_root.totalgold = _root.totalgold + _root.enemy10gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 78
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 78
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 78
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 79
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 80
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 38;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 7;
_root.enemy2gold = 7;
_root.enemy3gold = 7;
_root.enemy4gold = 7;
_root.enemy5gold = 15;
_root.enemy6gold = 15;
_root.enemy7gold = 15;
_root.enemy8gold = 15;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1052 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier10health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy10gold;
_root.totalgold = _root.totalgold + _root.enemy10gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1052 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier10health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy10gold;
_root.totalgold = _root.totalgold + _root.enemy10gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 998 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier5health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy5gold;
_root.totalgold = _root.totalgold + _root.enemy5gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 974 MovieClip in Frame 80
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier3health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy3gold;
_root.totalgold = _root.totalgold + _root.enemy3gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 80
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 80
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 80
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 81
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 82
_root.enemysleft = 0;
_root.enemycount = 15;
_root.onscreenenemys = 0;
stop();
_root.level = 39;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 7;
_root.enemy2gold = 7;
_root.enemy3gold = 7;
_root.enemy4gold = 7;
_root.enemy5gold = 15;
_root.enemy6gold = 15;
_root.enemy7gold = 15;
_root.enemy8gold = 15;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1027 MovieClip in Frame 82
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier7health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy7gold;
_root.totalgold = _root.totalgold + _root.enemy7gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1040 MovieClip in Frame 82
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier8health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy8gold;
_root.totalgold = _root.totalgold + _root.enemy8gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 82
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1010 MovieClip in Frame 82
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier6health;
this.restart = random(100) - 200;
this.speed = 3;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy6gold;
_root.totalgold = _root.totalgold + _root.enemy6gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1079 MovieClip in Frame 82
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier12health;
this.restart = random(100) - 200;
this.speed = 2;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy12gold;
_root.totalgold = _root.totalgold + _root.enemy12gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 627 MovieClip in Frame 82
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 82
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 82
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 83
_root.levelcomplete = ("Level " + _root.level) + " Complete:";
stop();
Frame 84
_root.enemysleft = 0;
_root.enemycount = 20;
_root.onscreenenemys = 0;
stop();
_root.level = 40;
_root.soldier1health = 230;
_root.soldier2health = 230;
_root.soldier3health = 230;
_root.soldier4health = 230;
_root.soldier5health = 230;
_root.soldier6health = 230;
_root.soldier7health = 330;
_root.soldier8health = 330;
_root.soldier9health = 330;
_root.soldier10health = 330;
_root.soldier11health = 330;
_root.soldier12health = 330;
_root.soldier13health = 400;
_root.soldier14health = 400;
_root.soldier15health = 700;
_root.soldier16health = 800;
_root.enemy1attack = 3;
_root.enemy2attack = 3;
_root.enemy3attack = 3;
_root.enemy4attack = 3;
_root.enemy5attack = 4;
_root.enemy6attack = 3;
_root.enemy7attack = 3;
_root.enemy8attack = 3;
_root.enemy9attack = 3;
_root.enemy10attack = 5;
_root.enemy11attack = 5;
_root.enemy12attack = 8;
_root.enemy13attack = 6;
_root.enemy14attack = 6;
_root.enemy15attack = 10;
_root.enemy16attack = 10;
_root.enemy1gold = 7;
_root.enemy2gold = 7;
_root.enemy3gold = 7;
_root.enemy4gold = 7;
_root.enemy5gold = 15;
_root.enemy6gold = 15;
_root.enemy7gold = 15;
_root.enemy8gold = 15;
_root.enemy9gold = 30;
_root.enemy10gold = 15;
_root.enemy11gold = 15;
_root.enemy12gold = 15;
_root.enemy13gold = 20;
_root.enemy14gold = 20;
_root.enemy15gold = 40;
_root.enemy16gold = 40;
Instance of Symbol 1133 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 1119 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier15health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy15gold;
_root.totalgold = _root.totalgold + _root.enemy15gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1091 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1103 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier13health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy13gold;
_root.totalgold = _root.totalgold + _root.enemy13gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1091 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier14health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
this.attack1.play();
}
if (this.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy14gold;
_root.totalgold = _root.totalgold + _root.enemy14gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
if ((this.dead == true) && (_root.enemycount > 0)) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this._x = this.restart;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
}
Instance of Symbol 1133 MovieClip in Frame 84
onClipEvent (load) {
_root.enemycount = _root.enemycount - 1;
_root.onscreenenemys = _root.onscreenenemys + 1;
this.sethealth = _root.soldier16health;
this.restart = random(100) - 200;
this.speed = 1;
this._x = random(200) - 400;
this.alive = true;
this.health = this.sethealth;
this.dead = false;
this.gotoAndStop("function");
}
onClipEvent (enterFrame) {
if ((((((((this.alive == true) && (!this.hitTest(_root.wall))) && (!this.hitTest(_root.teslabase))) && (!this.hitTest(_root.archer1.archer))) && (!this.hitTest(_root.archer2.archer))) && (!this.hitTest(_root.archer3.archer))) && (!this.hitTest(_root.archer4.archer))) && (!this.hitTest(_root.archer5.archer))) {
this._x = this._x + this.speed;
this.legs.play();
} else {
this.legs.stop();
}
if (this.hitTest(_root.wall)) {
this.attack.play();
}
if (this.hitTest(_root.teslabase)) {
this.attack.play();
}
if (this.hitTest(_root.archer1.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer2.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer3.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer4.archer)) {
this.attack.play();
}
if (this.hitTest(_root.archer5.archer)) {
this.attack.play();
}
if (this.hurt.hitTest(_root.ball) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.ball2) && (this.health > 0)) {
this.health = this.health - _root.projectiledmg;
}
if (this.hurt.hitTest(_root.archer1.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer1power;
}
if (this.hurt.hitTest(_root.archer2.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer2power;
}
if (this.hurt.hitTest(_root.archer3.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer3power;
}
if (this.hurt.hitTest(_root.archer4.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer4power;
}
if (this.hurt.hitTest(_root.archer5.arrow1) && (this.health > 0)) {
this.health = this.health - _root.archer5power;
}
if (this.hurt.hitTest(_root.landmine1.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine2.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if (this.hurt.hitTest(_root.landmine3.mine) && (this.health > 0)) {
this.health = this.health - 5;
}
if ((this.health <= 0) && (this.alive == true)) {
_root.gold = _root.gold + _root.enemy16gold;
_root.totalgold = _root.totalgold + _root.enemy16gold;
_root.enemyskilled = _root.enemyskilled + 1;
this.alive = false;
this.play();
}
}
Instance of Symbol 627 MovieClip in Frame 84
onClipEvent (enterFrame) {
_root.enemysleft = _root.enemycount + _root.onscreenenemys;
if (_root.enemysleft == 0) {
_root.nextFrame();
}
}
Instance of Symbol 646 MovieClip "ball" in Frame 84
onClipEvent (load) {
_root.timeshot1 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex = 0;
_root.ballmovey = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot1 > 0) {
this._x = this._x + _root.ballmovex;
this._y = this._y + _root.ballmovey;
_root.timeshot1 = _root.timeshot1 - 1;
}
if (_root.timeshot1 == 4) {
this.play();
}
}
Instance of Symbol 658 MovieClip "ball2" in Frame 84
onClipEvent (load) {
_root.timeshot2 = 0;
this._x = _root.tesla._x;
this._y = _root.tesla._y;
_root.ballmovex2 = 0;
_root.ballmovey2 = 0;
this.gotoAndStop(15);
}
onClipEvent (enterFrame) {
if (_root.timeshot2 > 0) {
this._x = this._x + _root.ballmovex2;
this._y = this._y + _root.ballmovey2;
_root.timeshot2 = _root.timeshot2 - 1;
}
if (_root.timeshot2 == 4) {
this.play();
}
}
Frame 85
_root.winstats = ((("You have completed all 40 levels, collected a total of " + _root.totalgold) + " Gold, and slayed ") + _root.enemyskilled) + " enemys on your path to victory.";
stop();
Symbol 8 Button
on (release) {
getURL ("http://www.godlygamer.com", _new);
}
Symbol 19 Button
on (release) {
_root.gotoAndStop("gamestart");
}
Symbol 21 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
stopAllSounds();
Symbol 36 MovieClip Frame 1
if (Key.isDown(81)) {
_quality = "high";
gotoAndPlay (5);
}
if (Key.isDown(87)) {
_quality = "medium";
gotoAndPlay (5);
}
if (Key.isDown(69)) {
_quality = "low";
gotoAndPlay (5);
}
Symbol 36 MovieClip Frame 2
gotoAndPlay (1);
Symbol 45 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 48 Button
on (release) {
prevFrame();
}
Symbol 51 Button
on (release) {
nextFrame();
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 30
gotoAndPlay ("startwalk");
Symbol 68 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 30
gotoAndPlay ("startwalk");
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 30
gotoAndPlay ("startwalk");
Symbol 110 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 18
gotoAndPlay ("startwalk");
Symbol 133 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 30
gotoAndPlay ("startwalk");
Symbol 154 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 9
gotoAndPlay ("startwalk");
Symbol 176 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 39
gotoAndPlay ("startwalk");
Symbol 194 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
gotoAndPlay (2);
Symbol 201 MovieClip Frame 80
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 39
gotoAndPlay ("startwalk");
Symbol 216 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 30
gotoAndPlay ("startwalk");
Symbol 273 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 39
gotoAndPlay ("startwalk");
Symbol 292 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 39
gotoAndPlay ("startwalk");
Symbol 310 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
gotoAndPlay (2);
Symbol 316 MovieClip Frame 80
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 45
gotoAndPlay ("startwalk");
Symbol 337 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 45
gotoAndPlay ("startwalk");
Symbol 354 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
gotoAndPlay (2);
Symbol 397 MovieClip Frame 45
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip "attack1" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy7attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy7attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy7attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy7attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy7attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy7attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy7attack;
}
}
Instance of Symbol 247 MovieClip "attack1" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy8attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy8attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy8attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy8attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy8attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy8attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy8attack;
}
}
Instance of Symbol 254 MovieClip "attack" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy9attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy9attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy9attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy9attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy9attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy9attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy9attack;
}
}
Instance of Symbol 273 MovieClip "attack" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy10attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy10attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy10attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy10attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy10attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy10attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy10attack;
}
}
Instance of Symbol 292 MovieClip "attack" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy11attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy11attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy11attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy11attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy11attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy11attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy11attack;
}
}
Instance of Symbol 317 MovieClip "attack1" in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy12attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy12attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy12attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy12attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy12attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy12attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy12attack;
}
}
Instance of Symbol 340 MovieClip "attack1" in Symbol 409 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy13attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy13attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy13attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy13attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy13attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy13attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy13attack;
}
}
Instance of Symbol 357 MovieClip "attack1" in Symbol 409 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy14attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy14attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy14attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy14attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy14attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy14attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy14attack;
}
}
Instance of Symbol 362 MovieClip in Symbol 409 MovieClip Frame 5
onClipEvent (load) {
gotoAndPlay (3);
}
Instance of Symbol 385 MovieClip "attack" in Symbol 409 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy15attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy15attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy15attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy15attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy15attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy15attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy15attack;
}
}
Instance of Symbol 392 MovieClip in Symbol 409 MovieClip Frame 5
onClipEvent (load) {
gotoAndPlay (6);
}
Instance of Symbol 392 MovieClip in Symbol 409 MovieClip Frame 5
onClipEvent (load) {
gotoAndPlay (4);
}
Symbol 412 MovieClip Frame 1
_root.deathstats = ((((("You have completed " + (_root.level - 1)) + " of 40 levels, collected a total of ") + _root.totalgold) + " Gold, and slayed ") + _root.enemyskilled) + " enemys before you died.";
Symbol 416 MovieClip Frame 1
gotoAndPlay (2);
Symbol 416 MovieClip Frame 15
stop();
Symbol 417 MovieClip Frame 15
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 20
_root.archer4shot = true;
Symbol 438 MovieClip Frame 1
stop();
if (_root.archer4explodingarrows == true) {
play();
}
Symbol 438 MovieClip Frame 20
stop();
Symbol 439 MovieClip Frame 1
stop();
_root.archer4shooting = false;
Symbol 439 MovieClip Frame 96
gotoAndPlay(100 + _root.archer4speed);
Symbol 440 MovieClip Frame 10
stop();
Symbol 441 MovieClip Frame 1
stop();
Instance of Symbol 431 MovieClip "archer" in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer4shooting == false) {
this.play();
_root.archer4shooting = true;
}
}
Instance of Symbol 439 MovieClip "arrow1" in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer4shot == true) {
this.play();
_root.archer4shot = false;
}
}
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 20
_root.archer1shot = true;
Symbol 500 MovieClip Frame 1
stop();
if (_root.archer1explodingarrows == true) {
play();
}
Symbol 500 MovieClip Frame 20
stop();
Symbol 501 MovieClip Frame 1
stop();
_root.archer1shooting = false;
Symbol 501 MovieClip Frame 96
gotoAndPlay(100 + _root.archer1speed);
Symbol 502 MovieClip Frame 10
stop();
Symbol 503 MovieClip Frame 1
stop();
Instance of Symbol 496 MovieClip "archer" in Symbol 503 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer1shooting == false) {
this.play();
_root.archer1shooting = true;
}
}
Instance of Symbol 501 MovieClip "arrow1" in Symbol 503 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer1shot == true) {
this.play();
_root.archer1shot = false;
}
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 20
_root.archer3shot = true;
Symbol 515 MovieClip Frame 1
stop();
if (_root.archer3explodingarrows == true) {
play();
}
Symbol 515 MovieClip Frame 20
stop();
Symbol 516 MovieClip Frame 1
stop();
_root.archer3shooting = false;
Symbol 516 MovieClip Frame 96
gotoAndPlay(100 + _root.archer3speed);
Symbol 517 MovieClip Frame 10
stop();
Symbol 518 MovieClip Frame 1
stop();
Instance of Symbol 511 MovieClip "archer" in Symbol 518 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer3shooting == false) {
this.play();
_root.archer3shooting = true;
}
}
Instance of Symbol 516 MovieClip "arrow1" in Symbol 518 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer3shot == true) {
this.play();
_root.archer3shot = false;
}
}
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 20
_root.archer5shot = true;
Symbol 530 MovieClip Frame 1
stop();
if (_root.archer4explodingarrows == true) {
play();
}
Symbol 530 MovieClip Frame 20
stop();
Symbol 531 MovieClip Frame 1
stop();
_root.archer5shooting = false;
Symbol 531 MovieClip Frame 96
gotoAndPlay(100 + _root.archer5speed);
Symbol 532 MovieClip Frame 10
stop();
Symbol 533 MovieClip Frame 1
stop();
Instance of Symbol 526 MovieClip "archer" in Symbol 533 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer5shooting == false) {
this.play();
_root.archer5shooting = true;
}
}
Instance of Symbol 531 MovieClip "arrow1" in Symbol 533 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer5shot == true) {
this.play();
_root.archer5shot = false;
}
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 20
_root.archer2shot = true;
Symbol 545 MovieClip Frame 1
stop();
if (_root.archer2explodingarrows == true) {
play();
}
Symbol 545 MovieClip Frame 20
stop();
Symbol 546 MovieClip Frame 1
stop();
_root.archer2shooting = false;
Symbol 546 MovieClip Frame 96
gotoAndPlay(100 + _root.archer2speed);
Symbol 547 MovieClip Frame 10
stop();
Symbol 548 MovieClip Frame 1
stop();
Instance of Symbol 541 MovieClip "archer" in Symbol 548 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer2shooting == false) {
this.play();
_root.archer2shooting = true;
}
}
Instance of Symbol 546 MovieClip "arrow1" in Symbol 548 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.archer2shot == true) {
this.play();
_root.archer2shot = false;
}
}
Symbol 554 MovieClip Frame 20
stop();
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 25
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 26
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 27
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 28
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 29
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 30
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 36
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 37
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 38
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 39
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 554 MovieClip in Symbol 564 MovieClip Frame 40
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 564 MovieClip Frame 60
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 20
stop();
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 25
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 26
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 27
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 28
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 29
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 30
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 36
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 37
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 38
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 39
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 568 MovieClip in Symbol 577 MovieClip Frame 40
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 577 MovieClip Frame 60
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 20
stop();
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 25
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 26
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 27
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 28
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 29
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 30
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 35
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 36
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 37
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 38
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 39
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 581 MovieClip in Symbol 590 MovieClip Frame 40
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 590 MovieClip Frame 60
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 9
stop();
Symbol 604 MovieClip Frame 1
stop();
Instance of Symbol 68 MovieClip "attack" in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy1attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy1attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy1attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy1attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy1attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy1attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy1attack;
}
}
Symbol 604 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 609 Button
on (release) {
nextFrame();
}
Symbol 612 Button
on (release) {
_quality = "high";
_root.qualitydisplay.gotoAndPlay(5);
}
Symbol 615 Button
on (release) {
_quality = "medium";
_root.qualitydisplay.gotoAndPlay(5);
}
Symbol 618 Button
on (release) {
_quality = "low";
_root.qualitydisplay.gotoAndPlay(5);
}
Symbol 624 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 626 Button
on (release) {
prevFrame();
}
Symbol 627 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 15
stop();
_root.fired1 = false;
Symbol 658 MovieClip Frame 15
stop();
_root.fired2 = false;
Symbol 669 Button
on (release) {
gotoAndStop ("hire1");
}
Symbol 671 Button
on (release) {
gotoAndStop ("hire2");
}
Symbol 673 Button
on (release) {
gotoAndStop ("hire3");
}
Symbol 675 Button
on (release) {
gotoAndStop ("hire4");
}
Symbol 677 Button
on (release) {
gotoAndStop ("hire5");
}
Symbol 679 Button
on (release) {
gotoAndStop ("teslacoil");
}
Symbol 680 Button
on (release) {
gotoAndStop ("archer1");
}
Symbol 681 Button
on (release) {
gotoAndStop ("archer2");
}
Symbol 682 Button
on (release) {
gotoAndStop ("archer3");
}
Symbol 683 Button
on (release) {
gotoAndStop ("archer4");
}
Symbol 684 Button
on (release) {
gotoAndStop ("archer5");
}
Symbol 686 Button
on (release) {
_root.play();
}
Symbol 688 Button
on (release) {
gotoAndStop ("landmines");
}
Symbol 694 Button
on (release) {
if ((_root.gold >= 100) && (_root.archer1health <= 0)) {
_root.gold = _root.gold - 100;
_root.archer1active = true;
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
}
Symbol 696 Button
on (release) {
gotoAndStop ("main");
}
Symbol 700 Button
on (release) {
if ((_root.gold >= 100) && (_root.archer2health <= 0)) {
_root.gold = _root.gold - 100;
_root.archer2active = true;
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
}
Symbol 704 Button
on (release) {
if ((_root.gold >= 100) && (_root.archer3health <= 0)) {
_root.gold = _root.gold - 100;
_root.archer3active = true;
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
}
Symbol 708 Button
on (release) {
if ((_root.gold >= 100) && (_root.archer4health <= 0)) {
_root.gold = _root.gold - 100;
_root.archer4active = true;
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
}
Symbol 712 Button
on (release) {
if ((_root.gold >= 100) && (_root.archer5health <= 0)) {
_root.gold = _root.gold - 100;
_root.archer5active = true;
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
}
Symbol 717 Button
on (release) {
if (_root.gold >= 1000) {
_root.gold = _root.gold - 1000;
_root.unlockdualshock = true;
gotoAndStop (2);
}
}
Symbol 719 MovieClip Frame 1
stop();
if (_root.unlockdualshock == true) {
gotoAndStop (2);
}
Symbol 721 Button
on (release) {
gotoAndStop ("main");
}
Symbol 723 Button
on (release) {
if ((_root.gold >= 5) && (_root.teslahealth < 2500)) {
_root.gold = _root.gold - 5;
_root.teslahealth = _root.teslahealth + 50;
}
}
Symbol 725 Button
on (release) {
if ((_root.gold >= 5) && (_root.wallhealth < 1000)) {
_root.gold = _root.gold - 5;
_root.wallhealth = _root.wallhealth + 50;
}
}
Symbol 727 Button
on (release) {
if (_root.gold >= 10) {
_root.gold = _root.gold - 10;
_root.wallalive = true;
_root.wallhealth = 100;
_root.wall.gotoAndStop(1);
gotoAndStop (1);
}
}
Symbol 728 MovieClip Frame 1
stop();
if (_root.wallhealth == 0) {
gotoAndStop (2);
}
Symbol 730 Button
on (release) {
if (_root.gold >= 10) {
_root.gold = _root.gold - 10;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 733 Button
on (release) {
if (_root.gold >= 15) {
_root.gold = _root.gold - 15;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 736 Button
on (release) {
if (_root.gold >= 20) {
_root.gold = _root.gold - 20;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 739 Button
on (release) {
if (_root.gold >= 30) {
_root.gold = _root.gold - 30;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 742 Button
on (release) {
if (_root.gold >= 35) {
_root.gold = _root.gold - 35;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 745 Button
on (release) {
if (_root.gold >= 40) {
_root.gold = _root.gold - 40;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 748 Button
on (release) {
if (_root.gold >= 50) {
_root.gold = _root.gold - 50;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 751 Button
on (release) {
if (_root.gold >= 55) {
_root.gold = _root.gold - 55;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 754 Button
on (release) {
if (_root.gold >= 60) {
_root.gold = _root.gold - 60;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 757 Button
on (release) {
if (_root.gold >= 65) {
_root.gold = _root.gold - 65;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 760 Button
on (release) {
if (_root.gold >= 70) {
_root.gold = _root.gold - 70;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 763 Button
on (release) {
if (_root.gold >= 80) {
_root.gold = _root.gold - 80;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 766 Button
on (release) {
if (_root.gold >= 90) {
_root.gold = _root.gold - 90;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 769 Button
on (release) {
if (_root.gold >= 100) {
_root.gold = _root.gold - 100;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 772 Button
on (release) {
if (_root.gold >= 110) {
_root.gold = _root.gold - 110;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 775 Button
on (release) {
if (_root.gold >= 120) {
_root.gold = _root.gold - 120;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 778 Button
on (release) {
if (_root.gold >= 130) {
_root.gold = _root.gold - 130;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 781 Button
on (release) {
if (_root.gold >= 140) {
_root.gold = _root.gold - 140;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 784 Button
on (release) {
if (_root.gold >= 150) {
_root.gold = _root.gold - 150;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 787 Button
on (release) {
if (_root.gold >= 160) {
_root.gold = _root.gold - 160;
_root.projectilespeed = _root.projectilespeed - 1;
nextFrame();
}
}
Symbol 793 MovieClip Frame 1
stop();
if (_root.projectilespeed == 40) {
gotoAndStop (1);
}
if (_root.projectilespeed == 39) {
gotoAndStop (2);
}
if (_root.projectilespeed == 38) {
gotoAndStop (3);
}
if (_root.projectilespeed == 37) {
gotoAndStop (4);
}
if (_root.projectilespeed == 36) {
gotoAndStop (5);
}
if (_root.projectilespeed == 35) {
gotoAndStop (6);
}
if (_root.projectilespeed == 34) {
gotoAndStop (7);
}
if (_root.projectilespeed == 33) {
gotoAndStop (8);
}
if (_root.projectilespeed == 32) {
gotoAndStop (9);
}
if (_root.projectilespeed == 31) {
gotoAndStop (10);
}
if (_root.projectilespeed == 30) {
gotoAndStop (11);
}
if (_root.projectilespeed == 29) {
gotoAndStop (12);
}
if (_root.projectilespeed == 28) {
gotoAndStop (13);
}
if (_root.projectilespeed == 27) {
gotoAndStop (14);
}
if (_root.projectilespeed == 26) {
gotoAndStop (15);
}
if (_root.projectilespeed == 25) {
gotoAndStop (16);
}
if (_root.projectilespeed == 24) {
gotoAndStop (17);
}
if (_root.projectilespeed == 23) {
gotoAndStop (18);
}
if (_root.projectilespeed == 22) {
gotoAndStop (19);
}
if (_root.projectilespeed == 21) {
gotoAndStop (20);
}
if (_root.projectilespeed == 20) {
gotoAndStop (21);
}
Symbol 795 Button
on (release) {
if (_root.gold >= 50) {
_root.gold = _root.gold - 50;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 798 Button
on (release) {
if (_root.gold >= 100) {
_root.gold = _root.gold - 100;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 801 Button
on (release) {
if (_root.gold >= 150) {
_root.gold = _root.gold - 150;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 804 Button
on (release) {
if (_root.gold >= 200) {
_root.gold = _root.gold - 200;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 807 Button
on (release) {
if (_root.gold >= 250) {
_root.gold = _root.gold - 250;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 810 Button
on (release) {
if (_root.gold >= 300) {
_root.gold = _root.gold - 300;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 813 Button
on (release) {
if (_root.gold >= 350) {
_root.gold = _root.gold - 350;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 816 Button
on (release) {
if (_root.gold >= 400) {
_root.gold = _root.gold - 400;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 819 Button
on (release) {
if (_root.gold >= 450) {
_root.gold = _root.gold - 450;
_root.projectiledmg = _root.projectiledmg + 1;
nextFrame();
}
}
Symbol 825 MovieClip Frame 1
stop();
gotoAndStop(_root.projectiledmg);
Symbol 833 Button
on (release) {
if (_root.gold >= 10) {
_root.gold = _root.gold - 10;
_root.landmine1active = true;
nextFrame();
}
}
Symbol 835 MovieClip Frame 1
stop();
if (_root.landmine1active == true) {
gotoAndStop (2);
}
Symbol 837 Button
on (release) {
if (_root.gold >= 10) {
_root.gold = _root.gold - 10;
_root.landmine2active = true;
nextFrame();
}
}
Symbol 839 MovieClip Frame 1
stop();
if (_root.landmine2active == true) {
gotoAndStop (2);
}
Symbol 841 Button
on (release) {
if (_root.gold >= 10) {
_root.gold = _root.gold - 10;
_root.landmine3active = true;
nextFrame();
}
}
Symbol 843 MovieClip Frame 1
stop();
if (_root.landmine3active == true) {
gotoAndStop (2);
}
Symbol 848 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer1explodingarrows = true;
gotoAndStop (2);
}
}
Symbol 850 MovieClip Frame 1
stop();
if (_root.archer1explodingarrows == true) {
gotoAndStop (2);
}
Symbol 854 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
_root.archer1power = _root.archer1power + 1;
nextFrame();
}
}
Symbol 861 MovieClip Frame 1
stop();
gotoAndStop(_root.archer1power);
Symbol 865 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer1speed = _root.archer1speed + 1;
nextFrame();
}
}
Symbol 908 MovieClip Frame 1
stop();
gotoAndStop(_root.archer1speed + 1);
Symbol 912 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
_root.archer2power = _root.archer2power + 1;
nextFrame();
}
}
Symbol 913 MovieClip Frame 1
stop();
gotoAndStop(_root.archer2power);
Symbol 914 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer2explodingarrows = true;
gotoAndStop (2);
}
}
Symbol 915 MovieClip Frame 1
stop();
if (_root.archer2explodingarrows == true) {
gotoAndStop (2);
}
Symbol 916 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer2speed = _root.archer2speed + 1;
nextFrame();
}
}
Symbol 917 MovieClip Frame 1
stop();
gotoAndStop(_root.archer2speed + 1);
Symbol 921 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
_root.archer3power = _root.archer3power + 1;
nextFrame();
}
}
Symbol 922 MovieClip Frame 1
stop();
gotoAndStop(_root.archer3power);
Symbol 923 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer3explodingarrows = true;
gotoAndStop (2);
}
}
Symbol 924 MovieClip Frame 1
stop();
if (_root.archer3explodingarrows == true) {
gotoAndStop (2);
}
Symbol 925 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer3speed = _root.archer3speed + 1;
nextFrame();
}
}
Symbol 926 MovieClip Frame 1
stop();
gotoAndStop(_root.archer3speed + 1);
Symbol 930 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
_root.archer4power = _root.archer4power + 1;
nextFrame();
}
}
Symbol 931 MovieClip Frame 1
stop();
gotoAndStop(_root.archer4power);
Symbol 932 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer4explodingarrows = true;
gotoAndStop (2);
}
}
Symbol 933 MovieClip Frame 1
stop();
if (_root.archer4explodingarrows == true) {
gotoAndStop (2);
}
Symbol 934 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer4speed = _root.archer4speed + 1;
nextFrame();
}
}
Symbol 935 MovieClip Frame 1
stop();
gotoAndStop(_root.archer4speed + 1);
Symbol 939 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
_root.archer5power = _root.archer5power + 1;
nextFrame();
}
}
Symbol 940 MovieClip Frame 1
stop();
gotoAndStop(_root.archer5power);
Symbol 941 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer5explodingarrows = true;
gotoAndStop (2);
}
}
Symbol 942 MovieClip Frame 1
stop();
if (_root.archer5explodingarrows == true) {
gotoAndStop (2);
}
Symbol 943 Button
on (release) {
if (_root.gold >= 5) {
_root.gold = _root.gold - 5;
_root.archer5speed = _root.archer5speed + 1;
nextFrame();
}
}
Symbol 944 MovieClip Frame 1
stop();
gotoAndStop(_root.archer5speed + 1);
Symbol 945 MovieClip Frame 1
stop();
Instance of Symbol 86 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 86 MovieClip in Symbol 948 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Symbol 957 MovieClip Frame 9
stop();
Symbol 958 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip "attack" in Symbol 958 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy2attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy2attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy2attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy2attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy2attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy2attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy2attack;
}
}
Symbol 958 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 973 MovieClip Frame 9
stop();
Symbol 974 MovieClip Frame 1
stop();
Instance of Symbol 110 MovieClip "attack" in Symbol 974 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy2attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy2attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy2attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy2attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy2attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy2attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy2attack;
}
}
Symbol 974 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 985 MovieClip Frame 9
stop();
Symbol 986 MovieClip Frame 1
stop();
Instance of Symbol 136 MovieClip "attack1" in Symbol 986 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy4attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy4attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy4attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy4attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy4attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy4attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy4attack;
}
}
Symbol 986 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 997 MovieClip Frame 9
stop();
Symbol 998 MovieClip Frame 1
stop();
Instance of Symbol 154 MovieClip "attack" in Symbol 998 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy5attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy5attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy5attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy5attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy5attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy5attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy5attack;
}
}
Symbol 998 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1009 MovieClip Frame 9
stop();
Symbol 1010 MovieClip Frame 1
stop();
Instance of Symbol 176 MovieClip "attack" in Symbol 1010 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy6attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy6attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy6attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy6attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy6attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy6attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy6attack;
}
}
Symbol 1010 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Instance of Symbol 254 MovieClip "attack" in Symbol 1012 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy9attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy9attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy9attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy9attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy9attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy9attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy9attack;
}
}
Symbol 1013 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "attack" in Symbol 1013 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy9attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy9attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy9attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy9attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy9attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy9attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy9attack;
}
}
Symbol 1013 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1026 MovieClip Frame 9
stop();
Symbol 1027 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip "attack1" in Symbol 1027 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy7attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy7attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy7attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy7attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy7attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy7attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy7attack;
}
}
Symbol 1027 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1039 MovieClip Frame 9
stop();
Symbol 1040 MovieClip Frame 1
stop();
Instance of Symbol 247 MovieClip "attack1" in Symbol 1040 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy8attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy8attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy8attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy8attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy8attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy8attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy8attack;
}
}
Symbol 1040 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1051 MovieClip Frame 9
stop();
Symbol 1052 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip "attack" in Symbol 1052 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy10attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy10attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy10attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy10attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy10attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy10attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy10attack;
}
}
Symbol 1052 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1064 MovieClip Frame 9
stop();
Symbol 1065 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip "attack" in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy11attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy11attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy11attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy11attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy11attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy11attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy11attack;
}
}
Symbol 1065 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1078 MovieClip Frame 9
stop();
Symbol 1079 MovieClip Frame 1
stop();
Instance of Symbol 317 MovieClip "attack1" in Symbol 1079 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy12attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy12attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy12attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy12attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy12attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy12attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy12attack;
}
}
Symbol 1079 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1090 MovieClip Frame 9
stop();
Symbol 1091 MovieClip Frame 1
stop();
Instance of Symbol 354 MovieClip "attack" in Symbol 1091 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy14attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy14attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy14attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy14attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy14attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy14attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy14attack;
}
}
Symbol 1091 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1102 MovieClip Frame 9
stop();
Symbol 1103 MovieClip Frame 1
stop();
Instance of Symbol 337 MovieClip "attack" in Symbol 1103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy13attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy13attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy13attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy13attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy13attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy13attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy13attack;
}
}
Symbol 1103 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Instance of Symbol 362 MovieClip in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (3);
}
Symbol 1118 MovieClip Frame 9
stop();
Symbol 1119 MovieClip Frame 1
stop();
Instance of Symbol 362 MovieClip in Symbol 1119 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (3);
}
Instance of Symbol 385 MovieClip "attack" in Symbol 1119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy15attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy15attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy15attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy15attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy15attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy15attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy15attack;
}
}
Symbol 1119 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Instance of Symbol 392 MovieClip in Symbol 1123 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (3);
}
Symbol 1132 MovieClip Frame 9
stop();
Symbol 1133 MovieClip Frame 1
stop();
Instance of Symbol 392 MovieClip in Symbol 1133 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (6);
}
Instance of Symbol 398 MovieClip "attack" in Symbol 1133 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall)) {
_root.wallhealth = _root.wallhealth - _root.enemy16attack;
}
if (this.hitTest(_root.teslabase)) {
_root.teslahealth = _root.teslahealth - _root.enemy16attack;
}
if (this.hitTest(_root.archer1.archer)) {
_root.archer1health = _root.archer1health - _root.enemy16attack;
}
if (this.hitTest(_root.archer2.archer)) {
_root.archer2health = _root.archer2health - _root.enemy16attack;
}
if (this.hitTest(_root.archer3.archer)) {
_root.archer3health = _root.archer3health - _root.enemy16attack;
}
if (this.hitTest(_root.archer4.archer)) {
_root.archer4health = _root.archer4health - _root.enemy16attack;
}
if (this.hitTest(_root.archer5.archer)) {
_root.archer5health = _root.archer5health - _root.enemy16attack;
}
}
Instance of Symbol 392 MovieClip in Symbol 1133 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (4);
}
Symbol 1133 MovieClip Frame 30
stop();
_root.onscreenenemys = _root.onscreenenemys - 1;
dead = true;
Symbol 1142 Button
on (release) {
_root.level = 1;
gotoAndPlay (7);
}
Symbol 1144 Button
on (release) {
gotoAndStop ("start");
}