Frame 1
stop();
q = 0;
Stage.showMenu = false;
Frame 2
stop();
level = 1;
money = (moneyD = 0);
lChance = 100;
rChance = 100;
moreDmg = false;
faster = false;
noPower = false;
invinc = false;
triple = false;
quick = false;
Instance of Symbol 41 MovieClip "arrowgen" in Frame 3
onClipEvent (load) {
stop();
if (_name != "arrowgen") {
if (_root.noPower == false) {
run = (Math.cos((_rotation * Math.PI) / 180) * _root.warriors.champ.bar.barsec._yscale) / 5;
rise = (Math.sin((_rotation * Math.PI) / 180) * _root.warriors.champ.bar.barsec._yscale) / 5;
} else {
run = Math.cos((_rotation * Math.PI) / 180) * 20;
rise = Math.sin((_rotation * Math.PI) / 180) * 20;
}
move = true;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 3) {
removeMovieClip(this);
}
if (_name != "arrowgen") {
if (move == true) {
_x = (_x + run);
_y = (_y + rise);
rise = rise + 0.5;
_rotation = ((Math.atan2(rise, run) * 180) / Math.PI);
if (_y >= ground) {
move = false;
gotoAndStop (3);
}
for (i in _root.warriors) {
if (_root.warriors[i].side == "right") {
if (_root.warriors[i].hit.hitTest(_x, _y, true) && (_root.warriors[i].health > 0)) {
if (_root.moreDmg == false) {
_root.warriors[i].health = _root.warriors[i].health - 4;
} else {
_root.warriors[i].health = _root.warriors[i].health - 5;
}
if (_root.warriors[i].health <= 0) {
_root.money = _root.money + 5;
}
stuck = true;
move = false;
tar = i;
gotoAndStop (2);
break;
}
if (_root.warriors[i].hitHead.hitTest(_x, _y, true) && (_root.warriors[i].health > 0)) {
_root.warriors[i].health = _root.warriors[i].health - 10;
_root.money = _root.money + 15;
stuck = true;
move = false;
tar = i;
gotoAndStop (2);
break;
}
}
}
} else {
_alpha = (_alpha - 1);
if (_alpha == 0) {
removeMovieClip(this);
}
}
if (stuck == true) {
if (_root.warriors[tar].health <= 0) {
removeMovieClip(this);
}
_x = _root.warriors[tar]._x;
}
}
}
Instance of Symbol 158 MovieClip "warriors" in Frame 3
onClipEvent (load) {
_y = 0;
_x = 0;
}
Instance of Symbol 168 MovieClip "victory" in Frame 3
onClipEvent (load) {
_visible = false;
_root.victory = undefined;
}
onClipEvent (enterFrame) {
if (_visible == false) {
if (_root.victory == true) {
gotoAndStop (1);
_visible = true;
} else if (_root.victory == false) {
gotoAndStop (2);
_visible = true;
}
}
}
Instance of Symbol 170 MovieClip in Frame 3
onClipEvent (load) {
_root.moneyD = 0;
}
onClipEvent (enterFrame) {
if (_root.moneyD < _root.money) {
_root.moneyD = _root.moneyD + 2;
if (_root.moneyD > _root.money) {
_root.moneyD = _root.money;
}
}
}
Instance of Symbol 176 MovieClip in Frame 3
onClipEvent (load) {
if (_root.invinc == false) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.moreDmg == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.moreDmg == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.faster == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.faster == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.noPower == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.noPower == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.invinc == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.invinc == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 203 MovieClip in Frame 4
on (release) {
if ((_root.money >= 3500) && (_root.triple == false)) {
_root.money = _root.money - 3500;
_root.moneyD = _root.money;
_root.triple = true;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.triple == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.triple == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 207 MovieClip in Frame 4
on (release) {
if ((_root.money >= 7000) && (_root.quick == false)) {
_root.money = _root.money - 7000;
_root.moneyD = _root.money;
_root.quick = true;
}
}
Instance of Symbol 191 MovieClip in Frame 4
onClipEvent (load) {
if (_root.quick == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.quick == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 3 Button
on (release) {
getURL ("http://www.stickpage.com", _blank);
}
Symbol 9 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 29 Button
on (release) {
gotoAndStop (3);
}
Symbol 34 Button
on (release) {
getURL ("http://www.stickpage.com", _blank);
}
Symbol 106 MovieClip Frame 14
gotoAndPlay (1);
Symbol 106 MovieClip Frame 36
for (i in _root.warriors) {
if (_root.warriors[i]._name != "champ") {
if (((side == "left") && (_root.warriors[i].side == "right")) || ((side == "right") && (_root.warriors[i].side == "left"))) {
if (hitTest(_root.warriors[i])) {
_root.warriors[i].health = _root.warriors[i].health - (random(6) + 1);
break;
}
}
}
}
if ((side == "right") && (hitTest(_root.warriors.champ))) {
_root.warriors.champ.health = _root.warriors.champ.health - (random(6) + 1);
}
Symbol 106 MovieClip Frame 47
gotoAndPlay (1);
Symbol 106 MovieClip Frame 62
removeMovieClip(this);
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 6
if (_root.quick == true) {
gotoAndPlay (21);
}
Symbol 134 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 135 MovieClip "barsec" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
rise = 6.66666666666667;
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + rise);
if ((_yscale >= 100) || (_yscale <= 0)) {
rise = -rise;
}
}
Instance of Symbol 134 MovieClip "arms" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
if (_root.setListen != true) {
click = new Object();
click.onMouseDown = function () {
if (_currentframe == 1) {
if (_root.noPower == false) {
_parent.bar._visible = true;
_parent.bar.barsec._yscale = 0;
_parent.bar.barsec.rise = 6.66666666666667;
} else {
if (_root.triple == true) {
duplicateMovieClip (_root.arrowgen, "arrow" + _root.q, _root.q);
_root["arrow" + _root.q]._x = _parent._x + _x;
_root["arrow" + _root.q]._y = _parent._y + _y;
_root["arrow" + _root.q]._rotation = (((Math.atan2((_root._ymouse - _parent._y) - _y, _root._xmouse - _parent._x) * 180) / Math.PI) + (random(300) / 100)) - 1.5;
_root["arrow" + _root.q].ground = _parent._y + 12;
_root.q++;
}
duplicateMovieClip (_root.arrowgen, "arrow" + _root.q, _root.q);
_root["arrow" + _root.q]._x = _parent._x + _x;
_root["arrow" + _root.q]._y = _parent._y + _y;
_root["arrow" + _root.q]._rotation = (((Math.atan2((_root._ymouse - _parent._y) - _y, _root._xmouse - _parent._x) * 180) / Math.PI) + (random(300) / 100)) - 1.5;
_root["arrow" + _root.q].ground = _parent._y + 12;
_root.q++;
play();
}
}
};
click.onMouseUp = function () {
if (_parent.bar._visible == true) {
if (_root.noPower == false) {
if (_root.triple == true) {
duplicateMovieClip (_root.arrowgen, "arrow" + _root.q, _root.q);
_root["arrow" + _root.q]._x = _parent._x + _x;
_root["arrow" + _root.q]._y = _parent._y + _y;
_root["arrow" + _root.q]._rotation = (((Math.atan2((_root._ymouse - _parent._y) - _y, _root._xmouse - _parent._x) * 180) / Math.PI) + (random(300) / 100)) - 1.5;
_root["arrow" + _root.q].ground = _parent._y + 12;
_root.q++;
}
duplicateMovieClip (_root.arrowgen, "arrow" + _root.q, _root.q);
_root["arrow" + _root.q]._x = _parent._x + _x;
_root["arrow" + _root.q]._y = _parent._y + _y;
_root["arrow" + _root.q]._rotation = (((Math.atan2((_root._ymouse - _parent._y) - _y, _root._xmouse - _parent._x) * 180) / Math.PI) + (random(300) / 100)) - 1.5;
_root["arrow" + _root.q].ground = _parent._y + 12;
_root.q++;
play();
_parent.bar._visible = false;
}
}
};
Mouse.addListener(click);
_root.setListen = true;
}
}
onClipEvent (enterFrame) {
if ((_parent._xscale == 100) || (Key.isDown(68) && (_parent._x < 570))) {
_rotation = ((Math.atan2((_root._ymouse - _parent._y) - _y, _root._xmouse - _parent._x) * 180) / Math.PI);
} else if ((_parent._xscale == -100) || (Key.isDown(65) && (_parent._x > 30))) {
_rotation = ((Math.atan2((_root._ymouse - _parent._y) - _y, _parent._x - _root._xmouse) * 180) / Math.PI);
}
}
Instance of Symbol 137 MovieClip "bar" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 157 MovieClip Frame 13
gotoAndStop (1);
Symbol 157 MovieClip Frame 33
_x = -500;
Instance of Symbol 106 MovieClip "warriorgen" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
if (_name == "warriorgen") {
_root.q++;
lChance = _root.lChance;
rChance = _root.rChance;
if (_root.level == 6) {
_root.rChance = _root.rChance + 15;
}
_root.lChance = (lChance = lChance * 1.08);
_root.rChance = (rChance = rChance * 0.95);
} else {
if (side == "right") {
my_color = new Color(this);
my_color.setRGB(4473924);
}
dead = false;
health = 10;
hitDist = 15 + random(15);
if (((_root.level > 5) && (side == "right")) && (random(10) == 0)) {
health = 25;
hitDist = hitDist * 2;
_xscale = -200;
_yscale = 200;
_y = (_y - 25);
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 3) {
removeMovieClip(this);
}
if (_name == "warriorgen") {
if ((random(lChance) == 0) && (_root.victory != false)) {
duplicateMovieClip (this, "warrior" + _root.q, _root.q);
_root.warriors["warrior" + _root.q]._x = -30;
_root.warriors["warrior" + _root.q]._y = 320 + random(30);
_root.warriors["warrior" + _root.q].speed = 1 + (random(100) / 500);
if (_root.faster == true) {
_root.warriors["warrior" + _root.q].speed = _root.warriors["warrior" + _root.q].speed + 1;
}
_root.warriors["warrior" + _root.q].side = "left";
_root.q++;
}
if ((random(rChance) == 0) && (_root.victory != true)) {
duplicateMovieClip (this, "warrior" + _root.q, _root.q);
_root.warriors["warrior" + _root.q]._x = 630;
_root.warriors["warrior" + _root.q]._xscale = -100;
_root.warriors["warrior" + _root.q]._y = 320 + random(30);
_root.warriors["warrior" + _root.q].speed = -1 - (random(100) / 500);
_root.warriors["warrior" + _root.q].side = "right";
_root.q++;
}
} else {
if ((_x > 600) && (side == "left")) {
_root.victory = true;
}
if ((_x < 0) && (side == "right")) {
_root.victory = false;
}
if ((_x > 650) || (_x < -50)) {
removeMovieClip(this);
}
if (health > 0) {
move = true;
for (i in _root.warriors) {
if (((side == "left") && (_root.warriors[i].side == "right")) || ((side == "right") && (_root.warriors[i].side == "left"))) {
if ((_root.warriors[i]._name != "champ") || (_root.invinc == false)) {
if (Math.abs(_root.warriors[i]._x - _x) < hitDist) {
move = false;
}
}
}
}
if ((move == true) && (_currentframe < 15)) {
_x = (_x + speed);
} else if (_currentframe < 15) {
gotoAndPlay(15 + random(7));
}
} else if (_currentframe < 48) {
gotoAndPlay (48);
}
}
}
Instance of Symbol 157 MovieClip "champ" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
_x = 50;
_y = 340;
side = "left";
health = 25;
}
onClipEvent (enterFrame) {
if (_root._currentframe != 3) {
removeMovieClip(this);
}
if (_root.invinc) {
health = 25;
}
if (_currentframe < 14) {
move = false;
if (Key.isDown(68) && (_x < 570)) {
move = true;
_x = (_x + 1);
_xscale = 100;
} else if (Key.isDown(65) && (_x > 30)) {
move = true;
_x = (_x - 1);
_xscale = -100;
}
if (Key.isDown(87) && (_y > 300)) {
move = true;
_y = (_y - 0.4);
} else if (Key.isDown(83) && (_y < 375)) {
move = true;
_y = (_y + 0.4);
}
if (move == true) {
play();
} else {
gotoAndStop (1);
}
if (health <= 0) {
gotoAndPlay (14);
}
} else {
health = 0;
}
}
Symbol 163 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 167 Button
on (release) {
_root.gotoAndStop(2);
}
Instance of Symbol 174 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.warriors.champ.health / 25) * 100);
}
Symbol 182 MovieClip Frame 35
stop();
Symbol 185 Button
on (release) {
_root.level++;
_root.gotoAndStop(3);
}
Symbol 189 Button
on (release) {
if ((_root.money >= 100) && (_root.moreDmg == false)) {
_root.money = _root.money - 100;
_root.moneyD = _root.money;
_root.moreDmg = true;
}
}
Symbol 194 Button
on (release) {
if ((_root.money >= 300) && (_root.faster == false)) {
_root.money = _root.money - 300;
_root.moneyD = _root.money;
_root.faster = true;
}
}
Symbol 197 Button
on (release) {
if ((_root.money >= 1500) && (_root.noPower == false)) {
_root.money = _root.money - 1500;
_root.moneyD = _root.money;
_root.noPower = true;
}
}
Symbol 200 Button
on (release) {
if ((_root.money >= 500) && (_root.invinc == false)) {
_root.money = _root.money - 500;
_root.moneyD = _root.money;
_root.invinc = true;
}
}