Frame 1
stop();
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent.play();
} else {
this.bar.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
this.text = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
}
}
Frame 2
stop();
Instance of Symbol 36 MovieClip "backgroundMovie" in Frame 2
onClipEvent (load) {
_root.generatefromRight = 1;
_root.generateFromLeft = 1;
_root.generatefromRightTop = 1;
_root.generateFromLeftTop = 0;
}
onClipEvent (enterFrame) {
_root.bgbounds = this.getBounds(_root);
if (_root.bgbounds.xMin >= -50) {
_root.scrollingBGL = 0;
} else {
_root.scrollingBGL = 1;
}
if (-1150 >= _root.bgbounds.xMin) {
_root.scrollingBGR = 0;
} else {
_root.scrollingBGR = 1;
}
if (((-50 >= _root.bgbounds.xMin) && (_root.bgbounds.xMax >= 1777)) && (_root.stickie.onFloor)) {
_root.generateFromRightTop = 1;
} else {
_root.generateFromRightTop = 0;
}
if (((-1140 >= _root.bgbounds.xMin) && (5 < _root.badmancounter)) && (!_root.bossgenerated)) {
_root.generateboss = 1;
}
}
Instance of Symbol 233 MovieClip "stickie" in Frame 2
onClipEvent (load) {
this.hitpoints = 20;
this.hitawallleft = 0;
this.hitawallright = 0;
this.onFloor = 1;
}
Instance of Symbol 239 MovieClip "badman" in Frame 2
onClipEvent (load) {
if (_root.generateboss) {
this.iq = 10;
this.hitpoints = 20;
this.boss = 1;
} else {
this.iq = random(9) + 1;
this.hitpoints = random(15);
}
}
Frame 3
this.doors.play();
stop();
Frame 4
function CollisionDetection(striking, struck) {
if (_root[striking].onFloor == _root[struck].onFloor) {
if (_root[striking].direction == "left") {
distance = _root[striking + "Bounds"].xMin - _root[struck + "Bounds"].xMax;
} else {
distance = _root[struck + "Bounds"].xMin - _root[striking + "Bounds"].xMax;
}
if (_root[striking].direction == _root[struck].direction) {
outerreach = _root[striking].outerreach + 5;
innerreach = _root[striking].innerreach + 5;
} else {
outerreach = _root[striking].outerreach;
innerreach = _root[striking].innerreach;
}
if ((innerreach < distance) && (distance < outerreach)) {
contact = 1;
} else {
contact = 0;
}
if ((_root[striking].direction == _root[struck].direction) && (contact)) {
if (_root[struck].direction == "left") {
_root[struck].direction = "right";
} else {
_root[struck].direction = "left";
}
}
} else {
contact = 0;
}
return(contact);
}
stop();
Instance of Symbol 260 MovieClip "timer" in Frame 4
onClipEvent (load) {
_root.badmancounter = 1;
_root.enemies = new Array("1", "2", "3", "4", "5");
enemyWaveTimer = getTimer();
spacing = 3000;
_root.lowery = 296;
_root.uppery = 182;
nextWave = enemyWaveTimer + spacing;
_root.NumberOfEnemies = 1;
_root.enemiesOnScreen = 5;
}
onClipEvent (enterFrame) {
if (_root.generateboss) {
if (!_root.bossgenerated) {
i = _root.enemies.pop();
_root.badman.duplicateMovieClip("badman" + i, i);
_root["badman" + i]._y = _root.lowery;
_root["badman" + i]._x = 550;
_root["badman" + i].onFloor = 1;
_root.bossgenerated = 1;
_root.badmancounter++;
_root.numberOfEnemies++;
_root["badman" + i].gotoAndStop("boss");
}
nextwave = getTimer() * 2;
}
if (_root.numberOfEnemies < _root.enemiesOnScreen) {
if (nextWave < getTimer()) {
spacing = (_root.numberofEnemies + 2) * 1000;
i = _root.enemies.pop();
_root.badman.duplicateMovieClip("badman" + i, i);
myColour = new Color(_root["badman" + i]);
myColourTransform = new Object();
newtaint = random(3);
if (newtaint == 2) {
myColourTransform.rb = 80 + random(145);
myColourTransform.gb = random(110);
myColourTransform.bb = random(110);
} else if (newtaint == 1) {
myColourTransform.rb = random(110);
myColourTransform.gb = 80 + random(145);
myColourTransform.bb = random(110);
} else {
myColourTransform.rb = random(110);
myColourTransform.gb = random(110);
myColourTransform.bb = 80 + random(145);
}
myColourTransform.ra = random(100);
myColourTransform.ba = random(100);
myColourTransform.ga = random(100);
myColourTransform.aa = 100;
myColourTransform.ab = 100;
myColour.setTransform(myColourTransform);
xgenerate = "generateFrom";
if (random(2)) {
xgenerate = xgenerate + "Left";
} else {
xgenerate = xgenerate + "Right";
}
if ((!_root[xgenerate + "Top"]) && (!_root[xgenerate])) {
if (xgenerate == "generateFromLeft") {
xgenerate = "generateFromRight";
} else {
xgenerate = "generateFromLeft";
}
}
if (xgenerate == "generateFromLeft") {
_root["badman" + i]._x = 0;
} else {
_root["badman" + i]._x = 550;
}
if (_root[xgenerate + "Top"] && (_root[xgenerate])) {
if (random(2)) {
_root["badman" + i]._y = _root.lowery;
_root["badman" + i].onFloor = 1;
} else {
_root["badman" + i]._y = _root.uppery;
_root["badman" + i].onFloor = 0;
}
} else if (_root[xgenerate]) {
_root["badman" + i]._y = _root.lowery;
_root["badman" + i].onFloor = 1;
} else {
_root["badman" + i]._y = _root.uppery;
_root["badman" + i].onFloor = 0;
}
nextwave = getTimer() + spacing;
_root.badmancounter++;
_root.numberOfEnemies++;
}
}
}
Instance of Symbol 261 MovieClip "energybar" in Frame 4
onClipEvent (load) {
this.gotoAndStop(100);
}
Frame 5
var i = 1;
while (i < 6) {
_root["badman" + i].removeMovieClip();
i++;
}
this.doors.play();
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 11
_parent.play();
stop();
Symbol 4 MovieClip Frame 15
stop();
_root.result = ("<center>Your Score was " + _root.score) + ".<br>For you the wise man says;<br>";
if (_parent.score >= 1200) {
_root.result = _root.result + "Your kung-fu is strong. Master Bruce move over, you is the high kicking sheznit";
} else if (_parent.score >= 1000) {
_root.result = _root.result + " Your kung-fu is strong. Many warriors walk in fear of your skills, and your breath";
} else if (_parent.score >= 700) {
_root.result = _root.result + "You do your school credit, many will die before you. ";
} else if (_parent.score >= 700) {
_root.result = _root.result + "Buddha be praised! for one so young you are most eloquant!";
} else if (_parent.score >= 600) {
_root.result = _root.result + "Your kung-fu is strong but you lack focus, eat more carrots.";
} else if (_parent.score >= 500) {
_root.result = _root.result + "Your undoing is your stupidity, try harder fat one.";
} else if (_parent.score >= 400) {
_root.result = _root.result + "Your undoing is your stupidity, try harder fat one.";
} else if (_parent.score >= 300) {
_root.result = _root.result + "You powers are failing old man, you are slow and your technique is sloppy like your mind.";
} else if (_parent.score >= 200) {
_root.result = _root.result + "Ha! Nice Technique, I must use it on your sister.";
} else if (_parent.score >= 100) {
_root.result = _root.result + "Your kung-fu is weak, next time i will send my sister to fight you.";
} else {
_root.result = _root.result + "Lay off the noodles fat boy.";
}
_root.result = _root.result + "</center>";
Symbol 11 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 6
gotoAndPlay (1);
Instance of Symbol 25 MovieClip "ladder1" in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ladder1Bounds = this.getBounds(_root);
}
Instance of Symbol 26 MovieClip "ladder2" in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ladder2Bounds = this.getBounds(_root);
}
Instance of Symbol 27 MovieClip "ladder3" in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ladder3Bounds = this.getBounds(_root);
}
Instance of Symbol 28 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
Wallbounds = this.getBounds(_root);
if (_root.stickie.onFloor) {
if ((Wallbounds.xMin < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMin)) {
_root.stickie.gotoAndStop("static right");
_root.stickie.attacking = "";
_root.stickie.hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMax)) {
_root.stickie.gotoAndStop("static left");
_root.stickie.attacking = "";
_root.stickie.hitaWallLeft = 1;
}
}
var i = 1;
while (_root.enemiesOnScreen >= i) {
thisbadman = "badman" + i;
if (0 < _root[thisbadman].hitpoints) {
if (_root[thisbadman].onFloor) {
if ((Wallbounds.xMin < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMin)) {
_root[thisbadman].gotoAndStop("static right");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMax)) {
_root[thisbadman].gotoAndStop("static left");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallLeft = 1;
}
}
}
i++;
}
}
Instance of Symbol 29 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
Wallbounds = this.getBounds(_root);
if (!_root.stickie.onFloor) {
if ((Wallbounds.xMin < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMin)) {
_root.stickie.gotoAndStop("static right");
_root.stickie.attacking = "";
_root.stickie.hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMax)) {
_root.stickie.gotoAndStop("static left");
_root.stickie.attacking = "";
_root.stickie.hitaWallLeft = 1;
}
}
var i = 1;
while (_root.enemiesOnScreen >= i) {
thisbadman = "badman" + i;
if (0 < _root[thisbadman].hitpoints) {
if (!_root[thisbadman].onFloor) {
if ((Wallbounds.xMin < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMin)) {
_root[thisbadman].gotoAndStop("static right");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMax)) {
_root[thisbadman].gotoAndStop("static left");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallLeft = 1;
}
}
}
i++;
}
}
Instance of Symbol 30 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
Wallbounds = this.getBounds(_root);
if (!_root.stickie.onFloor) {
if ((Wallbounds.xMin < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMin)) {
_root.stickie.gotoAndStop("static right");
_root.stickie.attacking = "";
_root.stickie.hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root.stickieBounds.xMax) && (_root.stickiebounds.xMin < Wallbounds.xMax)) {
_root.stickie.gotoAndStop("static left");
_root.stickie.attacking = "";
_root.stickie.hitaWallLeft = 1;
}
}
var i = 1;
while (_root.enemiesOnScreen >= i) {
thisbadman = "badman" + i;
if (0 < _root[thisbadman].hitpoints) {
if (!_root[thisbadman].onFloor) {
if ((Wallbounds.xMin < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMin)) {
_root[thisbadman].gotoAndStop("static right");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallRight = 1;
} else if ((Wallbounds.xMax < _root[thisbadman + "Bounds"].xMax) && (_root[thisbadman + "Bounds"].xMin < Wallbounds.xMax)) {
_root[thisbadman].gotoAndStop("static left");
_root[thisbadman].attacking = "";
_root[thisbadman].hitaWallLeft = 1;
}
}
}
i++;
}
}
Instance of Symbol 33 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.stickie) && (!potiongone)) {
this.gotoAndStop("taken");
potiongone = 1;
_root.stickie.hitpoints = 20;
_root.energybar.gotoAndStop(100);
}
}
Symbol 109 MovieClip Frame 1
if (_parent.combostring == "d") {
gotoAndPlay (28);
} else if (_parent.comboString == "x") {
gotoAndPlay (19);
} else if (_parent.comboString == "c") {
gotoAndPlay (84);
} else if (_parent.comboString == "f") {
gotoAndPlay (40);
} else if (_parent.comboString == "s") {
gotoAndPlay (33);
} else if (_parent.comboString == "sxs") {
gotoAndPlay (67);
} else if (_parent.comboString == "run around") {
gotoAndPlay (3);
} else if (_parent.comboString == "flying kick") {
bob = "jump " + _parent.direction;
_parent.gotoAndStop(bob);
}
Instance of Symbol 49 MovieClip in Symbol 109 MovieClip Frame 3
onClipEvent (load) {
if (_parent._parent.direction == "left") {
moveme = -4;
} else {
moveme = 4;
}
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + moveme;
}
Symbol 109 MovieClip Frame 16
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Instance of Symbol 51 MovieClip in Symbol 109 MovieClip Frame 19
onClipEvent (enterFrame) {
if ((_parent._parent.combostring == "sx") && (Key.isDown(83))) {
_parent._parent.comboString = "";
_parent.gotoAndPlay("combo");
}
}
Symbol 109 MovieClip Frame 23
_parent.power = "3";
_parent.point = "middle";
_parent.outerreach = -10;
_parent.innerreach = -30;
_parent.strike = "1";
Symbol 109 MovieClip Frame 26
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 109 MovieClip Frame 28
_parent.power = "1";
_parent.point = "high";
_parent.outerreach = -10;
_parent.innerreach = -30;
_parent.strike = "1";
Symbol 109 MovieClip Frame 30
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Instance of Symbol 63 MovieClip in Symbol 109 MovieClip Frame 33
onClipEvent (enterFrame) {
if ((_parent._parent.combostring == "s") && (Key.isDown(88))) {
_parent._parent.comboString = "sx";
_parent.gotoAndPlay("roundhouse");
}
}
Symbol 109 MovieClip Frame 35
_parent.power = "3";
_parent.point = "middle";
_parent.outerreach = -10;
_parent.innerreach = -30;
_parent.strike = "1";
Symbol 109 MovieClip Frame 37
_parent.power = "2";
_parent.point = "middle";
_parent.outerreach = -10;
_parent.innerreach = -30;
_parent.strike = "1";
Symbol 109 MovieClip Frame 38
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 109 MovieClip Frame 61
if (_parent.direction == "left") {
_parent.direction = "right";
} else {
_parent.direction = "left";
}
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 109 MovieClip Frame 67
if (_parent.direction == "left") {
moveme = -4;
} else {
moveme = 4;
}
Symbol 109 MovieClip Frame 68
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 69
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 70
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 71
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 72
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 73
_parent.power = "5";
_parent.point = "middle";
_parent.outerreach = -10;
_parent.innerreach = -35;
_parent.strike = "1";
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 74
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 75
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 76
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 77
_parent.power = "5";
_parent.point = "high";
_parent.innerreach = -35;
_parent.outerreach = -10;
_parent.strike = "1";
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 78
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 79
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 80
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 81
_parent.power = "5";
_parent.point = "middle";
_parent.outerreach = -10;
_parent.innerreach = -35;
_parent.strike = "1";
_parent._x = _parent._x + moveme;
Symbol 109 MovieClip Frame 82
_parent._x = _parent._x + moveme;
_parent.combostring = "";
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 109 MovieClip Frame 85
_parent.strike = "1";
_parent.power = "1";
_parent.outerreach = -10;
_parent.innerreach = -20;
_parent.point = "high";
Symbol 109 MovieClip Frame 87
_parent.combostring = "";
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 125 MovieClip Frame 29
i = _parent._parent._name.substr(6);
_root.enemies.push(i);
_root.numberOfEnemies = _root.numberOfEnemies - 1;
if ((_parent._parent._name == "stickie") || (_parent._parent.boss)) {
_root.play();
}
_parent._parent.removeMovieClip();
Symbol 136 MovieClip Frame 14
_parent.play();
Symbol 174 MovieClip Frame 1
if (_parent._parent.direction == "right") {
movespeed = 7;
slowmovespeed = 3;
} else {
slowmovespeed = -3;
movespeed = -7;
}
if (_parent._parent.strikepower == 2) {
gotoAndPlay (18);
}
Symbol 174 MovieClip Frame 17
if (_parent._parent.strikepower != 2) {
dead = 0;
}
Symbol 174 MovieClip Frame 18
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 19
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 20
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 21
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 22
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 23
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 24
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 174 MovieClip Frame 25
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 174 MovieClip Frame 26
_parent._parent._x = _parent._parent._x + slowmovespeed;
dead = 1;
Symbol 174 MovieClip Frame 27
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 174 MovieClip Frame 28
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 174 MovieClip Frame 29
_parent._parent._x = _parent._parent._x + slowmovespeed;
if (_parent.bob == "die throw") {
gotoAndPlay (38);
}
Symbol 174 MovieClip Frame 37
_parent.play();
Symbol 174 MovieClip Frame 49
i = _parent._parent._name.substr(6);
_root.enemies.push(i);
_root.numberOfEnemies = _root.numberOfEnemies - 1;
if ((_parent._parent._name == "stickie") || (_parent._parent.boss)) {
_root.play();
}
_parent._parent.removeMovieClip();
Symbol 175 MovieClip Frame 1
if (_parent._parent.direction == "right") {
movespeed = 7;
slowmovespeed = 3;
} else {
slowmovespeed = -3;
movespeed = -7;
}
if (_parent._parent.strikepower == 2) {
gotoAndPlay (18);
}
Symbol 175 MovieClip Frame 17
if (_parent._parent.strikepower != 2) {
dead = 0;
}
Symbol 175 MovieClip Frame 18
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 19
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 20
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 21
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 22
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 23
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 24
_parent._parent._x = _parent._parent._x + movespeed;
Symbol 175 MovieClip Frame 25
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 175 MovieClip Frame 26
_parent._parent._x = _parent._parent._x + slowmovespeed;
dead = 1;
Symbol 175 MovieClip Frame 27
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 175 MovieClip Frame 28
_parent._parent._x = _parent._parent._x + slowmovespeed;
Symbol 175 MovieClip Frame 29
_parent._parent._x = _parent._parent._x + slowmovespeed;
if (_parent.bob == "die throw") {
gotoAndPlay (38);
}
Symbol 175 MovieClip Frame 37
_parent.play();
Symbol 175 MovieClip Frame 49
i = _parent._parent._name.substr(6);
_root.enemies.push(i);
_root.numberOfEnemies = _root.numberOfEnemies - 1;
if ((_parent._parent._name == "stickie") || (_parent._parent.boss)) {
_root.play();
}
_parent._parent.removeMovieClip();
Symbol 184 MovieClip Frame 23
i = _parent._parent._name.substr(6);
_root.enemies.push(i);
_root.numberOfEnemies = _root.numberOfEnemies - 1;
if ((_parent._parent._name == "stickie") || (_parent._parent.boss)) {
_root.play();
}
_parent._parent.removeMovieClip();
Symbol 185 MovieClip Frame 1
_parent.hitpoints = _parent.hitpoints - _parent.strikepower;
if (_parent._name == "stickie") {
barframe = _parent.hitpoints * 5;
_root.energybar.gotoAndStop(barframe);
} else {
_root.score = _root.score + (_parent.strikepower * _parent.strikepower);
_root.scoreline = _root.score;
}
if (0 >= _parent.hitpoints) {
bob = "die " + _parent.strikePoint;
if (_parent._name == "stickie") {
_root.energybar.gotoAndStop(1);
}
gotoAndPlay(bob);
} else if (_parent.strikePoint == "throw") {
gotoAndPlay (30);
} else if (_parent.strikePoint == "high") {
if (_parent.struckPower >= 5) {
gotoAndPlay (4);
} else {
gotoAndPlay (9);
}
} else {
gotoAndPlay(_parent.StrikePoint);
}
Symbol 185 MovieClip Frame 2
gotoAndPlay (1);
Symbol 185 MovieClip Frame 4
stop();
Symbol 185 MovieClip Frame 5
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 185 MovieClip Frame 11
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 185 MovieClip Frame 19
if (_parent._name != "stickie") {
i = random(3);
} else {
i = 1;
}
Symbol 185 MovieClip Frame 27
if (0 < i) {
i--;
gotoAndPlay (20);
}
Symbol 185 MovieClip Frame 28
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 185 MovieClip Frame 30
stop();
Instance of Symbol 174 MovieClip in Symbol 185 MovieClip Frame 30
onClipEvent (load) {
dead = 1;
}
onClipEvent (enterFrame) {
if (!dead) {
var k = 1;
while (5 >= k) {
if (k != _parent._parent._name.substr(6)) {
struckman = "badman" + k;
if (_root[struckman].action != "struck") {
_parent._parent.outerreach = 0;
_parent._parent.innerreach = -30;
if (_root.CollisionDetection(_parent._parent._name, struckman)) {
_root[struckman].action = "struck";
_root[struckman].strikepoint = "throw";
_root[struckman].strikepower = 2;
_root[struckman].direction = _parent._parent.direction;
bob = "struck " + _parent._parent.direction;
_root[struckman].gotoAndPlay(bob);
}
}
}
k++;
}
}
}
Symbol 185 MovieClip Frame 31
if (_parent.direction == "left") {
_parent.direction = "right";
} else {
_parent.direction = "left";
}
bob = "static " + _parent.direction;
_parent.struck = 0;
_parent.attacking = "";
_parent.gotoAndStop(bob);
Symbol 185 MovieClip Frame 33
stop();
Instance of Symbol 175 MovieClip in Symbol 185 MovieClip Frame 33
onClipEvent (load) {
dead = 1;
}
onClipEvent (enterFrame) {
if (!dead) {
var k = 1;
while (5 >= k) {
if (k != _parent._parent._name.substr(6)) {
struckman = "badman" + k;
if (_root[struckman].struck != 1) {
_parent._parent.outerreach = 0;
_parent._parent.innerreach = -30;
if (_root.CollisionDetection(_parent._parent._name, struckman)) {
_root[struckman].action = "struck";
_root[struckman].struck = 1;
_root[struckman].strikepoint = "throw";
_root[struckman].strikepower = 2;
_root[struckman].direction = _parent._parent.direction;
bob = "struck " + _parent._parent.direction;
_root[struckman].gotoAndPlay(bob);
}
}
}
k++;
}
}
}
Symbol 185 MovieClip Frame 36
stop();
Symbol 185 MovieClip Frame 37
stop();
Symbol 223 MovieClip Frame 1
if (_parent.direction == "left") {
moveme = -9;
} else {
moveme = 9;
}
if (Key.isDown(Key.RIGHT) && (_parent._x < 475)) {
bob = "standard";
} else if (Key.isDown(Key.LEFT) && (75 < _parent._x)) {
bob = "standard";
} else {
bob = "straight up";
}
gotoAndPlay(bob);
Instance of Symbol 187 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(88)) {
_parent._parent.comboString = "flying kick";
}
}
Symbol 223 MovieClip Frame 5
if (_parent.combostring == "flying kick") {
gotoAndPlay (6);
} else {
gotoAndPlay (20);
}
Symbol 223 MovieClip Frame 13
_parent.power = "5";
_parent.point = "high";
_parent.outerreach = -5;
_parent.innerreach = -35;
_parent.strike = "1";
Symbol 223 MovieClip Frame 19
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.comboString = "";
_parent.gotoAndStop(bob);
Symbol 223 MovieClip Frame 20
if (_parent.combostring == "flying kick") {
gotoAndPlay (8);
}
Symbol 223 MovieClip Frame 21
if (_parent.combostring == "flying kick") {
gotoAndPlay (8);
}
Symbol 223 MovieClip Frame 22
if (_parent.combostring == "flying kick") {
gotoAndPlay (8);
}
Symbol 223 MovieClip Frame 24
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.comboString = "";
_parent.gotoAndStop(bob);
Symbol 223 MovieClip Frame 30
_parent._x = _parent._x + moveme;
Instance of Symbol 187 MovieClip in Symbol 223 MovieClip Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(88)) {
_parent._parent.comboString = "flying kick";
}
}
Symbol 223 MovieClip Frame 31
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 32
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 33
if (_parent.combostring == "flying kick") {
gotoAndPlay (42);
} else {
_parent._x = _parent._x + moveme;
}
Symbol 223 MovieClip Frame 34
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 35
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 36
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 37
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 38
gotoAndPlay (47);
Symbol 223 MovieClip Frame 42
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 43
_parent.power = "5";
_parent.point = "high";
_parent.outerreach = -5;
_parent.innerreach = -35;
_parent.strike = "1";
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 44
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 45
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 46
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 47
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 48
_parent._x = _parent._x + moveme;
Symbol 223 MovieClip Frame 51
if (_parent.direction == "left") {
_parent.direction = "right";
} else {
_parent.direction = "left";
}
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.comboString = "";
_parent.gotoAndStop(bob);
Symbol 232 MovieClip Frame 1
_parent._x = _root[("ladder" + _parent.climbing) + "Bounds"].xMin;
Symbol 232 MovieClip Frame 2
if (_parent.climbup) {
movemeup = 14;
} else {
movemeup = -14;
}
Symbol 232 MovieClip Frame 3
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 5
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 7
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 9
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 11
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 13
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 15
_parent._y = _parent._y - movemeup;
Symbol 232 MovieClip Frame 17
_parent._y = _parent._y - movemeup;
if (_parent.climbup) {
_parent._y = uppery;
} else {
_parent._y = lowery;
}
if (_parent.onFloor) {
_parent.onFloor = 0;
} else {
_parent.onFloor = 1;
}
if (_parent._name == "stickie") {
var i = 1;
while (_root.enemiesOnScreen >= i) {
thisbadman = "badman" + i;
if (_root[thisbadman].onFloor == _parent.onFloor) {
if (_root[thisbadman].hitawallLeft || (_root[thisbadman].hitawallRight)) {
_root[thisbadman].hitawallLeft = 0;
_root[thisbadman].hitawallRight = 0;
}
}
i++;
}
} else {
_parent.hitawallLeft = 0;
_parent.hitawallRight = 0;
}
bob = "static " + _parent.direction;
_parent.attacking = "";
_parent.comboString = "";
_parent.climbing = 0;
_parent.gotoAndStop(bob);
Symbol 233 MovieClip Frame 1
action = "static left";
stop();
Instance of Symbol 42 MovieClip "caller" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
_parent.direction = "left";
movespeed = 7;
lastpunch = getTimer();
lastkick = getTimer();
}
onClipEvent (enterFrame) {
_root.stickieBounds = _parent.getBounds(_root);
if (_parent.strike) {
var i = 1;
while (5 >= i) {
struck = "badman" + i;
if (_root.CollisionDetection("stickie", struck)) {
_root[struck].strikePower = _parent.power;
_root[struck].strikePoint = _parent.point;
bob = "struck " + _root[struck].direction;
_root[struck].gotoAndStop(bob);
}
i++;
}
_parent.strike = "";
}
if (_parent.action != "struck") {
if (_parent.attacking != "1") {
if (Key.isDown(88) && ((lastkick + 600) < getTimer())) {
_parent.combostring = "x";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.attacking = "1";
lastkick = getTimer();
} else if (Key.isDown(83) && ((lastpunch + 650) < getTimer())) {
_parent.combostring = "s";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.attacking = "1";
lastpunch = getTimer();
} else if (Key.isDown(84)) {
if (_parent.onFloor) {
_parent.onFloor = 0;
_parent._y = 172;
} else {
_parent.onFloor = 1;
_parent._y = 285;
}
var i = 1;
while (_root.enemiesOnScreen >= i) {
thisbadman = "badman" + i;
if (_root[thisbadman].hitawallLeft || (_root[thisbadman].hitawallRight)) {
_root[thisbadman].hitawallLeft = 0;
_root[thisbadman].hitawallRight = 0;
}
i++;
}
} else if (Key.isDown(68) && ((lastpunch + 375) < getTimer())) {
_parent.combostring = "d";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.attacking = "1";
lastpunch = getTimer();
} else if (Key.isDown(86)) {
_parent.combostring = "f";
var i = 1;
while (_root.enemiesOnScreen >= i) {
_parent.outerreach = 3;
_parent.innerreach = -12;
struck = "badman" + i;
if (_root.CollisionDetection("stickie", struck)) {
_root[struck].strikePower = 7;
_root[struck].strikePoint = "throw";
bob = "struck " + _root[struck].direction;
_root[struck].gotoAndStop(bob);
_parent.attacking = "1";
_parent.combostring = "f";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
}
i++;
}
} else if (Key.isDown(67) && ((lastkick + 400) < getTimer())) {
_parent.combostring = "c";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.attacking = "1";
lastkick = getTimer();
} else if (Key.isDown(Key.UP)) {
ladder = 0;
if (_parent.onFloor) {
var l = 1;
while (3 >= l) {
if (_parent.hitTest(_root.backgroundMovie["ladder" + l])) {
_parent.climbup = 1;
_parent.climbing = l;
_parent.attacking = 1;
ladder = 1;
_parent.gotoAndStop("climb");
}
l++;
}
}
if (!ladder) {
bob = "jump " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.attacking = 1;
}
} else if (Key.isDown(Key.DOWN)) {
ladder = 0;
if (!_parent.onFloor) {
var l = 1;
while (3 >= l) {
if (_parent.hitTest(_root.backgroundMovie["ladder" + l])) {
_parent.climbup = 0;
_parent.climbing = l;
_parent.attacking = 1;
ladder = 1;
_parent.gotoAndStop("climb");
}
l++;
}
}
if (!ladder) {
}
} else if (Key.isDown(Key.RIGHT)) {
if (!_parent.hitaWallRight) {
if (_parent.action ne "run right") {
_parent.gotoAndStop("run right");
_parent.direction = "right";
}
if (_parent._x < 500) {
_parent._x = _parent._x + moveSpeed;
} else if (_root.scrollingBGR) {
_root.backgroundMovie._x = _root.backgroundMovie._x - movespeed;
var i = 1;
while (_root.enemiesOnScreen >= i) {
struck = "badman" + i;
_root[struck]._x = _root[struck]._x - movespeed;
i++;
}
} else {
bob = "static " + _parent.direction;
_parent.gotoAndStop(bob);
}
_parent.hitaWallLeft = 0;
}
} else if (Key.isDown(Key.LEFT)) {
if (!_parent.hitaWallLeft) {
if (_parent.action ne "run left") {
_parent.gotoAndStop("run left");
_parent.direction = "left";
}
if (50 < _parent._x) {
_parent._x = _parent._x - moveSpeed;
} else if (_root.scrollingBGL) {
_root.backgroundMovie._x = _root.backgroundMovie._x + movespeed;
var i = 1;
while (_root.enemiesOnScreen >= i) {
struck = "badman" + i;
_root[struck]._x = _root[struck]._x + movespeed;
i++;
}
} else {
bob = "static " + _parent.direction;
_parent.gotoAndStop(bob);
}
_parent.hitaWallRight = 0;
}
} else if ((_parent.action == "run left") || (_parent.action == "run right")) {
bob = "static " + _parent.direction;
_parent.gotoAndStop(bob);
}
}
}
}
Symbol 233 MovieClip Frame 2
action = "static right";
stop();
Symbol 233 MovieClip Frame 3
action = "run left";
stop();
Symbol 233 MovieClip Frame 4
action = "run right";
stop();
Symbol 233 MovieClip Frame 5
action = "attack left";
stop();
Symbol 233 MovieClip Frame 6
action = "attack right";
stop();
Symbol 233 MovieClip Frame 7
action = "struck";
stop();
Symbol 233 MovieClip Frame 8
action = "struck";
stop();
Symbol 233 MovieClip Frame 9
action = "jump left";
stop();
Symbol 233 MovieClip Frame 10
action = "jump right";
stop();
Symbol 233 MovieClip Frame 11
action = "climb";
stop();
Symbol 238 MovieClip Frame 2
_parent._x = _parent._x - 7;
Symbol 238 MovieClip Frame 3
_parent._x = _parent._x - 7;
Symbol 238 MovieClip Frame 4
_parent._x = _parent._x - 7;
Symbol 238 MovieClip Frame 5
_parent._x = _parent._x - 7;
Symbol 238 MovieClip Frame 6
_parent._x = _parent._x - 7;
Symbol 238 MovieClip Frame 31
myColour = new Color(_root[_parent._name]);
myColour.setRGB(5592541);
_parent.gotoAndStop("static left");
Symbol 239 MovieClip Frame 1
action = "static left";
stop();
Instance of Symbol 234 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
_parent.direction = "left";
_parent.nextToStickie = "";
_parent.hitaWallLeft = 0;
_parent.hitaWallRight = 0;
_parent.climbing = 0;
movespeed = 7;
if (_parent._name == "badman") {
disabled = 1;
}
}
onClipEvent (enterFrame) {
if (!disabled) {
_root[_parent._name + "Bounds"] = _parent.getBounds(_root);
if (_parent.action != "struck") {
if (_parent.attacking != "1") {
if (_parent.nextToStickie == "1") {
if (_parent.onFloor == _root.stickie.onFloor) {
if (!_root.stickie.attacking) {
if (random(10) < _parent.iq) {
if (14 < _root.badmancounter) {
attackrand = 21;
} else if (8 < _root.badmancounter) {
attackrand = 18;
} else {
attackrand = 15;
}
attackmove = random(attackrand);
if (attackmove >= 18) {
_parent.combostring = "f";
_parent.outerreach = 3;
_parent.innerreach = -12;
if (_root.CollisionDetection(_parent._name, "stickie")) {
_root.stickie.strikePower = 7;
_root.stickie.strikePoint = "throw";
bob = "struck " + _root.stickie.direction;
_root.stickie.gotoAndStop(bob);
_parent.attacking = "18";
_parent.combostring = "f";
bob = "attack " + _parent.direction;
_parent.gotoAndStop(bob);
}
} else if (attackmove >= 15) {
_parent.combostring = "flying kick";
} else if ((attackmove >= 12) && (!_parent.boss)) {
_parent.combostring = "run around";
} else if (attackmove >= 11) {
_parent.combostring = "sxs";
} else if (attackmove >= 9) {
_parent.comboString = "x";
} else if (attackmove >= 7) {
_parent.comboString = "s";
} else if (attackmove >= 4) {
_parent.comboString = "c";
} else if (attackmove >= 1) {
_parent.comboString = "d";
}
bob = "attack " + _parent.direction;
_parent.attacking = "1";
_parent.nextToStickie = "";
_parent.gotoAndStop(bob);
}
}
} else {
if (_parent.direction == "left") {
_parent.hitaWallRight = 1;
} else {
_parent.hitaWallLeft = 1;
}
_parent.runCount = 0;
_parent.nextToStickie = "";
}
} else {
if (_parent.hitaWallLeft || (_parent.hitaWallRight)) {
var l = 1;
while (3 >= l) {
if (_parent.hitTest(_root.backgroundMovie["ladder" + l])) {
if (_parent.onFloor) {
_parent.climbup = 1;
_parent.attacking = 1;
_parent.climbing = l;
_parent.gotoAndStop("climb");
} else {
_parent.climbup = 0;
_parent.attacking = 1;
_parent.climbing = l;
_parent.gotoAndStop("climb");
}
}
l++;
}
}
if (_parent.climbing == 0) {
if (random(10) < _parent.iq) {
if (((_root.stickie._x + 15) < _parent._x) || (_parent.hitaWallRight)) {
if (_parent.hitaWallLeft) {
_parent.gotoAndStop("run right");
_parent.direction = "right";
_parent._x = _parent._x + moveSpeed;
_parent.runCount++;
} else {
if (_parent.action ne "run left") {
_parent.gotoAndStop("run left");
_parent.direction = "left";
}
_parent._x = _parent._x - moveSpeed;
}
} else if ((_parent._x < (_root.stickie._x - 15)) || (_parent.hitaWallLeft)) {
if (_parent.hitaWallRight) {
_parent.gotoAndStop("run left");
_parent.direction = "left";
_parent._x = _parent._x - moveSpeed;
_parent.runCount++;
} else {
if (_parent.action ne "run right") {
_parent.gotoAndStop("run right");
_parent.direction = "right";
}
_parent._x = _parent._x + moveSpeed;
}
if (_parent.runCount >= 30) {
_parent.runcount = 0;
_parent.hitaWallRight = 0;
_parent.hitaWallLeft = 0;
}
} else {
bob = "static " + _parent.direction;
_parent.gotoAndStop(bob);
_parent.nextToStickie = "1";
}
} else {
bob = "static " + _parent.direction;
_parent.gotoAndStop(bob);
}
}
}
}
}
if (_parent.strike) {
if ((_parent.point != "high") && (_root.stickie.action.substr(0, 4) == "jump")) {
blocked = 1;
}
if ((_parent.direction == "right") && (!blocked)) {
distance = _root.StickieBounds.xMin - _root[_parent._name + "Bounds"].xMax;
if ((distance < _parent.outerreach) && (_parent.innerreach < distance)) {
bob = "struck left";
_root.stickie.strikePoint = _parent.point;
_root.stickie.strikePower = _parent.power;
_root.stickie.struck = 1;
_root.stickie.gotoAndStop(bob);
}
}
if ((_parent.direction == "left") && (!blocked)) {
distance = _root[_parent._name + "Bounds"].xMin - _root.stickieBounds.xMax;
if ((distance < _parent.outerreach) && (_parent.innerreach < distance)) {
bob = "struck right";
_root.stickie.strikePoint = _parent.point;
_root.stickie.strikePower = _parent.power;
_root.stickie.struck = 1;
_root.stickie.gotoAndStop(bob);
}
}
_parent.strike = "";
blocked = "";
}
}
}
Symbol 239 MovieClip Frame 2
action = "static right";
stop();
Symbol 239 MovieClip Frame 3
action = "run left";
stop();
Symbol 239 MovieClip Frame 4
action = "run right";
stop();
Symbol 239 MovieClip Frame 5
action = "struck";
direction = "left";
stop();
Symbol 239 MovieClip Frame 6
action = "struck";
direction = "right";
stop();
Symbol 239 MovieClip Frame 7
action = "attack left";
stop();
Symbol 239 MovieClip Frame 8
action = "attack right";
stop();
Symbol 239 MovieClip Frame 9
action = "climb";
stop();
Symbol 239 MovieClip Frame 10
action = "jump left";
stop();
Symbol 239 MovieClip Frame 11
action = "jump right";
stop();
Symbol 239 MovieClip Frame 12
action = "boss";
stop();
Symbol 259 Button
on (release) {
play();
}
Symbol 261 MovieClip Frame 1
stop();