Frame 1
fscommand ("allowscale", false);
fscommand ("fullscreen", false);
anyName.prototype.MovieClip = function () {
anything.onEnterFrame = function () {
i = -20;
if (i > getTimer) {
i++;
} else {
i = i + getTimer();
}
};
};
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
total = 100;
Frame 2
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Frame 3
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (4);
} else {
prevFrame();
play();
}
Frame 134
_root.player1Select = false;
_root.cpu1Select = false;
_root.stageSelect = false;
_root.stageChoice = 0;
_root.roundNumber = 1;
_root.player1Wins = 0;
_root.cpuWins = 0;
_root.player1Name;
_root.cpuName;
_root.stageSetMovement = true;
_root.winner = null;
_root.roundDelay = 0;
_root.replayDelay = 0;
_root.victoryDelay = 0;
arrayPlayer1X = new Array();
arrayPlayer1Y = new Array();
arrayPlayer1Frame = new Array();
arrayPlayer1XScale = new Array();
arrayStageSetX = new Array();
arrayCpuX = new Array();
arrayCpuY = new Array();
arrayCpuFrame = new Array();
arrayCpuXScale = new Array();
shortAttackSound = new Sound();
shortAttackSound.attachSound("shortAttack");
midAttackSound = new Sound();
midAttackSound.attachSound("midAttack");
heavyAttackSound = new Sound();
heavyAttackSound.attachSound("heavyAttack");
shortAttackedSound = new Sound();
shortAttackedSound.attachSound("shortAttacked");
midAttackedSound = new Sound();
midAttackedSound.attachSound("midAttacked");
heavyAttackedSound = new Sound();
heavyAttackedSound.attachSound("heavyAttacked");
Instance of Symbol 1285 MovieClip "capoSketch" in Frame 135
on (press) {
if (_root.player1Select == false) {
_root.player1Select = true;
_root.player1Enemy = 3;
_root.menuScreen.player1Ready._alpha = 100;
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu1Select = true;
_root.cpuEnemy = 3;
_root.menuScreen.cpuReady._alpha = 100;
}
}
on (rollOver) {
if (_root.player1Select == false) {
_root.player1_Rotate.gotoAndPlay("ch3_Rotate");
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu_Rotate.gotoAndPlay("ch3_Rotate");
}
}
Instance of Symbol 1288 MovieClip "jkdSketch" in Frame 135
on (press) {
if (_root.player1Select == false) {
_root.player1Select = true;
_root.player1Enemy = 2;
_root.menuScreen.player1Ready._alpha = 100;
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu1Select = true;
_root.cpuEnemy = 2;
_root.menuScreen.cpuReady._alpha = 100;
}
}
on (rollOver) {
if (_root.player1Select == false) {
_root.player1_Rotate.gotoAndPlay("ch2_Rotate");
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu_Rotate.gotoAndPlay("ch2_Rotate");
}
}
Instance of Symbol 1291 MovieClip "shotoSketch" in Frame 135
on (press) {
if (_root.player1Select == false) {
_root.player1Select = true;
_root.player1Enemy = 1;
_root.menuScreen.player1Ready._alpha = 100;
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu1Select = true;
_root.cpuEnemy = 1;
_root.menuScreen.cpuReady._alpha = 100;
}
}
on (rollOver) {
if (_root.player1Select == false) {
_root.player1_Rotate.gotoAndPlay("ch1_Rotate");
} else if ((_root.player1Select == true) && (_root.cpu1Select == false)) {
_root.cpu_Rotate.gotoAndPlay("ch1_Rotate");
}
}
Frame 136
if ((_root.player1Select == true) && (_root.cpu1Select == true)) {
gotoAndPlay (138);
}
prevFrame();
play();
Instance of Symbol 1480 MovieClip "cpu_stageselect" in Frame 138
onClipEvent (load) {
if (_root.cpuEnemy == 1) {
this.gotoAndPlay("ch1_Rotate");
} else if (_root.cpuEnemy == 2) {
this.gotoAndPlay("ch2_Rotate");
} else if (_root.cpuEnemy == 3) {
this.gotoAndPlay("ch3_Rotate");
}
}
Instance of Symbol 1480 MovieClip "p1_stageselect" in Frame 138
onClipEvent (load) {
if (_root.player1Enemy == 1) {
this.gotoAndPlay("ch1_Rotate");
} else if (_root.player1Enemy == 2) {
this.gotoAndPlay("ch2_Rotate");
} else if (_root.player1Enemy == 3) {
this.gotoAndPlay("ch3_Rotate");
}
}
Instance of Symbol 1494 MovieClip "stage3" in Frame 138
on (press) {
if (_root.stageSelect == false) {
_root.stageSelect = true;
_root.stageChoice = 3;
}
}
on (rollOver) {
_root.menuStages.bg_ROTATE.gotoAndPlay("bg_3");
}
Instance of Symbol 1497 MovieClip "stage2" in Frame 138
on (press) {
if (_root.stageSelect == false) {
_root.stageSelect = true;
_root.stageChoice = 2;
}
}
on (rollOver) {
_root.menuStages.bg_ROTATE.gotoAndPlay("bg_2");
}
Instance of Symbol 1500 MovieClip "stage1" in Frame 138
on (press) {
if (_root.stageSelect == false) {
_root.stageSelect = true;
_root.stageChoice = 1;
}
}
on (rollOver) {
_root.menuStages.bg_ROTATE.gotoAndPlay("bg_1");
}
Frame 139
if (_root.stageSelect == true) {
gotoAndPlay (141);
}
prevFrame();
play();
Frame 141
if (_root.stageChoice == 1) {
_root.stageSet.gotoAndStop("stage1");
} else if (_root.stageChoice == 2) {
_root.stageSet.gotoAndStop("stage2");
} else if (_root.stageChoice == 3) {
_root.stageSet.gotoAndStop("stage3");
}
if (_root.cpuEnemy == 1) {
_root.stageSet.attachMovie("SHOTOCPU", "shotocpu", 13);
_root.cpuName = "Victor";
} else if (_root.cpuEnemy == 2) {
_root.stageSet.attachMovie("JKDCPU", "jkdcpu", 13);
_root.cpuName = "Dan";
} else if (_root.cpuEnemy == 3) {
_root.stageSet.attachMovie("CAPOCPU", "capocpu", 13);
_root.cpuName = "Miguel";
}
if (_root.player1Enemy == 1) {
_root.stageSet.attachMovie("shotoControls", "player1Controls", 1001);
_root.player1Name = "Victor";
} else if (_root.player1Enemy == 2) {
_root.stageSet.attachMovie("jkdControls", "player1Controls", 1001);
_root.player1Name = "Dan";
} else if (_root.player1Enemy == 3) {
_root.stageSet.attachMovie("capoControls", "player1Controls", 1001);
_root.player1Name = "Miguel";
}
_root.stageSetBorder.energy_BarPlayer.life._x = 0;
_root.stageSetBorder.energy_BarCpu.life._x = 0;
_root.stageSet._x = 0;
_root.stageSetMovement = true;
_root.stageSetBorder.TEXT.gotoAndPlay("Round1Fight");
Instance of Symbol 1530 MovieClip "stageSetBorder" in Frame 141
onClipEvent (load) {
this._xscale = 50;
this._yscale = 50;
}
Instance of Symbol 1531 MovieClip "stageSet" in Frame 141
onClipEvent (load) {
this._xscale = 50;
this._yscale = 50;
this.startPointX = 0;
this.leftEdge = 30;
this.rightEdge = -30;
}
onClipEvent (enterFrame) {
this.playerDistanceX = Math.abs(this.player._x - this.cpu._x) <= 500;
this.distanceSPointX = Math.abs(this._x - this.startPointX);
this.distanceLeftX = Math.abs(this.leftEdge - this._x);
this.distanceRightX = Math.abs(this.rightEdge - this._x);
if (_root.stageSetMovement) {
if (((this.player1._x <= 99) || (this.cpu._x <= 99)) && (this.playerDistanceX)) {
if (this._x < this.leftEdge) {
if (this.distanceLeftX <= 5) {
this._x = this._x + this.distanceLeftX;
this.box._x = this.box._x - this.distanceLeftX;
} else {
this._x = this._x + 5;
this.box._x = this.box._x - 5;
}
}
} else if ((((this.player1._x > 99) && (this.cpu._x > 99)) && ((this.player1._x <= 500) && (this.cpu._x <= 500))) && (this.playerDistanceX)) {
if (this._x > this.startPointX) {
if (this.distanceSPointX <= 5) {
this._x = this._x - this.distanceSPointX;
this.box._x = this.box._x + this.distanceSPointX;
} else {
this._x = this._x - 5;
this.box._x = this.box._x + 5;
}
} else if (this._x < this.startPointX) {
if (this.distanceSPointX <= 5) {
this._x = this._x + this.distanceSPointX;
this.box._x = this.box._x - this.distanceSPointX;
} else {
this._x = this._x + 5;
this.box._x = this.box._x - 5;
}
}
} else if (((this.player1._x >= 500) || (this.cpu._x >= 500)) && (this.playerDistanceX)) {
if (this._x > this.rightEdge) {
if (this.distanceRightX <= 5) {
this._x = this._x - this.distanceRightX;
this.box._x = this.box._x + this.distanceRightX;
} else {
this._x = this._x - 5;
this.box._x = this.box._x + 5;
}
}
}
}
}
Frame 142
_root.arrayPlayer1X.push(_root.stageSet.player1._x);
_root.arrayPlayer1Y.push(_root.stageSet.player1._y);
_root.arrayPlayer1Frame.push(_root.stageSet.player1._currentframe);
_root.arrayPlayer1XScale.push(_root.stageSet.player1._xscale);
_root.arrayStageSetX.push(_root.stageSet._x);
_root.arrayCpuX.push(_root.stageSet.cpu._x);
_root.arrayCpuY.push(_root.stageSet.cpu._y);
_root.arrayCpuFrame.push(_root.stageSet.cpu._currentframe);
_root.arrayCpuXScale.push(_root.stageSet.cpu._xscale);
if (!(_root.stageSet.player1.defeatedRange || (_root.stageSet.cpu.defeatedRange))) {
_root.roundDelay = getTimer() + 2000;
}
Frame 143
if ((_root.stageSet.player1.defeatedRange && (!_root.stageSet.cpu.defeatedRange)) && (_root.roundDelay < getTimer())) {
_root.cpuWins = _root.cpuWins + 1;
_root.winner = "cpu";
_root.roundNumber = _root.roundNumber + 1;
_root.stageSetMovement = false;
gotoAndPlay (144);
} else if ((_root.stageSet.cpu.defeatedRange && (!_root.stageSet.player1.defeatedRange)) && (_root.roundDelay < getTimer())) {
_root.player1Wins = _root.player1Wins + 1;
_root.winner = "player1";
_root.roundNumber = _root.roundNumber + 1;
_root.stageSetMovement = false;
gotoAndPlay (144);
} else if ((_root.stageSet.player1.defeatedRange && (_root.stageSet.cpu.defeatedRange)) && (_root.roundDelay < getTimer())) {
_root.winner = "doubleKO";
_root.roundNumber = _root.roundNumber + 1;
_root.stageSetMovement = false;
gotoAndPlay (144);
} else if (_root.roundDelay > getTimer()) {
prevFrame();
play();
}
Frame 144
_root.arrayPlayer1X = _root.arrayPlayer1X.slice(Math.round(_root.arrayPlayer1X.length * 0.75));
_root.arrayPlayer1Y = _root.arrayPlayer1Y.slice(Math.round(_root.arrayPlayer1Y.length * 0.75));
_root.arrayPlayer1Frame = _root.arrayPlayer1Frame.slice(Math.round(_root.arrayPlayer1Frame.length * 0.75));
_root.arrayPlayer1XScale = _root.arrayPlayer1XScale.slice(Math.round(_root.arrayPlayer1XScale.length * 0.75));
_root.arrayStageSetX = _root.arrayStageSet.slice(Math.round(_root.arrayStageSet.length * 0.75));
_root.arrayCpuX = _root.arrayCpuX.slice(Math.round(_root.arrayCpuX.length * 0.75));
_root.arrayCpuY = _root.arrayCpuY.slice(Math.round(_root.arrayCpuY.length * 0.75));
_root.arrayCpuFrame = _root.arrayCpuFrame.slice(Math.round(_root.arrayCpuFrame.length * 0.75));
_root.arrayCpuXScale = _root.arrayCpuXScale.slice(Math.round(_root.arrayCpuXScale.length * 0.75));
gotoAndPlay (145);
Frame 145
if (_root.cpuEnemy == 1) {
_root.stageSet.cpu.removeMovieClip();
_root.stageSet.attachMovie("ShotoFighter", "cpuInstantReplay", 31);
_root.stageSet.cpuInstantReplay._x = -100;
} else if (_root.cpuEnemy == 2) {
_root.stageSet.cpu.removeMovieClip();
_root.stageSet.attachMovie("JKDFighter", "cpuInstantReplay", 31);
_root.stageSet.cpuInstantReplay._x = -100;
} else if (_root.cpuEnemy == 3) {
_root.stageSet.cpu.removeMovieClip();
_root.stageSet.attachMovie("CapoFighter", "cpuInstantReplay", 31);
_root.stageSet.cpuInstantReplay._x = -100;
}
if (_root.player1Enemy == 1) {
_root.stageSet.player1.removeMovieClip();
_root.stageSet.attachMovie("ShotoFighter", "p1InstantReplay", 1001);
_root.stageSet.p1InstantReplay._x = -100;
} else if (_root.player1Enemy == 2) {
_root.stageSet.player1.removeMovieClip();
_root.stageSet.attachMovie("JKDFighter", "p1InstantReplay", 1001);
_root.stageSet.p1InstantReplay._x = -100;
} else if (_root.player1Enemy == 3) {
_root.stageSet.player1.removeMovieClip();
_root.stageSet.attachMovie("CapoFighter", "p1InstantReplay", 1001);
_root.stageSet.p1InstantReplay._x = -100;
}
_root.i = 0;
_root.stageSetBorder.TEXT.gotoAndPlay("instantReplay");
Frame 146
_root.stageSet.p1InstantReplay._x = _root.arrayPlayer1X[_root.i];
_root.stageSet.p1InstantReplay._y = _root.arrayPlayer1Y[_root.i];
_root.stageSet.p1InstantReplay.gotoAndPlay(_root.arrayPlayer1Frame[_root.i]);
_root.stageSet.p1InstantReplay._xscale = _root.arrayPlayer1XScale[_root.i];
_root.stageSet._x = _root.arrayStageSetX[_root.i];
_root.stageSet.cpuInstantReplay._x = _root.arrayCpuX[_root.i];
_root.stageSet.cpuInstantReplay._y = _root.arrayCpuY[_root.i];
_root.stageSet.cpuInstantReplay.gotoAndPlay(_root.arrayCpuFrame[_root.i]);
_root.stageSet.cpuInstantReplay._xscale = _root.arrayCpuXScale[_root.i];
Frame 147
_root.i++;
if (i > _root.arrayPlayer1X.length) {
gotoAndPlay (149);
_root.winPoseDelay = getTimer() + 2000;
_root.victoryDelay = getTimer() + 8000;
delay = 0;
} else {
prevFrame();
play();
}
Frame 149
if (_root.winner == "player1") {
_root.stageSet.p1InstantReplay.gotoAndPlay("stance");
_root.stageSet.cpuInstantReplay.gotoAndPlay("knockedOut");
_root.stageSetBorder.TEXT.gotoAndPlay("win");
} else if (_root.winner == "cpu") {
_root.stageSet.p1InstantReplay.gotoAndPlay("knockedOut");
_root.stageSet.cpuInstantReplay.gotoAndPlay("stance");
_root.stageSetBorder.TEXT.gotoAndPlay("lose");
} else if (_root.winner == "doubleKO") {
_root.stageSet.p1InstantReplay.gotoAndStop("knockedOut");
_root.stageSet.cpuInstantReplay.gotoAndStop("knockedOut");
_root.stageSetBorder.TEXT.gotoAndPlay("doubleKO");
}
if (_root.stageSet.p1InstantReplay._x < _root.stageSet.cpuInstantReplay._x) {
_root.stageSet.p1InstantReplay._xscale = 100;
_root.stageSet.cpuInstantReplay._xscale = -100;
} else if (_root.stageSet.p1InstantReplay._x >= _root.stageSet.cpuInstantReplay._x) {
_root.stageSet.p1InstantReplay._xscale = -100;
_root.stageSet.cpuInstantReplay._xscale = 100;
}
Frame 150
if ((_root.winPoseDelay < getTimer()) && (delay == 0)) {
delay = 1;
if (_root.winner == "player1") {
_root.stageSet.p1InstantReplay.gotoAndPlay("winPose");
} else if (_root.winner == "cpu") {
_root.stageSet.cpuInstantReplay.gotoAndPlay("winPose");
}
}
if (_root.winner == "player1") {
_root.stageSet.cpuInstantReplay.gotoAndPlay("knockedOut");
} else if (_root.winner == "cpu") {
_root.stageSet.p1InstantReplay.gotoAndPlay("knockedOut");
}
if (_root.stageSet.p1InstantReplay._x < _root.stageSet.cpuInstantReplay._x) {
_root.stageSet.p1InstantReplay._xscale = 100;
_root.stageSet.cpuInstantReplay._xscale = -100;
} else if (_root.stageSet.p1InstantReplay._x >= _root.stageSet.cpuInstantReplay._x) {
_root.stageSet.p1InstantReplay._xscale = -100;
_root.stageSet.cpuInstantReplay._xscale = 100;
}
Frame 151
if (_root.victoryDelay > getTimer()) {
prevFrame();
play();
} else if ((_root.victoryDelay <= getTimer()) && ((_root.cpuWins < 2) && (_root.player1Wins < 2))) {
_root.stageSet.p1InstantReplay.removeMovieClip();
_root.stageSet.cpuInstantReplay.removeMovieClip();
_root.arrayPlayer1X = null;
_root.arrayPlayer1Y = null;
_root.arrayPlayer1Frame = null;
_root.arrayPlayer1XScale = null;
_root.arrayCpuX = null;
_root.arrayCpuY = null;
_root.arrayCpuFrame = null;
_root.arrayCpuXScale = null;
_root.winner = null;
arrayPlayer1X = new Array();
arrayPlayer1Y = new Array();
arrayPlayer1Frame = new Array();
arrayPlayer1XScale = new Array();
arrayCpuX = new Array();
arrayCpuY = new Array();
arrayCpuFrame = new Array();
arrayCpuXScale = new Array();
_root.winner = "non";
_root.stageSetBorder.TEXT.gotoAndPlay("blank");
_root.gotoAndPlay("prepareGame");
} else if ((_root.victoryDelay <= getTimer()) && ((_root.cpuWins == 2) || (_root.player1Wins == 2))) {
_root.stageSet.p1InstantReplay.removeMovieClip();
_root.stageSet.cpuInstantReplay.removeMovieClip();
_root.arrayPlayer1X = null;
_root.arrayPlayer1Y = null;
_root.arrayPlayer1Frame = null;
_root.arrayPlayer1XScale = null;
_root.arrayCpuX = null;
_root.arrayCpuY = null;
_root.arrayCpuFrame = null;
_root.arrayCpuXScale = null;
_root.winner = null;
arrayPlayer1X = new Array();
arrayPlayer1Y = new Array();
arrayPlayer1Frame = new Array();
arrayPlayer1XScale = new Array();
arrayCpuX = new Array();
arrayCpuY = new Array();
arrayCpuFrame = new Array();
arrayCpuXScale = new Array();
_root.winner = "non";
_root.stageSetBorder.TEXT.gotoAndPlay("blank");
gotoAndPlay (134);
}
Symbol 408 MovieClip [JKDfighter] Frame 9
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 21
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 33
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 35
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "jab";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "jab";
}
Symbol 408 MovieClip [JKDfighter] Frame 41
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 43
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
_root.player1_arrayName[0] = "waiting";
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_manuever = "cross";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "cross";
}
Symbol 408 MovieClip [JKDfighter] Frame 49
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 57
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 59
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "highRoundHouse";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "highRoundHouse";
}
Symbol 408 MovieClip [JKDfighter] Frame 63
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 64
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 65
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 68
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 70
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "spinningBFist";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "spinningBFist";
}
Symbol 408 MovieClip [JKDfighter] Frame 72
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 73
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 74
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 75
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 77
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "comboSweep";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "comboSweep";
}
Symbol 408 MovieClip [JKDfighter] Frame 88
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 90
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "axeKick";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "axeKick";
}
Symbol 408 MovieClip [JKDfighter] Frame 98
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 99
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 100
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 103
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 105
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "roundHouse";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "roundHouse";
}
Symbol 408 MovieClip [JKDfighter] Frame 109
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 110
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 111
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 115
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 117
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "spinningBKick";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "spinningBKick";
}
Symbol 408 MovieClip [JKDfighter] Frame 121
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 122
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 123
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 125
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 129
this.gotoAndPlay("defense2");
Symbol 408 MovieClip [JKDfighter] Frame 132
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 137
this.gotoAndPlay("defense2");
Symbol 408 MovieClip [JKDfighter] Frame 142
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 148
this.gotoAndPlay("down");
Symbol 408 MovieClip [JKDfighter] Frame 149
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "hammerFist";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "hammerFist";
}
Symbol 408 MovieClip [JKDfighter] Frame 152
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 153
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 154
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 160
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 162
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "heavyBFist";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "heavyBFist";
}
Symbol 408 MovieClip [JKDfighter] Frame 167
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 168
if (this.chaName == "player1") {
_root.player1_attackInput = false;
} else if (this.chaName == "cpu") {
_root.cpu_attackInput = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 169
if (this.chaName == "player1") {
_root.player1_attack = false;
}
if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 171
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 173
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "lowPunch";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "lowPunch";
}
Symbol 408 MovieClip [JKDfighter] Frame 176
if (this.chaName == "player1") {
_root.player1_attack = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 177
Symbol 408 MovieClip [JKDfighter] Frame 178
if (this.chaName == "player1") {
_root.player1_attack = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 181
this.gotoAndPlay("down");
Symbol 408 MovieClip [JKDfighter] Frame 183
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "lowSweep";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "lowSweep";
}
Symbol 408 MovieClip [JKDfighter] Frame 187
if (this.chaName == "player1") {
_root.player1_attack2 = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack2 = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 188
Symbol 408 MovieClip [JKDfighter] Frame 189
if (this.chaName == "player1") {
_root.player1_attack2 = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack2 = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 192
this.gotoAndPlay("down");
Symbol 408 MovieClip [JKDfighter] Frame 197
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 203
this.gotoAndPlay("down");
Symbol 408 MovieClip [JKDfighter] Frame 205
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "sideKick";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "sideKick";
}
Symbol 408 MovieClip [JKDfighter] Frame 208
if (this.chaName == "player1") {
_root.player1_attack2 = true;
}
if (this.chaName == "cpu") {
_root.cpu_attack2 = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 209
if (this.chaName == "player1") {
_root.player1_attack2 = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack2 = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 212
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 214
if (this.chaName == "player1") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.player1_arrayKey.pop();
_root.player1_arrayName.pop();
i++;
}
_root.player1_arrayKey[0] = "waiting";
_root.player1_arrayName[0] = "waiting";
_root.player1_manuever = "flipKick";
} else if (this.chaName == "cpu") {
aNameSize = 10;
i = 0;
while (i < aNameSize) {
_root.cpu_arrayKey.pop();
_root.cpu_arrayName.pop();
i++;
}
_root.cpu_arrayKey[0] = "waiting";
_root.cpu_manuever = "flipKick";
}
Symbol 408 MovieClip [JKDfighter] Frame 223
if (this.chaName == "player1") {
_root.player1_attack2 = true;
} else if (this.chaName == "cpu") {
_root.cpu_attack2 = true;
}
Symbol 408 MovieClip [JKDfighter] Frame 224
if (this.chaName == "player1") {
_root.player1_attack2 = false;
} else if (this.chaName == "cpu") {
_root.cpu_attack2 = false;
}
Symbol 408 MovieClip [JKDfighter] Frame 238
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 243
this.gotoAndPlay("getUp");
Symbol 408 MovieClip [JKDfighter] Frame 254
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 272
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 287
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 293
this.gotoAndStop(283);
Symbol 408 MovieClip [JKDfighter] Frame 300
this.gotoAndPlay("down");
Symbol 408 MovieClip [JKDfighter] Frame 334
this.gotoAndPlay("getUp");
Symbol 408 MovieClip [JKDfighter] Frame 367
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 374
this.gotoAndPlay("stance");
Symbol 408 MovieClip [JKDfighter] Frame 406
this.gotoAndPlay("getUp");
Symbol 408 MovieClip [JKDfighter] Frame 436
this.gotoAndPlay("getUp");
Symbol 408 MovieClip [JKDfighter] Frame 449
stop();
Symbol 408 MovieClip [JKDfighter] Frame 460
this.gotoAndPlay("stance");
Symbol 790 MovieClip [CapoFighter] Frame 27
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 55
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 57
if (this.chaName == "player1") {
_root.player1_attack = false;
_root.player1_attackInput = false;
_root.player1_manuever = "stance";
_root.player1_arrayName[0] = "stance";
} else if (this.chaName == "cpu") {
_root.cpu_attack = false;
_root.cpu_attackInput = false;
_root.cpu_manuever = "stance";
_root.cpu_arrayName[0] = "stance";
}
Symbol 790 MovieClip [CapoFighter] Frame 83
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 97
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 108
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 124
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 136
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 149
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 161
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 169
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 194
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 221
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 226
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 233
this.gotoAndPlay("down");
Symbol 790 MovieClip [CapoFighter] Frame 237
this.gotoAndPlay("defense2");
Symbol 790 MovieClip [CapoFighter] Frame 240
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 247
this.gotoAndPlay("down");
Symbol 790 MovieClip [CapoFighter] Frame 257
this.gotoAndPlay("down");
Symbol 790 MovieClip [CapoFighter] Frame 259
_root.attackInput = false;
_root.manuever = "down";
stop();
Symbol 790 MovieClip [CapoFighter] Frame 274
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 295
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 310
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 316
this.gotoAndStop(306);
Symbol 790 MovieClip [CapoFighter] Frame 328
this.gotoAndPlay("down");
Symbol 790 MovieClip [CapoFighter] Frame 332
this.gotoAndPlay("down");
Symbol 790 MovieClip [CapoFighter] Frame 366
this.gotoAndPlay("getUp");
Symbol 790 MovieClip [CapoFighter] Frame 399
this.gotoAndPlay("getUp");
Symbol 790 MovieClip [CapoFighter] Frame 429
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 459
this.gotoAndPlay("getUp");
Symbol 790 MovieClip [CapoFighter] Frame 466
this.gotoAndPlay("ginga");
Symbol 790 MovieClip [CapoFighter] Frame 482
stop();
Symbol 790 MovieClip [CapoFighter] Frame 493
this.gotoAndPlay("ginga");
Symbol 1222 MovieClip [ShotoFighter] Frame 11
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 28
this.gotoAndPlay("backward");
Symbol 1222 MovieClip [ShotoFighter] Frame 45
this.gotoAndPlay("forward");
Symbol 1222 MovieClip [ShotoFighter] Frame 50
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 57
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 68
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 74
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 84
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 96
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 103
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 118
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 133
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 145
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 157
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 173
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 181
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 183
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 188
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 199
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 204
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 206
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 212
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 216
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 222
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 235
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 248
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 257
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 274
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 288
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 294
this.gotoAndStop(284);
Symbol 1222 MovieClip [ShotoFighter] Frame 312
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 316
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 322
this.gotoAndPlay("crouched");
Symbol 1222 MovieClip [ShotoFighter] Frame 356
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 390
this.gotoAndPlay("getUp");
Symbol 1222 MovieClip [ShotoFighter] Frame 397
this.gotoAndPlay("stance");
Symbol 1222 MovieClip [ShotoFighter] Frame 429
this.gotoAndPlay("getUp");
Symbol 1222 MovieClip [ShotoFighter] Frame 459
this.gotoAndPlay("getUp");
Symbol 1222 MovieClip [ShotoFighter] Frame 467
stop();
Symbol 1222 MovieClip [ShotoFighter] Frame 478
this.gotoAndPlay("stance");
Symbol 1224 MovieClip [JKDInput] Frame 1
Player1 = function () {
this.onLoad = function () {
this.setVariablesOnLoad = function () {
this.player1_arrayStatus = new Array();
this.player1_arrayKey = new Array();
this.player1_arrayArrowKey = new Array();
this.player1_arrayStatus[0] = "standing";
this.player1_arrayKey[0] = "waiting";
this.player1_arrayArrowKey[0] = "waiting";
this.timeFlag = false;
this.throwFlag = false;
this.timeSet = false;
this.attackDelayTime = getTimer();
this.winPoseDelay = 0;
this.Enemy = 2;
this.lifePoints = 100;
this.heavyHit = 10;
this.midHit = 5;
this.lightHit = 2;
this.eBarHeavy = 25;
this.eBarMid = 13;
this.eBarLight = 5;
this.hitBack = 0;
this.knockedOut = false;
this._x = 100;
this._y = 400;
this.defensePart = 0;
this.stanceFirst = 1;
this.stanceLast = 8;
this.downFirst = 199;
this.downLast = 202;
this.jumpFirst = 274;
this.jumpLast = 286;
this.jumpKickFirst = 289;
this.jumpKickLast = 293;
this.fall = 240;
this.defeated = 295;
this.defense1First = 127;
this.defense1Last = 131;
this.walkForwardFirst = 11;
this.walkForwardLast = 20;
this.walkBackwardFirst = 23;
this.walkBackwardLast = 32;
this.jabFirst = 35;
this.jabLast = 40;
this.crossFirst = 43;
this.crossLast = 48;
this.upperCutFirst = 51;
this.upperCutLast = 56;
this.highRoundHouseFirst = 59;
this.highRoundHouseLast = 67;
this.spinningBFistFirst = 70;
this.spinningBFistLast = 74;
this.comboSweepFirst = 77;
this.comboSweepLast = 87;
this.axeKickFirst = 90;
this.axeKickLast = 102;
this.roundHouseFirst = 105;
this.roundHouseLast = 114;
this.spinningBKickFirst = 117;
this.spinningBKickLast = 124;
this.hammerFistFirst = 149;
this.hammerFistLast = 159;
this.heavyBFistFirst = 162;
this.heavyBFistLast = 170;
this.sideKickFirst = 205;
this.sideKickLast = 211;
this.flipKickFirst = 214;
this.flipKickLast = 237;
this.lowPunchFirst = 173;
this.lowPunchLast = 180;
this.lowSweepFirst = 183;
this.lowSweepLast = 191;
this.crouchDefenseFirst = 298;
this.crouchDefenseLast = 299;
this.crouchAttackedFirst = 144;
this.crouchAttackedLast = 147;
this.grabFirst = 369;
this.grabLast = 372;
this.throwFirst = 336;
this.throwLast = 366;
this.shotoThrownFirst = 302;
this.shotoThrownLast = 333;
this.jkdThrownFirst = 375;
this.jkdThrownLast = 405;
this.capoThrownFirst = 408;
this.capoThrownLast = 435;
this.throwBreakFirst = 452;
this.throwBreakLast = 459;
this.KDGUFirst = 256;
this.KDGULast = 261;
this.getUpFirst = 245;
this.getUpLast = 253;
};
this.setVariablesOnEnterFrame = function () {
this.sync = this.attackDelayTime <= getTimer();
this.standing = (this._currentframe >= this.stanceFirst) && (this._currentframe <= this.stanceLast);
this.downing = (this._currentframe >= this.downFirst) && (this._currentframe <= this.downLast);
this.defending = (this._currentframe >= this.defense1First) && (this._currentframe <= this.defense1Last);
this.walkingForward = (this._currentframe >= this.walkForwardFirst) && (this._currentframe <= this.walkForwardLast);
this.walkingBackWard = (this._currentframe >= this.walkBackwardFirst) && (this._currentframe <= this.walkBackwardLast);
this.jabbing = (this._currentframe >= this.jabFirst) && (this._currentframe <= this.jabLast);
this.crossing = (this._currentframe >= this.crossFirst) && (this._currentframe <= this.crossLast);
this.upperCuting = (this._currentframe >= this.upperCutFirst) && (this._currentframe <= this.upperCutLast);
this.highRoundHousing = (this._currentframe >= this.highRoundHouseFirst) && (this._currentframe <= this.highRoundHouseLast);
this.roundHousing = (this._currentframe >= this.roundHouseFirst) && (this._currentframe <= this.roundHouseLast);
this.spinningBKicking = (this._currentframe >= this.spinningBKickFirst) && (this._currentframe <= this.spinningBKickLast);
this.spinningBFisting = (this._currentframe >= this.spinningBFistFirst) && (this._currentframe <= this.spinningBFistLast);
this.hammerFisting = (this._currentframe >= this.hammerFistFirst) && (this._currentframe <= this.hammerFistLast);
this.heavyBFisting = (this._currentframe >= this.heavyBFistFirst) && (this._currentframe <= this.heavyBFistLast);
this.sideKicking = (this._currentframe >= this.sideKickFirst) && (this._currentframe <= this.sideKickLast);
this.flipKicking = (this._currentframe >= this.flipKickFirst) && (this._currentframe <= this.flipKickLast);
this.comboSweeping = (this._currentframe >= this.comboSweepFirst) && (this._currentframe <= this.comboSweepLast);
this.axeKicking = (this._currentframe >= this.axeKickFirst) && (this._currentframe <= this.axeKickLast);
this.lowPunching = (this._currentframe >= this.lowPunchFirst) && (this._currentframe <= this.lowPunchLast);
this.lowSweeping = (this._currentframe >= this.lowSweepFirst) && (this._currentframe <= this.lowSweepLast);
this.jumpRange = (this._currentframe >= this.jumpFirst) && (this._currentframe <= this.jumpLast);
this.jumpKickRange = (this._currentframe >= this.jumpKickFirst) && (this._currentframe <= this.jumpKickLast);
this.crouchDefenseRange = (this._currentframe >= this.crouchDefenseFirst) && (this._currentframe <= this.crouchDefenseLast);
this.crouchAttackedRange = (this._currentframe >= this.crouchAttackedFirst) && (this._currentframe <= this.crouchAttackedLast);
this.grabRange = (this._currentframe >= this.grabFirst) && (this._currentframe <= this.grabLast);
this.throwRange = (this._currentframe >= this.throwFirst) && (this._currentframe <= this.throwLast);
this.shotoThrownRange = (this._currentframe >= this.shotoThrownFirst) && (this._currentframe <= this.shotoThrownLast);
this.jkdThrownRange = (this._currentframe >= this.jkdThrownFirst) && (this._currentframe <= this.jkdThrownLast);
this.capoThrownRange = (this._currentframe >= this.capoThrownFirst) && (this._currentframe <= this.capoThrownLast);
this.THROWN = (this.shotoThrownRange || (this.jkdThrownRange)) || (this.capoThrownRange);
this.throwBreakRange = (this._currentframe >= this.throwBreakFirst) && (this._currentframe <= this.throwBreakLast);
this.KDGURange = (this._currentframe >= this.KDGUFirst) && (this._currentframe <= this.KDGULast);
this.getUpRange = (this._currentframe >= this.getUpFirst) && (this._currentframe <= this.getUpLast);
this.falling = this._currentframe == this.fall;
this.defeatedRange = this._currentframe == this.defeated;
this.highAttacking = (((((((((((this.jabbing || (this.crossing)) || (this.upperCuting)) || (this.highRoundHousing)) || (this.spinningBFisting)) || (this.axeKicking)) || (this.roundHousing)) || (this.spinningBKicking)) || (this.hammerFisting)) || (this.heavyBFisting)) || (this.sideKicking)) || (this.flipKicking)) || (this.jumpKickRange);
this.lowAttacking = (this.lowPunching || (this.Sweeping)) || (this.comboSweeping);
this.highAttackPoint = ((((((((((((this._currentframe == 39) || (this._currentframe == 46)) || (this._currentframe == 55)) || (this._currentframe == 64)) || (this._currentframe == 73)) || (this._currentframe == 99)) || (this._currentframe == 110)) || (this._currentframe == 122)) || (this._currentframe == 153)) || (this._currentframe == 168)) || (this._currentframe == 208)) || (this._currentframe == 224)) || (this._currentframe == 290);
this.lowAttackPoint = ((this._currentframe == 177) || (this._currentframe == 188)) || (this._currentframe == 83);
this.grabPoint = (this._currentframe == 371) || (this._currentframe == 372);
this.ready = (((((this.standing || (this.walkingForward)) || (this.walkingBackward)) || (this.downing)) || (this.defending)) || (this.crouchDefenseRange)) && (!this.defeatedRange);
this.inAir = this._y < 400;
if (this._currentframe == 128) {
this.defensePart = 1;
}
};
this.recieveKeyCommandsLeft = function () {
if (!_root.stageSet.cpu.defeatedRange) {
if (this.sync) {
this.winPoseDelay = getTimer() + 2000;
if (this.standing) {
if (Key.isDown(37)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("left");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(39)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("right");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(38)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("up");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(40)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("down");
trace(this.player1_arrayArrowKey);
}
}
if (this.ready) {
this.throwFlag = false;
if ((((((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) && (!Key.isDown(65))) && (!Key.isDown(83))) && (!Key.isDown(68))) && (!this.getUpRange)) {
this.defensePart = 0;
this.player1_arrayStatus.unshift("standing");
} else if (this.throwRange && (!_root.stageSet.cpu.jkdThrown)) {
this.defensePart = 0;
this.crouchPart = 0;
this.player1_arrayStatus[0] = "standing";
} else if ((!_root.stageSet.cpu.throwRange) && ((this.shotoThrown || this.jkdThrown) || this.capoThrown)) {
this.defensePart = 0;
this.crouchPart = 0;
this.player1_arrayStatus[0] = "standing";
} else if ((Key.isDown(37) && (!Key.isDown(40))) && (!Key.isDown(38))) {
this.player1_arrayStatus.unshift("walkLeft");
} else if ((Key.isDown(39) && (!Key.isDown(40))) && (!Key.isDown(38))) {
this.player1_arrayStatus.unshift("walkRight");
} else if (Key.isDown(38)) {
this.player1_arrayStatus.unshift("jump");
} else if (Key.isDown(40)) {
this.player1_arrayStatus.unshift("down");
}
if (Key.isDown(65)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("punch");
trace(this.player1_arrayKey);
} else if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("kick");
trace(this.player1_arrayKey);
} else if (Key.isDown(68) && (this.standing || this.defending)) {
if (this.defensePart == 0) {
this.player1_arrayStatus[0] = "defense1";
trace(this.defensePart);
trace(this._currentframe);
} else if (this.defensePart == 1) {
this.player1_arrayStatus[0] = "defense2";
trace(this.defensePart);
trace(this._currentframe);
}
} else if (Key.isDown(68) && (this.downing || this.crouchDefenseRange)) {
this.player1_arrayStatus.unshift("crouchDefense");
}
} else if (this.jumpRange) {
if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("kick");
trace(this.player1_arrayKey);
}
}
this.processKeyCommands();
}
} else if ((this.standing && (_root.stageSet.cpu.defeatedRange)) && (this.winPoseDelay < getTimer())) {
this.player1_arrayStatus.unshift("winPose");
}
};
this.recieveKeyCommandsRight = function () {
if (!_root.stageSet.cpu.defeatedRange) {
if (this.sync) {
this.winPoseDelay = getTimer() + 2000;
if (this.standing) {
if (Key.isDown(37)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("right");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(39)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("left");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(38)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("up");
trace(this.player1_arrayArrowKey);
} else if (Key.isDown(40)) {
if (this.timeFlag == false) {
this.timeFlag = true;
}
this.player1_arrayArrowKey.unshift("down");
trace(this.player1_arrayArrowKey);
}
} else if (this.throwRange && (!_root.stageSet.cpu.jkdThrown)) {
this.defensePart = 0;
this.crouchPart = 0;
this.player1_arrayStatus[0] = "standing";
} else if ((!_root.stageSet.cpu.throwRange) && ((this.shotoThrown || (this.jkdThrown)) || (this.capoThrown))) {
this.defensePart = 0;
this.crouchPart = 0;
this.player1_arrayStatus[0] = "standing";
}
if (this.ready) {
if (((((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) && (!Key.isDown(65))) && (!Key.isDown(83))) && (!Key.isDown(68))) {
this.defensePart = 0;
this.player1_arrayStatus.unshift("standing");
} else if ((Key.isDown(37) && (!Key.isDown(40))) && (!Key.isDown(38))) {
this.player1_arrayStatus.unshift("walkRight");
} else if ((Key.isDown(39) && (!Key.isDown(40))) && (!Key.isDown(38))) {
this.player1_arrayStatus.unshift("walkLeft");
} else if (Key.isDown(38)) {
this.player1_arrayStatus.unshift("jump");
} else if (Key.isDown(40)) {
this.player1_arrayStatus.unshift("down");
}
if (Key.isDown(65)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("punch");
trace(this.player1_arrayKey);
} else if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("kick");
trace(this.player1_arrayKey);
} else if (Key.isDown(68) && (this.standing || this.defending)) {
if (this.defensePart == 0) {
this.player1_arrayStatus[0] = "defense1";
trace(this.defensePart);
trace(this._currentframe);
} else if (this.defensePart == 1) {
this.player1_arrayStatus[0] = "defense2";
trace(this.defensePart);
trace(this._currentframe);
}
} else if (Key.isDown(68) && (this.downing || this.crouchDefenseRange)) {
this.player1_arrayStatus.unshift("crouchDefense");
}
} else if (this.jumpRange) {
if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("kick");
trace(this.player1_arrayKey);
}
}
this.processKeyCommands();
}
} else if ((this.standing && (_root.stageSet.cpu.defeatedRange)) && (this.winPoseDelay < getTimer())) {
this.player1_arrayStatus.unshift("winPose");
}
};
this.processKeyCommands = function () {
if (((this.ready && (this.player1_arrayStatus[0] == "jump")) && (this.player1_arrayArrowKey[1] != "down")) && (this.player1_arrayKey[0] != "kick")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey[0] = "jump";
} else if (this.jumpRange && (this.player1_arrayKey[0] == "kick")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey[0] = "jumpKick";
} else if (((this.ready && (this.player1_arrayArrowKey[0] == "right")) && (this.player1_arrayArrowKey[1] == "right")) && (this.player1_arrayKey[0] == "punch")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("hammerFist");
trace(this.player1_arrayKey);
} else if ((this.ready && (this.player1_arrayArrowKey[0] == "right")) && (this.player1_arrayKey[0] == "punch")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("grab");
trace(this.player1_arrayKey);
}
if (((this.ready && (this.player1_arrayArrowKey[0] == "up")) && (this.player1_arrayArrowKey[1] == "down")) && (this.player1_arrayKey[0] == "kick")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("flipKick");
this.AttackDelay(8);
trace(this.player1_arrayKey);
} else if ((this.ready && (this.player1_arrayArrowKey[0] == "right")) && (this.player1_arrayKey[0] == "kick")) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("axeKick");
trace(this.player1_arrayKey);
} else if (this.hammerFisting && (this._currentframe > 152)) {
if (Key.isDown(65)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("spinningBFist");
trace(this.player1_arrayKey);
}
} else if (this.spinningBFisting && (this._currentframe > 73)) {
if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("highRoundHouse");
trace(this.player1_arrayKey);
}
} else if (this.highRoundHousing && (this._currentframe > 64)) {
if (Key.isDown(83)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("comboSweep");
this.AttackDelay(8);
trace(this.player1_arrayKey);
} else if (Key.isDown(65)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("heavyBFist");
trace(this.player1_arrayKey);
}
} else if (this.jabbing && (this._currentframe > 39)) {
if (Key.isDown(65)) {
this.player1_arrayStatus.unshift("waiting");
this.player1_arrayKey.unshift("cross");
trace(this.player1_arrayKey);
}
} else if (this.crossing && (this._currentframe > 46)) {
if (Key.isDown(65)) {
this.player1_arrayKey.unshift("uppercut");
trace(this.player1_arrayKey);
}
} else if (this.upperCuting && (this._currentframe > 54)) {
if (Key.isDown(83)) {
this.player1_arrayKey.unshift("sideKick");
this.AttackDelay(8);
trace(this.player1_arrayKey);
}
} else if (this.roundHousing && (this._currentframe > 110)) {
if (Key.isDown(83)) {
this.player1_arrayKey.unshift("spinningBKick");
this.AttackDelay(8);
trace(this.player1_arrayKey);
}
} else if (this.downing) {
if (Key.isDown(65)) {
this.player1_arrayKey.unshift("lowPunch");
trace(this.player1_arrayKey);
} else if (Key.isDown(83)) {
this.player1_arrayKey.unshift("lowSweep");
trace(this.player1_arrayKey);
}
}
};
if (_root.stageSet.cpu.Enemy == 1) {
this.HITME = function () {
if ((!(this.downing || (this.crouchDefenseRange))) && (!this.throwRange)) {
if ((_root.stageSet.cpu.grabPoint && (this.hitTest(_root.stageSet.cpu))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("shotoThrown");
trace("****************");
}
if (this._currentframe == 333) {
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
}
if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && ((_root.stageSet.cpu.jabbing || (_root.stageSet.cpu.forwarding)) || (_root.stageSet.cpu.rhHighing))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("defenseHit");
this.hitBack = 5;
} else if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && ((((((_root.stageSet.cpu.hooking || (_root.stageSet.cpu.rhMiding)) || (_root.stageSet.cpu.stepInFrontKicking)) || (_root.stageSet.cpu.stepInAxeKicking)) || (_root.stageSet.cpu.axeKicking)) || (_root.stageSet.cpu.risingUppering)) || (_root.stageSet.cpu.jumpKickRange))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("defenseHit");
this.hitBack = 10;
}
if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (((((((_root.stageSet.cpu.jabbing || (_root.stageSet.cpu.forwarding)) || (_root.stageSet.cpu.hooking)) || (_root.stageSet.cpu.rhHighing)) || (_root.stageSet.cpu.rhMiding)) || (_root.stageSet.cpu.stepInFrontKicking)) || (_root.stageSet.cpu.stepInAxeKicking)) || (_root.stageSet.cpu.axeKicking))) && (!(this.jumpRange || (this.jumpKickRange)))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.risingUppering)) && (!(this.jumpRange || (this.jumpKickRange)))) && (!this.defending)) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if (((_root.stageSet.cpu.lowAttackPoint && (this.hitTest(_root.stageSet.cpu))) && ((((_root.stageSet.cpu.legkicking || (_root.stageSet.cpu.crouchDeepKicking)) || (_root.stageSet.cpu.crouchKicking)) || (_root.stageSet.cpu.crouchJabbing)) || (_root.stageSet.cpu.crouchUpperCutting))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if (((_root.stageSet.cpu.lowAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.crouchSweeping)) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("fall");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
trace(this.player1_arrayStatus[0]);
}
} else if (this.downing) {
if (((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && ((((_root.stageSet.cpu.rhHighing || (_root.stageSet.cpu.rhMiding)) || (_root.stageSet.cpu.stepInFrontKicking)) || (_root.stageSet.cpu.stepInAxeKicking)) || (_root.stageSet.cpu.axeKicking))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
this.hitBack = 10;
} else if ((((_root.stageSet.cpu.highAttackPoint || (_root.stageSet.cpu.lowAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && ((_root.stageSet.cpu.crouchSweeping || (_root.stageSet.cpu.risingUppering)) || (_root.stageSet.cpu.jumpKickRange))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((_root.stageSet.cpu.lowAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (((_root.stageSet.cpu.legkicking || _root.stageSet.cpu.crouchDeepKicking) || _root.stageSet.cpu.crouchKicking) || _root.stageSet.cpu.crouchJabbing)) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
}
} else if (this.crouchDefenseRange) {
if ((((_root.stageSet.cpu.lowAttackPoint || (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && (((((((((((_root.stageSet.cpu.legkicking || (_root.stageSet.cpu.rhHighing)) || (_root.stageSet.cpu.rhMiding)) || (_root.stageSet.cpu.crouchDeepKicking)) || (_root.stageSet.cpu.crouchKicking)) || (_root.stageSet.cpu.crouchSweeping)) || (_root.stageSet.cpu.crouchJabbing)) || (_root.stageSet.cpu.stepInFrontKicking)) || (_root.stageSet.cpu.stepInAxeKicking)) || (_root.stageSet.cpu.axeKicking)) || (_root.stageSet.cpu.risingUppering)) || (_root.stageSet.cpu.jumpKickRange))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.hitBack = 5;
}
}
if (((this.lifePoints <= 0) && (!this.THROWN)) && (this.knockedOut == false)) {
this.knockedOut = true;
this.player1_arrayStatus.unshift("fall");
}
};
} else if (_root.stageSet.cpu.Enemy == 2) {
this.HITME = function () {
if ((!(this.downing || (this.crouchDefenseRange))) && (!this.throwFlag)) {
if ((_root.stageSet.cpu.grabPoint && (this.hitTest(_root.stageSet.cpu))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("jkdThrown");
trace("****************");
}
if (this._currentframe == 405) {
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
}
if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && (((((((_root.stageSet.cpu.jabbing || (_root.stageSet.cpu.crossing)) || (_root.stageSet.cpu.upperCuting)) || (_root.stageSet.cpu.hammerFisting)) || (_root.stageSet.cpu.spinningBFisting)) || (_root.stageSet.cpu.highRoundHousing)) || (_root.stageSet.cpu.roundHousing)) || (_root.stageSet.cpu.sideKicking))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.hitBack = 5;
} else if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && ((((_root.stageSet.cpu.spinningBKicking || (_root.stageSet.cpu.heavyBFisting)) || (_root.stageSet.cpu.axeKicking)) || (_root.stageSet.cpu.flipKicking)) || (_root.stageSet.cpu.jumpKickRange))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.hitBack = 10;
}
if ((((this.defending && (_root.stageSet.cpu.lowAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.lowPunching || (_root.stageSet.cpu.lowSweeping))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.hitBack = 5;
}
if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.crossing)) && (!(this.jumpRange || (this.jumpKickRange)))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.upperCuting)) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.sideKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 10;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.hammerFisting) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.spinningBFisting) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
trace(this.player1_arrayStatus);
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.highRoundHousing) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
trace(this.player1_arrayStatus);
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.heavyBFisting) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 10;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
trace(this.player1_arrayStatus);
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.comboSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
trace(this.player1_arrayStatus);
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.roundHousing) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.spinningBKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 10;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 10;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
} else if (((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && (this.jumpRange || this.jumpKickRange)) && (!this.defending)) {
this.player1_arrayStatus.unshift("fall");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
trace(this.player1_arrayStatus[0]);
}
if (((this.lifePoints <= 0) && (!this.THROWN)) && (this.knockedOut == false)) {
this.knockedOut = true;
this.player1_arrayStatus.unshift("fall");
}
} else if (this.downing) {
if (((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && ((((_root.stageSet.cpu.hammerFisting || (this.sideKicking)) || (_root.stageSet.cpu.axeKicking)) || (_root.stageSet.cpu.roundHousing)) || (_root.stageSet.cpu.spinningBKicking))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
this.hitBack = 5;
} else if (((_root.stageSet.cpu.lowAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.lowPunching)) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
this.hitBack = 5;
} else if (((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && (_root.stageSet.cpu.flipKicking || this.jumpKickRange)) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && ((_root.stageSet.cpu.comboSweeping || _root.stageSet.cpu.lowSweeping) || this.jumpKickRange)) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
}
} else if (this.crouchDefenseRange) {
if ((((_root.stageSet.cpu.lowAttackPoint || (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && (((((((((_root.stageSet.cpu.hammerFisting || this.sideKicking) || _root.stageSet.cpu.axeKicking) || _root.stageSet.cpu.roundHousing) || _root.stageSet.cpu.spinningBKicking) || _root.stageSet.cpu.lowPunching) || _root.stageSet.cpu.flipKicking) || this.jumpKickRange) || _root.stageSet.cpu.comboSweeping) || _root.stageSet.cpu.lowSweeping)) && (!(this.jumpRange || this.jumpKickRange))) {
this.hitBack = 5;
}
}
};
} else if (_root.stageSet.cpu.Enemy == 3) {
this.HITME = function () {
if ((!(this.downing || (this.crouchDefenseRange))) && (!this.throwRange)) {
if ((_root.stageSet.cpu.grabPoint && (this.hitTest(_root.stageSet.cpu))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.player1_arrayStatus.unshift("capoThrown");
trace("****************");
}
if (this._currentframe == 435) {
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
}
if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && ((((_root.stageSet.cpu.rightSlapping || (_root.stageSet.cpu.leftSlapping)) || (_root.stageSet.cpu.whipKicking)) || (_root.stageSet.cpu.kneeing)) || (_root.stageSet.cpu.rightElbowing))) && (!(this.jumpRange || (this.jumpKickRange)))) {
this.hitBack = 5;
} else if ((((this.defending && (_root.stageSet.cpu.highAttackPoint)) && (this.hitTest(_root.stageSet.cpu))) && (((_root.stageSet.cpu.frontKicking || _root.stageSet.cpu.stepSpringing) || _root.stageSet.cpu.flipKicking) || _root.stageSet.cpu.jumpKickRange)) && (!(this.jumpRange || this.jumpKickRange))) {
this.hitBack = 10;
}
if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.rightSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if ((((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && (_root.stageSet.cpu.leftSlapping)) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.whipKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.kneeing) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.frontKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 10;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
trace(this.player1_arrayStatus);
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.rightElbowing) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
} else if (((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.shinBlasting) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.stepSpringing) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if ((((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) && (!this.defending)) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && _root.stageSet.cpu.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("attacked");
this.hitBack = 5;
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
} else if (((_root.stageSet.cpu.highAttackPoint && this.hitTest(_root.stageSet.cpu)) && (this.jumpRange || this.jumpKickRange)) && (!this.defending)) {
this.player1_arrayStatus.unshift("fall");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarLight;
trace(this.player1_arrayStatus[0]);
}
if (((this.lifePoints <= 0) && (!this.THROWN)) && (this.knockedOut == false)) {
this.knockedOut = true;
this.player1_arrayStatus.unshift("fall");
}
} else if (this.downing) {
if (((_root.stageSet.cpu.highAttackPoint && (this.hitTest(_root.stageSet.cpu))) && ((_root.stageSet.cpu.whipKicking || _root.stageSet.cpu.frontKicking) || _root.stageSet.cpu.shinBlasting)) && (!(this.jumpRange || this.KickRange))) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
this.hitBack = 5;
} else if ((((_root.stageSet.cpu.highAttackPoint || _root.stageSet.cpu.lowAttackPoint) && this.hitTest(_root.stageSet.cpu)) && (((_root.stageSet.cpu.stepSpringing || _root.stageSet.cpu.lowSweeping) || _root.stageSet.cpu.flipKicking) || _root.stageSet.cpu.jumpKickRange)) && (!(this.jumpRange || this.jumpKickRange))) {
this.player1_arrayStatus.unshift("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarHeavy;
this.hitBack = 5;
} else if (((_root.stageSet.cpu.lowAttackPoint && this.hitTest(_root.stageSet.cpu)) && (_root.stageSet.cpu.lowPunching || _root.stageSet.cpu.shinBlasting)) && (!(this.jumpRange || this.KickRange))) {
this.player1_arrayStatus.unshift("crouchAttacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarPlayer.life._x = _root.stageSetBorder.energy_BarPlayer.life._x - this.eBarMid;
this.hitBack = 5;
}
} else if (this.crouchDefenseRange) {
if ((((_root.stageSet.cpu.highAttackPoint || _root.stageSet.cpu.lowAttackPoint) && this.hitTest(_root.stageSet.cpu)) && ((_root.stageSet.cpu.lowSweeping || _root.stageSet.cpu.lowPunching) || _root.stageSet.cpu.shinBlasting)) && (!(this.jumpRange || this.jumpKickRange))) {
this.hitBack = 5;
} else if ((((_root.stageSet.cpu.highAttackPoint || _root.stageSet.cpu.lowAttackPoint) && this.hitTest(_root.stageSet.cpu)) && (((_root.stageSet.cpu.stepSpringing || _root.stageSet.cpu.flipKicking) || _root.stageSet.cpu.frontKicking) || _root.stageSet.cpu.jumpKickRange)) && (!(this.jumpRange || this.jumpKickRange))) {
this.hitBack = 10;
}
}
};
}
this.setVariablesOnLoad();
};
this.AttackDelay = function (n) {
delay = n;
if (help == 0) {
this.attackDelayTime = getTimer();
} else if (delay == 1) {
this.attackDelayTime = getTimer() + 1000;
}
if (delay == 8) {
this.attackDelayTime = getTimer() + 800;
}
};
this.timeFunction = function () {
if (this.timeFlag == false) {
this.currentTime = getTimer();
} else if (((this.timeFlag == true) && (this.timeSet == false)) && (this.currentTime < getTimer())) {
this.timeSet = true;
this.currentTime = getTimer() + 500;
} else if ((this.timeFlag == true) && (getTimer() > this.currentTime)) {
this.timeFlag = false;
this.timeSet = false;
lengthOfArrowKey = this.player1_arrayArrowKey.length;
i = 0;
while (i < lengthOfArrowKey) {
this.player1_arrayArrowKey.pop();
i++;
}
this.player1_arrayArrowKey.unshift("waiting");
trace(this.player1_arrayArrowKey);
}
};
this.facingDirection = function () {
if (!(((this.throwRange || (this.shotoThrownRange)) || (this.jkdThrownRange)) || (this.capoThrownRange))) {
if (this._x <= _root.stageSet.cpu._x) {
this._xscale = 100;
this.recieveKeyCommandsLeft();
} else if (this._x > _root.stageSet.cpu._x) {
this._xscale = -100;
this.recieveKeyCommandsRight();
}
}
};
this.KnockedDown = function () {
if (this.KDGURange) {
if (this._xscale == 100) {
this._x = this._x - 15;
} else if (this._xscale == -100) {
this._x = this._x + 15;
}
}
};
this.KnockedBack = function () {
if (this._xscale == 100) {
if (this.hitBack > 0) {
this._x = this._x - this.hitBack;
this.hitBack = this.hitBack - 2;
}
} else if (this._xscale == -100) {
if (this.hitBack > 0) {
this._x = this._x + this.hitBack;
this.hitBack = this.hitBack - 2;
}
}
};
this.Grabbing = function () {
if ((((this.hitTest(_root.stageSet.cpu) && (this.grabPoint)) && (!(_root.stageSet.cpu.downing || (_root.stageSet.cpu.crouchDefenseRange)))) && (!_root.stageSet.cpu.highAttackPoint)) && (!(_root.stageSet.cpu.jumpRange || (_root.stageSet.cpu.jumpKickRange)))) {
this.throwFlag = true;
this.player1_arrayKey.unshift("throwing");
} else if (_root.stageSet.cpu.throwBreakRange && (_root.stageSet.player1.throwRange)) {
this.player1_arrayKey.unshift("throwBreak");
this.hitBack = 10;
}
};
this.ThrownMovement = function () {
if (_root.stageSet.cpu.Enemy == 1) {
if ((this._currentframe == 305) && (!_root.stageSet.cpu.throwRange)) {
this.player1_arrayStatus[0] = "standing";
}
if ((this._currentframe > 310) && (this._currentframe < 322)) {
if (this._xscale == -100) {
this._x = this._x - 10;
} else if (this._xscale == 100) {
this._x = this._x + 10;
}
}
} else if (_root.stageSet.cpu.Enemy == 2) {
if ((this._currentframe == 378) && (!_root.stageSet.cpu.throwRange)) {
this.player1_arrayStatus[0] = "standing";
}
if ((this._currentframe > 400) && (this._currentframe < 405)) {
if (this._xscale == -100) {
this._x = this._x + 20;
} else if (this._xscale == 100) {
this._x = this._x - 20;
}
}
} else if (_root.stageSet.cpu.Enemy == 3) {
if ((this._currentframe == 410) && (!_root.stageSet.cpu.throwRange)) {
this.player1_arrayStatus[0] = "standing";
}
if ((this._currentframe >= 413) && (this._currentframe <= 414)) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 418) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 423) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if ((this._currentframe >= 427) && (this._currentframe <= 435)) {
if (this._xscale == -100) {
this._x = this._x - 25;
} else if (this._xscale == 100) {
this._x = this._x + 25;
}
}
}
};
this.KeepInBorder = function () {
if (this._x <= _root.stageSet.box.stageLeft) {
this._x = _root.stageSet.box.stageLeft;
} else if (this._x >= _root.stageSet.box.stageRight) {
this._x = _root.stageSet.box.stageRight;
} else if (this._y <= _root.stageSet.box.stageTop) {
this._y = _root.stageSet.box.stageTop;
} else if (this._y >= _root.stageSet.box.stageBottom) {
this._y = _root.stageSet.box.stageBottom;
}
};
this.onEnterFrame = function () {
this.timeFunction();
this.setVariablesOnEnterFrame();
this.facingDirection();
this.HITME();
this.ThrownMovement();
this.KnockedDown();
this.KnockedBack();
this.Grabbing();
this.KeepInBorder();
};
};
Player1.prototype = new MovieClip();
Object.registerClass("JKDfighter", Player1);
i = 0;
while (i < 1) {
_root.stageSet.attachMovie("JKDfighter", "player1", 100);
i++;
}
Instance of Symbol 1223 MovieClip [JKDOutput] "Output" in Symbol 1225 MovieClip [JKDControls] Frame 1
onClipEvent (load) {
this.jumpFactor = 50;
this.fallFactor = 50;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.Jump = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.jumpFactor;
if (!_root.stageSet.player1.jumpKickRange) {
if (this.jumpFactor == -40) {
_root.stageSet.player1.gotoAndStop(277);
} else if (this.jumpFactor == -20) {
_root.stageSet.player1.gotoAndStop(278);
} else if (this.jumpFactor == 0) {
_root.stageSet.player1.gotoAndStop(282);
} else if (this.jumpFactor == 20) {
_root.stageSet.player1.gotoAndStop(285);
}
}
if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
_root.stageSet.player1.gotoAndPlay("stance");
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.Fall = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
if (_root.stageSet.player1._y < 400) {
_root.stageSet.player1.gotoAndStop("fall_part1");
} else if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (_root.stageSet.player1.lifePoints > 0) {
_root.stageSet.player1.gotoAndPlay("getUp");
} else if (_root.stageSet.player1.lifePoints <= 0) {
_root.stageSet.player1.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Receive = function () {
if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "standing") {
_root.stageSet.player1.gotoAndPlay("stance");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "winPose") {
_root.stageSet.player1.gotoAndPlay("winPose");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "down") {
_root.stageSet.player1.gotoAndPlay("down");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defense1") {
_root.stageSet.player1.gotoAndPlay("defense1");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defense2") {
_root.stageSet.player1.gotoAndPlay("defense2");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defenseHit") {
_root.stageSet.player1.gotoAndPlay("defenseHit");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchDefense") {
_root.stageSet.player1.gotoAndPlay("crouchDefense");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchAttacked") {
_root.stageSet.player1.gotoAndPlay("crouchAttacked");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "attacked") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("attacked");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "KDGU") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("KDGU");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "punch") {
_root.stageSet.player1.gotoAndPlay("jab");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "kick") {
_root.stageSet.player1.gotoAndPlay("roundHouse");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "cross") {
_root.stageSet.player1.gotoAndPlay("cross");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "uppercut") {
_root.stageSet.player1.gotoAndPlay("upperCut");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "sideKick") {
_root.stageSet.player1.gotoAndPlay("sideKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "spinningBKick") {
_root.stageSet.player1.gotoAndPlay("spinningBKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "hammerFist") {
_root.stageSet.player1.gotoAndPlay("hammerFist");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "spinningBFist") {
_root.stageSet.player1.gotoAndPlay("spinningBFist");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "highRoundHouse") {
_root.stageSet.player1.gotoAndPlay("highRoundHouse");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "comboSweep") {
_root.stageSet.player1.gotoAndPlay("comboSweep");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "heavyBFist") {
_root.stageSet.player1.gotoAndPlay("heavyBFist");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "axeKick") {
_root.stageSet.player1.gotoAndPlay("axeKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "flipKick") {
_root.stageSet.player1.gotoAndPlay("flipKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "lowPunch") {
_root.stageSet.player1.gotoAndPlay("lowPunch");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "lowSweep") {
_root.stageSet.player1.gotoAndPlay("lowSweep");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "grab") {
_root.stageSet.player1.gotoAndPlay("grab");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwing") {
_root.stageSet.player1.gotoAndPlay("throw");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwBreak") {
_root.stageSet.player1.gotoAndPlay("throwBreak");
_root.stageSet.player1.player1_arrayKey.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "shotoThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 10;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 10;
}
_root.stageSet.player1.gotoAndPlay("shotoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "jkdThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 100;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 100;
}
_root.stageSet.player1.gotoAndPlay("jkdThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "capoThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 60;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 60;
}
_root.stageSet.player1.gotoAndPlay("capoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jumpKick") {
_root.stageSet.player1.gotoAndPlay("jump_Kick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jump") {
trace("jump");
_root.stageSet.player1.gotoAndStop(277);
_root.stageSet.player1.player1_arrayKey.pop();
this.jumpFactor = -40;
this._root.stageSet.player1._y = this._root.stageSet.player1._y - 1;
if (Key.isDown(37)) {
this.jumpFlagLeft = true;
} else if (Key.isDown(39)) {
this.jumpFlagRight = true;
}
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "fall") {
_root.stageSet.player1.player1_arrayStatus.pop();
this.fallFactor = -50;
this._root.stageSet.player1._y = this._root.stageSet.player1._y - 1;
_root.stageSet.player1.gotoAndStop("fall_part1");
if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagLeft = true;
this.jumpFlagRight = false;
} else if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagLeft = false;
this.jumpFlagRight = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagRight = false;
this.jumpFlagLeft = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagRight = true;
this.jumpFlagLeft = false;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
this.jumpFlagLeft = true;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
this.jumpFlagRight = true;
}
}
};
this.reduceArray = function () {
if (_root.stageSet.player1.player1_arrayStatus.length > 0) {
_root.stageSet.player1.player1_arrayStatus.pop();
}
};
}
onClipEvent (enterFrame) {
trace(this.jumpFactor + " jumpfactor");
trace(this.Ydifference + "ydifference");
this.Yposition = _root.stageSet.player1._y;
this.Ydifference = Math.abs(this.Yposition - 400);
this.Receive();
this.reduceArray();
if ((_root.stageSet.player1._y < 400) && (_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange))) {
this.Jump();
} else if (_root.stageSet.player1.inAir) {
this.Fall();
}
}
Symbol 1227 MovieClip [CapoInput] Frame 1
!!!ERROR
Instance of Symbol 1226 MovieClip in Symbol 1228 MovieClip [CapoControls] Frame 1
onClipEvent (load) {
this.jumpFactor = 50;
this.fallFactor = 50;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.Jump = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.jumpFactor;
if (!_root.stageSet.player1.jumpKickRange) {
if (this.jumpFactor == -40) {
_root.stageSet.player1.gotoAndStop(300);
} else if (this.jumpFactor == -20) {
_root.stageSet.player1.gotoAndStop(301);
} else if (this.jumpFactor == 0) {
_root.stageSet.player1.gotoAndStop(305);
} else if (this.jumpFactor == 20) {
_root.stageSet.player1.gotoAndStop(309);
}
}
if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
_root.stageSet.player1.gotoAndPlay("ginga");
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.Fall = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
if (_root.stageSet.player1._y < 400) {
_root.stageSet.player1.gotoAndStop("fall");
} else if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (_root.stageSet.player1.lifePoints > 0) {
_root.stageSet.player1.gotoAndPlay("getUp");
} else if (_root.stageSet.player1.lifePoints <= 0) {
_root.stageSet.player1.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Receive = function () {
if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "standing") {
_root.stageSet.player1.gotoAndPlay("ginga");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouch") {
_root.stageSet.player1.gotoAndPlay("crouch");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "down") {
_root.stageSet.player1.gotoAndPlay("down");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defense1") {
_root.stageSet.player1.gotoAndPlay("defense1");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defense2") {
_root.stageSet.player1.gotoAndPlay("defense2");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchDefense") {
_root.stageSet.player1.gotoAndPlay("crouchDefense");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchAttacked") {
_root.stageSet.player1.gotoAndPlay("crouchAttacked");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "attacked") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("attacked");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "KDGU") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("KDGU");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "punch") {
_root.stageSet.player1.gotoAndPlay("rightSlap");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "leftSlap") {
_root.stageSet.player1.gotoAndPlay("leftSlap");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "whipKick") {
_root.stageSet.player1.gotoAndPlay("whipKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "kick") {
_root.stageSet.player1.gotoAndPlay("knee");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "frontKick") {
_root.stageSet.player1.gotoAndPlay("frontKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "rightElbow") {
_root.stageSet.player1.gotoAndPlay("rightElbow");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "shinBlast") {
_root.stageSet.player1.gotoAndPlay("shinBlast");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "stepSpring") {
_root.stageSet.player1.gotoAndPlay("stepSpring");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "flipKick") {
_root.stageSet.player1.gotoAndPlay("flipKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "lowPunch") {
_root.stageSet.player1.gotoAndPlay("lowPunch");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "lowSweep") {
_root.stageSet.player1.gotoAndPlay("lowSweep");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "grab") {
_root.stageSet.player1.gotoAndPlay("grab");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwing") {
_root.stageSet.player1.gotoAndPlay("throw");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwBreak") {
_root.stageSet.player1.gotoAndPlay("throwBreak");
_root.stageSet.player1.player1_arrayKey.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "shotoThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 10;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 10;
}
_root.stageSet.player1.gotoAndPlay("shotoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "jkdThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 100;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 100;
}
_root.stageSet.player1.gotoAndPlay("jkdThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "capoThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 60;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 60;
}
_root.stageSet.player1.gotoAndPlay("capoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jumpKick") {
_root.stageSet.player1.gotoAndPlay("jump_Kick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jump") {
trace("jump");
_root.stageSet.player1.gotoAndStop(300);
_root.stageSet.player1.player1_arrayKey.pop();
this.jumpFactor = -40;
this._root.stageSet.player1._y = this._root.stageSet.player1._y - 1;
if (Key.isDown(37)) {
this.jumpFlagLeft = true;
} else if (Key.isDown(39)) {
this.jumpFlagRight = true;
}
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "fall") {
_root.stageSet.player1.player1_arrayStatus.pop();
this.fallFactor = -50;
this._root.stageSet.player1._y = this._root.stageSet.player1._y - 1;
_root.stageSet.player1.gotoAndStop("fall");
if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagLeft = true;
this.jumpFlagRight = false;
} else if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagLeft = false;
this.jumpFlagRight = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagRight = false;
this.jumpFlagLeft = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagRight = true;
this.jumpFlagLeft = false;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
this.jumpFlagLeft = true;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
this.jumpFlagRight = true;
}
}
};
this.reduceArray = function () {
if (_root.stageSet.player1.player1_arrayStatus.length > 0) {
_root.stageSet.player1.player1_arrayStatus.pop();
}
};
}
onClipEvent (enterFrame) {
trace(this.jumpFactor + " jumpfactor");
trace(this.Ydifference + "ydifference");
this.Yposition = _root.stageSet.player1._y;
this.Ydifference = Math.abs(this.Yposition - 400);
this.Receive();
this.reduceArray();
if ((_root.stageSet.player1._y < 400) && (_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange))) {
this.Jump();
} else if (_root.stageSet.player1.inAir) {
this.Fall();
}
}
Symbol 1230 MovieClip [ShotoInput] Frame 1
!!!ERROR
Symbol 1230 MovieClip [ShotoInput] Frame 3
prevFrame();
play();
Instance of Symbol 1229 MovieClip "playerOutput" in Symbol 1231 MovieClip [ShotoControls] Frame 1
onClipEvent (load) {
this.jumpFactor = 50;
this.fallFactor = 50;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.Jump = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.jumpFactor;
if (!_root.stageSet.player1.jumpKickRange) {
if (this.jumpFactor == -40) {
_root.stageSet.player1.gotoAndStop(278);
} else if (this.jumpFactor == -20) {
_root.stageSet.player1.gotoAndStop(279);
} else if (this.jumpFactor == 0) {
_root.stageSet.player1.gotoAndStop(283);
} else if (this.jumpFactor == 20) {
_root.stageSet.player1.gotoAndStop(287);
}
}
if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
_root.stageSet.player1.gotoAndPlay("stance");
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.Fall = function () {
_root.stageSet.player1._y = _root.stageSet.player1._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (this.jumpFlagRight == true) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 15;
}
if (_root.stageSet.player1._y < 400) {
_root.stageSet.player1.gotoAndStop("fall");
} else if (_root.stageSet.player1._y > 400) {
_root.stageSet.player1._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (_root.stageSet.player1.lifePoints > 0) {
_root.stageSet.player1.gotoAndPlay("getUp");
} else if (_root.stageSet.player1.lifePoints <= 0) {
_root.stageSet.player1.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Receive = function () {
if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkLeft") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkBackward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == 100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x + 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "walkRight") && (_root.stageSet.player1._xscale == -100)) {
_root.stageSet.player1._x = _root.stageSet.player1._x - 10;
_root.stageSet.player1.gotoAndPlay("walkForward");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "jabbed") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("jabbed");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.shortAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "deepPunched") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("deepPunched");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.midAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "heavyPunched") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("heavyPunched");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.heavyAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "legKicked") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("legKicked");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.shortAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "spunAround") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("spunAround");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.heavyAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "KDGU") {
trace(_root.stageSet.player1.player1_arrayStatus);
_root.stageSet.player1.gotoAndPlay("KDGU");
_root.stageSet.player1.player1_arrayStatus.unshift("waiting");
trace(_root.stageSet.player1.player1_arrayStatus.length);
_root.heavyAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "standing") {
_root.stageSet.player1.gotoAndPlay("stance");
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "winPose") {
_root.stageSet.player1.gotoAndPlay("shotoWinPose");
_root.stageSet.player1.player1_arrayStatus.pop();
trace(_root.stageSet.player1.player1_arrayStatus);
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "down") {
_root.stageSet.player1.gotoAndPlay("crouched");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "defense") {
_root.stageSet.player1.gotoAndPlay("defense");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchDefense") {
_root.stageSet.player1.gotoAndPlay("crouchDefense");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "crouchAttacked") {
_root.stageSet.player1.gotoAndPlay("crouchAttacked");
_root.stageSet.player1.player1_arrayStatus.pop();
_root.shortAttackedSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "punch") {
_root.stageSet.player1.gotoAndPlay("jab");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "forward") {
_root.stageSet.player1.gotoAndPlay("forward");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "hook") {
_root.stageSet.player1.gotoAndPlay("hook");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "risingUpper") {
_root.stageSet.player1.gotoAndPlay("risingUpper");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "shootingFist") {
_root.stageSet.player1.gotoAndPlay("shootingFist");
_root.stageSet.player1.player1_arrayKey.pop();
} else if (_root.stageSet.player1.player1_arrayKey[0] == "kick") {
_root.stageSet.player1.gotoAndPlay("legKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "rhHigh") {
_root.stageSet.player1.gotoAndPlay("rh_High");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "rhMid") {
_root.stageSet.player1.gotoAndPlay("rh_Mid");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "crouchJab") {
_root.stageSet.player1.gotoAndPlay("crouchJab");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "crouchUpperCut") {
_root.stageSet.player1.gotoAndPlay("crouchUpperCut");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "crouchKick") {
_root.stageSet.player1.gotoAndPlay("crouchKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.shortAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "crouchDeepKick") {
_root.stageSet.player1.gotoAndPlay("crouchDeepKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "crouchSweep") {
_root.stageSet.player1.gotoAndPlay("crouchSweep");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "axeKick") {
_root.stageSet.player1.gotoAndPlay("axeKick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.heavyAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "stepInFrontKick") {
_root.stageSet.player1.gotoAndPlay("stepInFrontKick");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "stepInAxeKick") {
_root.stageSet.player1.gotoAndPlay("stepInAxeKick");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "grab") {
_root.stageSet.player1.gotoAndPlay("grab");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwing") {
_root.stageSet.player1.gotoAndPlay("throw");
_root.stageSet.player1.player1_arrayKey.pop();
this._x = this._x + 40;
} else if (_root.stageSet.player1.player1_arrayKey[0] == "throwBreak") {
_root.stageSet.player1.gotoAndPlay("throwBreak");
_root.stageSet.player1.player1_arrayKey.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "shotoThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 10;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 10;
}
_root.stageSet.player1.gotoAndPlay("shotoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "jkdThrown") {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 100;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 100;
}
_root.stageSet.player1.gotoAndPlay("jkdThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if ((_root.stageSet.player1.player1_arrayStatus[0] == "capoThrown") && _root.stageSet.cpu.throwRange) {
if (_root.stageSet.player1._x > _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x + 60;
} else if (_root.stageSet.player1._x < _root.stageSet.cpu._x) {
_root.stageSet.player1._x = _root.stageSet.cpu._x - 60;
}
_root.stageSet.player1.gotoAndPlay("capoThrown");
_root.stageSet.player1.player1_arrayStatus.pop();
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jumpKick") {
_root.stageSet.player1.gotoAndPlay("jump_Kick");
_root.stageSet.player1.player1_arrayKey.pop();
_root.midAttackSound.start(0, 1);
} else if (_root.stageSet.player1.player1_arrayKey[0] == "jump") {
trace("jump");
_root.stageSet.player1.gotoAndStop(278);
_root.stageSet.player1.player1_arrayKey.pop();
this.jumpFactor = -40;
this._root.stageSet.player1._y = this._root.stageSet.player1._y - 1;
if (Key.isDown(37)) {
this.jumpFlagLeft = true;
} else if (Key.isDown(39)) {
this.jumpFlagRight = true;
}
} else if (_root.stageSet.player1.player1_arrayStatus[0] == "fall") {
_root.stageSet.player1.player1_arrayStatus.pop();
this.fallFactor = -50;
_root.stageSet.player1._y = _root.stageSet.player1._y - 1;
_root.stageSet.player1.gotoAndStop("fall");
if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagLeft = true;
this.jumpFlagRight = false;
} else if ((this.jumpFlagLeft == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagLeft = false;
this.jumpFlagRight = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == 100)) {
this.jumpFlagRight = false;
this.jumpFlagLeft = true;
} else if ((this.jumpFlagRight == true) && (_root.stageSet.player1_xscale == -100)) {
this.jumpFlagRight = true;
this.jumpFlagLeft = false;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == 100)) {
this.jumpFlagLeft = true;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (_root.stageSet.player1._xscale == -100)) {
this.jumpFlagRight = true;
}
}
};
this.reduceArray = function () {
if (_root.stageSet.player1.player1_arrayStatus.length > 0) {
_root.stageSet.player1.player1_arrayStatus.pop();
}
};
}
onClipEvent (enterFrame) {
trace(this.jumpFactor + " jumpfactor");
trace(this.Ydifference + "ydifference");
this.Yposition = _root.stageSet.player1._y;
this.Ydifference = Math.abs(this.Yposition - 400);
this.Receive();
this.reduceArray();
if ((_root.stageSet.player1._y < 400) && (_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange))) {
this.Jump();
} else if (_root.stageSet.player1.inAir) {
this.Fall();
}
}
Symbol 1232 MovieClip [SHOTOCPU] Frame 1
CPU = function () {
this.onLoad = function () {
this.lifePoints = 100;
this.heavyHit = 10;
this.midHit = 5;
this.lightHit = 2;
this.eBarHeavy = 25;
this.eBarMid = 13;
this.eBarLight = 5;
this.hitBack = 0;
this.knockedOut = false;
this.jumpFactor = 50;
this.fallFactor = 50;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.defenseFlag = false;
this.hitair = false;
this.fall = 299;
this.defeated = 296;
this._x = 600;
this._y = 400;
this._xscale = -100;
this.setVariablesOnLoad = function () {
this.Enemy = 1;
this.timeFlag = false;
this.timeSet = false;
this.currentTimer = getTimer();
this.stanceFirst = 1;
this.stanceLast = 10;
this.jumpFirst = 275;
this.jumpLast = 287;
this.jumpKickFirst = 290;
this.jumpKickLast = 294;
this.defenseFirst = 205;
this.defenseLast = 206;
this.downFirst = 174;
this.downLast = 180;
this.walkForwardFirst = 29;
this.walkForwardLast = 44;
this.walkBackwardFirst = 12;
this.walkBackwardLast = 27;
this.jabFirst = 46;
this.jabLast = 49;
this.forwardFirst = 51;
this.forwardLast = 56;
this.hookFirst = 58;
this.hookLast = 67;
this.legkickFirst = 97;
this.legKickLast = 102;
this.rhHighFirst = 104;
this.rhHighLast = 117;
this.rhMidFirst = 119;
this.rhMidLast = 132;
this.axeKickFirst = 134;
this.axeKickLast = 144;
this.stepInFrontKickFirst = 146;
this.stepInFrontKickLast = 156;
this.stepInAxeKickFirst = 158;
this.stepInAxeKickLast = 172;
this.risingUpperFirst = 236;
this.risingUpperLast = 247;
this.shootingFistFirst = 249;
this.shootingFistLast = 256;
this.crouchDefenseFirst = 314;
this.crouchDefenseLast = 315;
this.crouchAttackedFirst = 318;
this.crouchAttackedLast = 321;
this.crouchKickFirst = 69;
this.crouchKickLast = 73;
this.crouchDeepKickFirst = 75;
this.crouchDeepKickLast = 83;
this.crouchSweepFirst = 85;
this.crouchSweepLast = 95;
this.crouchJabFirst = 184;
this.crouchJabLast = 187;
this.crouchUpperCutFirst = 189;
this.crouchUpperCutLast = 198;
this.grabFirst = 392;
this.grabLast = 395;
this.throwFirst = 324;
this.throwLast = 355;
this.shotoThrownFirst = 358;
this.shotoThrownLast = 389;
this.jkdThrownFirst = 398;
this.jkdThrownLast = 428;
this.capoThrownFirst = 431;
this.capoThrownLast = 457;
this.throwBreakFirst = 470;
this.throwBreakLast = 477;
this.KDGUFirst = 258;
this.KDGULast = 263;
this.getUpFirst = 302;
this.getUpLast = 311;
};
this.setVariablesOnLoad();
};
this.setVariablesOnEnterFrame = function () {
this.sync = this.currentTimer <= getTimer();
this.standing = (this._currentframe >= this.stanceFirst) && (this._currentframe <= this.stanceLast);
this.downing = (this._currentframe >= this.downFirst) && (this._currentframe <= this.downLast);
this.defending = (this._currentframe >= this.defenseFirst) && (this._currentframe <= this.defenseLast);
this.walkingForward = (this._currentframe >= this.walkForwardFirst) && (this._currentframe <= this.walkForwardLast);
this.walkingBackWard = (this._currentframe >= this.walkBackwardFirst) && (this._currentframe <= this.walkBackwardLast);
this.crouchDefenseRange = (this._currentframe >= this.crouchDefenseFirst) && (this._currentframe <= this.crouchDefenseLast);
this.crouchAttackedRange = (this._currentframe >= this.crouchAttackedFirst) && (this._currentframe <= this.crouchAttackedLast);
this.jabbing = (this._currentframe >= this.jabFirst) && (this._currentframe <= this.jabLast);
this.forwarding = (this._currentframe >= this.forwardFirst) && (this._currentframe <= this.forwardLast);
this.hooking = (this._currentframe >= this.hookFirst) && (this._currentframe <= this.hookLast);
this.legKicking = (this._currentframe >= this.legKickFirst) && (this._currentframe <= this.legKickLast);
this.rhHighing = (this._currentframe >= this.rhHighFirst) && (this._currentframe <= this.rhHighLast);
this.rhMiding = (this._currentframe >= this.rhMidFirst) && (this._currentframe <= this.rhMidLast);
this.axeKicking = (this._currentframe >= this.axeKickFirst) && (this._currentframe <= this.axeKickLast);
this.stepInFrontKicking = (this._currentframe >= this.stepInFrontKickFirst) && (this._currentframe <= this.stepInFrontKickLast);
this.stepInAxeKicking = (this._currentframe >= this.stepInAxeKickFirst) && (this._currentframe <= this.stepInAxeKickLast);
this.risingUppering = (this._currentframe >= this.risingUpperFirst) && (this._currentframe <= this.risingUpperLast);
this.shootingFisting = (this._currentframe >= this.shootingFistFirst) && (this._currentframe <= this.shootingFistLast);
this.walkingBackWard = (this._currentframe >= this.walkBackwardFirst) && (this._currentframe <= this.walkBackwardLast);
this.crouchKicking = (this._currentframe >= this.crouchKickFirst) && (this._currentframe <= this.crouchKickLast);
this.crouchDeepKicking = (this._currentframe >= this.crouchDeepKickFirst) && (this._currentframe <= this.crouchDeepKickLast);
this.crouchSweeping = (this._currentframe >= this.crouchSweepFirst) && (this._currentframe <= this.crouchSweepLast);
this.crouchJabbing = (this._currentframe >= this.crouchJabFirst) && (this._currentframe <= this.crouchJabLast);
this.crouchUpperCutting = (this._currentframe >= this.crouchUpperCutFirst) && (this._currentframe <= this.crouchUpperCutLast);
this.jumpRange = (this._currentframe >= this.jumpFirst) && (this._currentframe <= this.jumpLast);
this.jumpKickRange = (this._currentframe >= this.jumpKickFirst) && (this._currentframe <= this.jumpKickLast);
this.grabRange = (this._currentframe >= this.grabFirst) && (this._currentframe <= this.grabLast);
this.throwRange = (this._currentframe >= this.throwFirst) && (this._currentframe <= this.throwLast);
this.shotoThrownRange = (this._currentframe >= this.shotoThrownFirst) && (this._currentframe <= this.shotoThrownLast);
this.jkdThrownRange = (this._currentframe >= this.jkdThrownFirst) && (this._currentframe <= this.jkdThrownLast);
this.capoThrownRange = (this._currentframe >= this.capoThrownFirst) && (this._currentframe <= this.capoThrownLast);
this.throwBreakRange = (this._currentframe >= this.throwBreakFirst) && (this._currentframe <= this.throwBreakLast);
this.KDGURange = (this._currentframe >= this.KDGUFirst) && (this._currentframe <= this.KDGULast);
this.getUpRange = (this._currentframe >= this.getUpFirst) && (this._currentframe <= this.getUpLast);
this.falling = this._currentframe == this.fall;
this.defeatedRange = this._currentframe == this.defeated;
this.highAttacking = (((((((this.jabbing || (this.forwarding)) || (this.hooking)) || (this.rhHighing)) || (this.rhMiding)) || (this.axeKicking)) || (this.stepInFrontKicking)) || (this.stepInAxeKicking)) || (this.risingUppering);
this.lowAttacking = ((((this.legKicking || (this.crouchKicking)) || (this.crouchDeepKicking)) || (this.crouchSweeping)) || (this.crouchJabbing)) || (this.crouchUpperCutting);
this.highAttackPoint = (((((((((((this._currentframe == 47) || (this._currentframe == 54)) || (this._currentframe == 63)) || (this._currentframe == 110)) || (this._currentframe == 125)) || (this._currentframe == 140)) || (this._currentframe == 141)) || (this._currentframe == 152)) || (this._currentframe == 167)) || (this._currentframe == 239)) || (this._currentframe == 254)) || (this._currentframe == 292);
this.lowAttackPoint = (((((this._currentframe == 100) || (this._currentframe == 71)) || (this._currentframe == 79)) || (this._currentframe == 90)) || (this._currentframe == 186)) || (this._currentframe == 193);
this.grabPoint = (this._currentframe == 394) || (this._currentframe == 395);
this.ready = (((this.standing || (this.walkingForward)) || (this.walkingBackward)) || (this.downing)) || (this.defending);
};
this.Jump = function () {
this._y = this._y + this.jumpFactor;
if (!this.jumpKickRange) {
if (this.jumpFactor == -40) {
this.gotoAndStop(278);
} else if (this.jumpFactor == -20) {
this.gotoAndStop(279);
} else if (this.jumpFactor == 0) {
_this.gotoAndStop(283);
} else if (this.jumpFactor == 20) {
this.gotoAndStop(287);
}
}
if (this._y > 400) {
this._y = 400;
this.gotoAndPlay("stance");
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
this._x = this._x - 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.FallHard = function () {
this._y = this._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
this._x = this._x + 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == 100)) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == -100)) {
this._x = this._x + 15;
}
if (this._y < 400) {
this.gotoAndStop("fall");
} else if (this._y > 400) {
this._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (this.lifePoints > 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndPlay("getUp");
} else if (this.lifePoints <= 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Decision = function () {
if ((_root.stageSet.player1.ready && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(8);
if (n == 0) {
this.gotoAndPlay("jab");
_root.shortAttackSound.start(0, 1);
this.Thinking();
} else if (n == 1) {
this.gotoAndPlay("stepInFrontKick");
_root.midAttackSound.start(0, 1);
this.Thinking();
} else if (n == 2) {
this.gotoAndPlay("axeKick");
_root.heavyAttackSound.start(0, 1);
this.Thinking();
} else if (n == 3) {
this.gotoAndPlay("legKick");
_root.shortAttackSound.start(0, 1);
this.Thinking();
} else if (n == 4) {
this.gotoAndPlay("risingUpper");
_root.heavyAttackSound.start(0, 1);
this.Thinking();
} else if (n == 5) {
if (this._xscale == 100) {
this._x = this._x + 15;
} else if (this._xscale == -100) {
this._x = this._x - 15;
}
this.gotoAndPlay("grab");
this.Thinking();
} else if (n == 7) {
if (this._xscale == -100) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (this._xscale == 100) {
this.jumpFlagRight = true;
this.DecisionJump();
}
}
} else if ((_root.stageSet.player1.downing && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(3);
if (n == 0) {
this.gotoAndPlay("stepInAxeKick");
_root.heavyAttackSound.start(0, 1);
this.Thinking();
} else if (n == 1) {
this.gotoAndPlay("crouchKick");
_root.shortAttackSound.start(0, 1);
this.Thinking();
} else if (n == 2) {
this.gotoAndPlay("risingUpper");
_root.heavyAttackSound.start(0, 1);
this.Thinking();
}
}
if (this.jabbing && (this._currentframe == 49)) {
this.gotoAndPlay("forward");
_root.midAttackSound.start(0, 1);
} else if (this.forwarding && (this._currentframe == 55)) {
this.gotoAndPlay("hook");
_root.heavyAttackSound.start(0, 1);
}
if (this.crouchKicking && (this._currentframe == 72)) {
this.gotoAndPlay("crouchDeepKick");
_root.midAttackSound.start(0, 1);
} else if (this.crouchDeepKicking && (this._currentframe == 80)) {
this.gotoAndPlay("crouchSweep");
_root.heavyAttackSound.start(0, 1);
} else if (this.legKicking && (this._currentframe == 101)) {
this.gotoAndPlay("rh_High");
_root.midAttackSound.start(0, 1);
} else if (this.rhHighing && (this._currentframe == 114)) {
this.gotoAndPlay("rh_Mid");
_root.heavyAttackSound.start(0, 1);
}
};
this.DecisionJump = function () {
this.gotoAndStop(278);
this.jumpFactor = -40;
this._y = this._y - 1;
};
this.DecisionFall = function () {
trace("##########################################");
this.fallFactor = -50;
this._y = this._y - 1;
this.gotoAndStop("fall");
};
this.Thinking = function () {
n = random(3);
if (n == 0) {
this.currentTimer = getTimer();
} else if (n == 1) {
this.currentTimer = getTimer() + 1000;
}
if (n == 2) {
this.currentTimer = getTimer() + 2000;
}
};
this.Pursuit = function () {
if (_root.stageSet.player1.lifePoints > 0) {
if (!(((this.shotoThrownRange || (this.jkdThrownRange)) || (this.capoThrownRange)) || (this.getUpRange))) {
if (!this.throwRange) {
if (this._x > _root.stageSet.player1._x) {
this._xscale = -100;
} else if (this._x < _root.stageSet.player1._x) {
this._xscale = 100;
}
}
}
if ((((this._x >= (_root.stageSet.player1._x + 90)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
} else if ((((this._x <= (_root.stageSet.player1._x - 90)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x + 5;
}
if ((((this._x > (_root.stageSet.player1._x - 95)) && (this._x < _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
} else if ((((this._x < (_root.stageSet.player1._x + 95)) && (this._x > _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
}
if (((((this._x >= (_root.stageSet.player1._x + 160)) && (this._x <= (_root.stageSet.player1._x + 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
}
} else if (((((this._x <= (_root.stageSet.player1._x - 160)) && (this._x >= (_root.stageSet.player1._x - 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagRight = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x + 5;
}
}
if ((this.jumpRange && (this.jumpFactor == 0)) && (!this.jumpKickRange)) {
this.gotoAndPlay("jump_Kick");
_root.midAttackSound.start(0, 1);
}
}
};
this.HITEST = function () {
if (_root.stageSet.player1.Enemy == 1) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.forwarding)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("deepPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.hooking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("heavyPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else {
n != 3;
}
this.gotoAndPlay("defense");
this.hitBack = 10;
} else {
this.gotoAndPlay("heavyPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.lowAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.legkicking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rhHighing)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else {
this.gotoAndPlay("deepPunched");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rhMiding) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("spunAround");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n != 3) {
this.defenseFlag = true;
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("spunAround");
this.defenseFlag = false;
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchDeepKicking) && (!(this.jumpRange || this.jumpKickRange))) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.shortAttackedSound.start(0, 1);
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchJabbing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchUpperCutting) && (!(this.jumpRange || this.jumpKickRange))) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.midAttackedSound.start(0, 1);
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInFrontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInAxeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.risingUppering) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 20;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 20;
}
this.gotoAndPlay("shotoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.crossing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
this.defenseFlag = false;
_root.midAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.upperCuting)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.sideKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
this.defenseFlag = false;
_root.heavyAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.hammerFisting) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
this.defenseFlag = false;
_root.shortAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.highRoundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
this.defenseFlag = false;
_root.midAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.heavyBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
this.defenseFlag = false;
_root.heavyAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("spunAround");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.comboSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.roundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
this.defenseFlag = false;
_root.midAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 100;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 100;
}
this.gotoAndPlay("jkdThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rightSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
trace(this.player1_arrayStatus[0]);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.leftSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else {
n != 3;
}
this.gotoAndPlay("defense");
this.hitBack = 5;
} else {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.whipKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
this.gotoAndPlay("jabbed");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.kneeing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.frontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rightElbowing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("deepPunched");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.shinBlasting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("heavyPunched");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepSpringing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("legKicked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 60;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 60;
}
this.gotoAndPlay("capoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
}
}
}
};
this.KnockedDown = function () {
if (this.KDGURange) {
if (this._xscale == 100) {
this._x = this._x - 15;
} else if (this._xscale == -100) {
this._x = this._x + 15;
}
}
};
this.KnockedBack = function () {
if (this._xscale == 100) {
if (this.hitBack > 0) {
this._x = this._x - this.hitBack;
this.hitBack = this.hitBack - 2;
}
} else if (this._xscale == -100) {
if (this.hitBack > 0) {
this._x = this._x + this.hitBack;
this.hitBack = this.hitBack - 2;
}
}
};
this.Grabbing = function () {
if ((((this.hitTest(_root.stageSet.player1) && (this.grabPoint)) && (!(_root.stageSet.player1.downing || (_root.stageSet.player1.crouchDefenseRange)))) && (!_root.stageSet.player1.highAttackPoint)) && (!(_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange)))) {
this.throwFlag = true;
this.gotoAndPlay("throw");
}
if ((this._currentframe == 327) && (!_root.stageSet.player1.THROWN)) {
this.gotoAndPlay("stance");
}
};
this.ThrownMovement = function () {
if (_root.stageSet.player1.Enemy == 1) {
if ((this._currentframe > 367) && (this._currentframe < 379)) {
if (this._xscale == -100) {
this._x = this._x - 11;
} else if (this._xscale == 100) {
this._x = this._x + 11;
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if ((this._currentframe > 421) && (this._currentframe < 428)) {
if (this._xscale == -100) {
this._x = this._x + 15;
} else if (this._xscale == 100) {
this._x = this._x - 15;
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if ((this._currentframe >= 436) && (this._currentframe <= 437)) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 441) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 446) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if ((this._currentframe >= 450) && (this._currentframe <= 458)) {
if (this._xscale == -100) {
this._x = this._x - 25;
} else if (this._xscale == 100) {
this._x = this._x + 25;
}
}
}
};
this.KeepInBorder = function () {
if (this._x <= _root.stageSet.box.stageLeft) {
this._x = _root.stageSet.box.stageLeft;
} else if (this._x >= _root.stageSet.box.stageRight) {
this._x = _root.stageSet.box.stageRight;
} else if (this._y <= _root.stageSet.box.stageTop) {
this._y = _root.stageSet.box.stageTop;
} else if (this._y >= _root.stageSet.box.stageBottom) {
this._y = _root.stageSet.box.stageBottom;
}
};
this.onEnterFrame = function () {
this.setVariablesOnEnterFrame();
this.Pursuit();
this.HITEST();
this.KnockedDown();
this.KnockedBack();
this.Grabbing();
this.ThrownMovement();
this.KeepInBorder();
if ((this._y < 400) && (this.jumpRange || (this.jumpKickRange))) {
this.Jump();
} else if ((this._y < 400) && (this.hitair)) {
this.FallHard();
}
};
};
CPU.prototype = new MovieClip();
Object.registerClass("ShotoFighter", CPU);
i = 0;
while (i < 1) {
_root.stageSet.attachMovie("ShotoFighter", "cpu", 200);
i++;
}
Symbol 1232 MovieClip [SHOTOCPU] Frame 3
stop();
Symbol 1233 MovieClip [CAPOCPU] Frame 1
CPU = function () {
this.onLoad = function () {
this.lifePoints = 100;
this.heavyHit = 10;
this.midHit = 5;
this.lightHit = 2;
this.eBarHeavy = 25;
this.eBarMid = 13;
this.eBarLight = 5;
this._x = 600;
this._y = 400;
this._xscale = -100;
this.setVariablesOnLoad = function () {
this.Enemy = 3;
this.timeFlag = false;
this.hitBack = 0;
this.knockedOut = false;
this.jumpFactor = 50;
this.fallFactor = 50;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.defenseFlag = false;
this.hitair = false;
this.fall = 321;
this.defeated = 318;
this.timeSet = false;
this.currentTimer = getTimer();
this.defensePart = 0;
this.crouchPart = 0;
this.stanceFirst = 57;
this.stanceLast = 82;
this.jumpFirst = 297;
this.jumpLast = 309;
this.jumpKickFirst = 312;
this.jumpKickLast = 315;
this.downFirst = 228;
this.downLast = 232;
this.defense1First = 235;
this.defense1Last = 239;
this.walkForwardFirst = 1;
this.walkForwardLast = 25;
this.walkBackwardFirst = 29;
this.walkBackwardLast = 54;
this.rightSlapFirst = 85;
this.rightSlapLast = 96;
this.leftSlapFirst = 99;
this.leftSlapLast = 107;
this.whipKickFirst = 110;
this.whipKickLast = 123;
this.rightElbowFirst = 126;
this.rightElbowLast = 135;
this.shinBlastFirst = 138;
this.shinBlastLast = 148;
this.kneeFirst = 151;
this.kneeLast = 160;
this.frontKickFirst = 163;
this.frontKickLast = 168;
this.stepSpringFirst = 171;
this.stepSpringLast = 193;
this.flipKickFirst = 196;
this.flipKickLast = 220;
this.lowPunchFirst = 242;
this.lowPunchLast = 246;
this.lowSweepFirst = 249;
this.lowSweepLast = 256;
this.grabFirst = 461;
this.grabLast = 464;
this.throwFirst = 401;
this.throwLast = 428;
this.shotoThrownFirst = 334;
this.shotoThrownLast = 365;
this.jkdThrownFirst = 368;
this.jkdThrownLast = 398;
this.capoThrownFirst = 431;
this.capoThrownLast = 458;
this.throwBreakFirst = 485;
this.throwBreakLast = 492;
this.KDGUFirst = 279;
this.KDGULast = 284;
};
this.setVariablesOnLoad();
};
this.setVariablesOnEnterFrame = function () {
this.sync = this.currentTimer <= getTimer();
this.standing = (this._currentframe >= this.stanceFirst) && (this._currentframe <= this.stanceLast);
this.downing = (this._currentframe >= this.downFirst) && (this._currentframe <= this.downLast);
this.defending = (this._currentframe >= this.defense1First) && (this._currentframe <= this.defense1Last);
this.walkingForward = (this._currentframe >= this.walkForwardFirst) && (this._currentframe <= this.walkForwardLast);
this.walkingBackWard = (this._currentframe >= this.walkBackwardFirst) && (this._currentframe <= this.walkBackwardLast);
this.lowPunching = (this._currentframe >= this.lowPunchFirst) && (this._currentframe <= this.lowPunchLast);
this.lowSweeping = (this._currentframe >= this.lowSweepFirst) && (this._currentframe <= this.lowSweepLast);
this.rightSlapping = (this._currentframe >= this.rightSlapFirst) && (this._currentframe <= this.rightSlapLast);
this.leftSlapping = (this._currentframe >= this.leftSlapFirst) && (this._currentframe <= this.leftSlapLast);
this.whipKicking = (this._currentframe >= this.whipKickFirst) && (this._currentframe <= this.whipKickLast);
this.rightElbowing = (this._currentframe >= this.rightElbowFirst) && (this._currentframe <= this.rightElbowLast);
this.shinBlasting = (this._currentframe >= this.shinBlastFirst) && (this._currentframe <= this.shinBlastLast);
this.kneeing = (this._currentframe >= this.kneeFirst) && (this._currentframe <= this.kneeLast);
this.frontKicking = (this._currentframe >= this.frontKickFirst) && (this._currentframe <= this.frontKickLast);
this.stepSpringing = (this._currentframe >= this.stepSpringFirst) && (this._currentframe <= this.stepSpringLast);
this.flipKicking = (this._currentframe >= this.flipKickFirst) && (this._currentframe <= this.flipKickLast);
this.jumpRange = (this._currentframe >= this.jumpFirst) && (this._currentframe <= this.jumpLast);
this.jumpKickRange = (this._currentframe >= this.jumpKickFirst) && (this._currentframe <= this.jumpKickLast);
this.grabRange = (this._currentframe >= this.grabFirst) && (this._currentframe <= this.grabLast);
this.throwRange = (this._currentframe >= this.throwFirst) && (this._currentframe <= this.throwLast);
this.shotoThrownRange = (this._currentframe >= this.shotoThrownFirst) && (this._currentframe <= this.shotoThrownLast);
this.jkdThrownRange = (this._currentframe >= this.jkdThrownFirst) && (this._currentframe <= this.jkdThrownLast);
this.capoThrownRange = (this._currentframe >= this.capoThrownFirst) && (this._currentframe <= this.capoThrownLast);
this.throwBreakRange = (this._currentframe >= this.throwBreakFirst) && (this._currentframe <= this.throwBreakLast);
this.KDGURange = (this._currentframe >= this.KDGUFirst) && (this._currentframe <= this.KDGULast);
this.defeatedRange = this._currentframe == this.defeated;
this.falling = this._currentframe == this.fall;
this.highAttacking = ((((((this.rightSlapping || (this.leftSlapping)) || (this.whipKicking)) || (this.rightElbowing)) || (this.kneeing)) || (this.frontKicking)) || (this.stepSpringing)) || (this.flipKicking);
this.lowAttacking = (this.lowPunching || (this.lowSweeping)) || (this.shinBlasting);
this.highAttackPoint = ((((((((this._currentframe == 90) || (this._currentframe == 104)) || (this._currentframe == 116)) || (this._currentframe == 132)) || (this._currentframe == 155)) || (this._currentframe == 166)) || (this._currentframe == 178)) || (this._currentframe == 207)) || (this._currentframe == 314);
this.lowAttackPoint = ((this._currentframe == 243) || (this._currentframe == 251)) || (this._currentframe == 144);
this.grabPoint = (this._currentframe == 463) || (this._currentframe == 464);
this.ready = (((this.standing || (this.walkingForward)) || (this.walkingBackward)) || (this.downing)) || (this.defending);
if (this._currentframe == 236) {
this.defensePart = 1;
} else if (this._currentframe == 229) {
this.crouchPart = 1;
}
};
this.Jump = function () {
this._y = this._y + this.jumpFactor;
if (!this.jumpKickRange) {
if (this.jumpFactor == -40) {
this.gotoAndStop(300);
} else if (this.jumpFactor == -20) {
this.gotoAndStop(301);
} else if (this.jumpFactor == 0) {
_this.gotoAndStop(305);
} else if (this.jumpFactor == 20) {
this.gotoAndStop(309);
}
}
if (this._y > 400) {
this._y = 400;
this.gotoAndPlay("ginga");
this.hitair = false;
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
this._x = this._x - 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.FallHard = function () {
this._y = this._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
this._x = this._x + 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == 100)) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == -100)) {
this._x = this._x + 15;
}
if (this._y < 400) {
this.gotoAndStop("fall");
} else if (this._y > 400) {
this._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (this.lifePoints > 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndPlay("getUp");
} else if (this.lifePoints <= 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Decision = function () {
if ((_root.stageSet.player1.ready && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(7);
if (n == 0) {
this.gotoAndPlay("rightSlap");
this.Thinking();
_root.shortAttackSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("knee");
this.Thinking();
_root.midAttackSound.start(0, 1);
} else if (n == 2) {
this.gotoAndPlay("rightElbow");
this.Thinking();
_root.midAttackSound.start(0, 1);
} else if (n == 3) {
this.gotoAndPlay("flipKick");
this.Thinking();
_root.heavyAttackSound.start(0, 1);
} else if (n == 4) {
this.gotoAndPlay("stepSpring");
this.Thinking();
_root.heavyAttackSound.start(0, 1);
} else if (n == 5) {
if (this._xscale == 100) {
this._x = this._x + 15;
} else if (this._xscale == -100) {
this._x = this._x - 15;
}
this.gotoAndPlay("grab");
this.Thinking();
} else if (n == 6) {
if (this._xscale == -100) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (this._xscale == 100) {
this.jumpFlagRight = true;
this.DecisionJump();
}
}
} else if ((_root.stageSet.player1.downing && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(3);
if (n == 0) {
this.gotoAndPlay("lowPunch");
this.Thinking();
_root.shortAttackSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("lowSweep");
this.Thinking();
_root.shortAttackSound.start(0, 1);
}
}
if (this.rightSlapping && (this._currentframe == 90)) {
this.gotoAndPlay("leftSlap");
_root.midAttackSound.start(0, 1);
} else if (this.leftSlapping && (this._currentframe == 105)) {
this.gotoAndPlay("whipKick");
_root.heavyAttackSound.start(0, 1);
}
if (this.kneeing && (this._currentframe == 155)) {
this.gotoAndPlay("frontKick");
_root.midAttackSound.start(0, 1);
} else if (this.rightElbowing && (this._currentframe == 132)) {
this.gotoAndPlay("shinBlast");
_root.midAttackSound.start(0, 1);
} else if (this.whipKicking && (this._currentframe == 118)) {
this.gotoAndPlay("lowSweep");
_root.midAttackSound.start(0, 1);
}
};
this.DecisionJump = function () {
this.gotoAndStop(300);
this.jumpFactor = -40;
this._y = this._y - 1;
};
this.DecisionFall = function () {
trace("dskfhdskfjdsh");
this.fallFactor = -50;
this._y = this._y - 1;
this.gotoAndStop("fall");
};
this.Thinking = function () {
n = random(3);
if (n == 0) {
this.currentTimer = getTimer();
} else if (n == 1) {
this.currentTimer = getTimer() + 1000;
}
if (n == 2) {
this.currentTimer = getTimer() + 2000;
}
};
this.Pursuit = function () {
if (_root.stageSet.player1.lifePoints > 0) {
if (!(((this.shotoThrownRange || (this.jkdThrownRange)) || (this.capoThrownRange)) || (this.getUpRange))) {
if (!this.throwRange) {
if (this._x > _root.stageSet.player1._x) {
this._xscale = -100;
} else if (this._x < _root.stageSet.player1._x) {
this._xscale = 100;
}
}
}
if ((((this._x >= (_root.stageSet.player1._x + 95)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
} else if ((((this._x <= (_root.stageSet.player1._x - 95)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x + 5;
}
if ((((this._x > (_root.stageSet.player1._x - 95)) && (this._x < _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
} else if ((((this._x < (_root.stageSet.player1._x + 95)) && (this._x > _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
}
if (((((this._x >= (_root.stageSet.player1._x + 160)) && (this._x <= (_root.stageSet.player1._x + 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
}
} else if (((((this._x <= (_root.stageSet.player1._x - 160)) && (this._x >= (_root.stageSet.player1._x - 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagRight = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
}
}
if ((this.jumpRange && (this.jumpFactor == 0)) && (!this.jumpKickRange)) {
this.gotoAndPlay("jump_Kick");
_root.midAttackSound.start(0, 1);
}
}
};
this.HITEST = function () {
if (_root.stageSet.player1.Enemy == 1) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.forwarding)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.hooking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.legkicking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("crouchAttacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rhHighing)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rhMiding) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchDeepKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else {
this.gotoAndPlay("crouchDefense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchJabbing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchUpperCutting) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInFrontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInAxeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.risingUppering) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 10;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 10;
}
this.gotoAndPlay("shotoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if (((this.lifePoints <= 0) && (this.knockedOut == false)) && (!shotoThrownRange)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
_root.shortAttackedSound.start(0, 1);
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.crossing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.upperCuting)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.sideKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.hammerFisting) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.highRoundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.heavyBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.comboSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.roundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 100;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 100;
}
this.gotoAndPlay("jkdThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if (((this.lifePoints <= 0) && (this.knockedOut == false)) && (!this.jkdThrownRange)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
_root.shortAttackedSound.start(0, 1);
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rightSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.leftSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.whipKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.kneeing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.frontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rightElbowing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.shinBlasting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
this.gotoAndPlay("attacked");
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepSpringing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 60;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 60;
}
this.gotoAndPlay("capoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if (((this.lifePoints <= 0) && (this.knockedOut == false)) && (!this.capoThrownRange)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
_root.shortAttackedSound.start(0, 1);
}
}
}
};
this.KnockedDown = function () {
if (this.KDGURange) {
if (this._xscale == 100) {
this._x = this._x - 15;
} else if (this._xscale == -100) {
this._x = this._x + 15;
}
}
};
this.KnockedBack = function () {
if (this._xscale == 100) {
if (this.hitBack > 0) {
this._x = this._x - this.hitBack;
this.hitBack = this.hitBack - 2;
}
} else if (this._xscale == -100) {
if (this.hitBack > 0) {
this._x = this._x + this.hitBack;
this.hitBack = this.hitBack - 2;
}
}
};
this.Grabbing = function () {
if ((((this.hitTest(_root.stageSet.player1) && (this.grabPoint)) && (!(_root.stageSet.player1.downing || (_root.stageSet.player1.crouchDefenseRange)))) && (!_root.stageSet.player1.highAttackPoint)) && (!(_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange)))) {
this.throwFlag = true;
this.gotoAndPlay("throw");
}
if ((this._currentframe == 403) && (!_root.stageSet.player1.THROWN)) {
this.gotoAndPlay("ginga");
}
};
this.ThrownMovement = function () {
if (_root.stageSet.player1.Enemy == 1) {
if ((this._currentframe > 342) && (this._currentframe < 354)) {
if (this._xscale == -100) {
this._x = this._x - 10;
} else if (this._xscale == 100) {
this._x = this._x + 10;
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if ((this._currentframe > 393) && (this._currentframe < 398)) {
if (this._xscale == -100) {
this._x = this._x + 20;
} else if (this._xscale == 100) {
this._x = this._x - 20;
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if ((this._currentframe >= 436) && (this._currentframe <= 437)) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 441) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 446) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if ((this._currentframe >= 450) && (this._currentframe <= 458)) {
if (this._xscale == -100) {
this._x = this._x - 25;
} else if (this._xscale == 100) {
this._x = this._x + 25;
}
}
}
};
this.KeepInBorder = function () {
if (this._x <= _root.stageSet.box.stageLeft) {
this._x = _root.stageSet.box.stageLeft;
} else if (this._x >= _root.stageSet.box.stageRight) {
this._x = _root.stageSet.box.stageRight;
} else if (this._y <= _root.stageSet.box.stageTop) {
this._y = _root.stageSet.box.stageTop;
} else if (this._y >= _root.stageSet.box.stageBottom) {
this._y = _root.stageSet.box.stageBottom;
}
};
this.onEnterFrame = function () {
this.setVariablesOnEnterFrame();
this.Pursuit();
this.HITEST();
this.KnockedDown();
this.KnockedBack();
this.ThrownMovement();
this.Grabbing();
this.KeepInBorder();
if ((this._y < 400) && (this.jumpRange || (this.jumpKickRange))) {
this.Jump();
} else if ((this._y < 400) && (this.hitair)) {
this.FallHard();
}
};
};
CPU.prototype = new MovieClip();
Object.registerClass("CapoFighter", CPU);
i = 0;
while (i < 1) {
_root.stageSet.attachMovie("CapoFighter", "cpu", 200);
i++;
}
Symbol 1233 MovieClip [CAPOCPU] Frame 3
stop();
Symbol 1234 MovieClip [JKDCPU] Frame 1
CPU = function () {
this.onLoad = function () {
this.lifePoints = 100;
this.heavyHit = 10;
this.midHit = 5;
this.lightHit = 2;
this.eBarHeavy = 25;
this.eBarMid = 13;
this.eBarLight = 5;
this._x = 600;
this._y = 400;
this._xscale = -100;
this.jumpFactor = 50;
this.fallFactor = 50;
this.hitBack = 0;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.defenseFlag = false;
this.hitair = false;
this.fall = 240;
this.defeated = 295;
this.knockedOut = false;
this.setVariablesOnLoad = function () {
this.Enemy = 2;
this.timeFlag = false;
this.timeSet = false;
this.currentTimer = getTimer();
this.defensePart = 0;
this.stanceFirst = 1;
this.stanceLast = 8;
this.jumpFirst = 274;
this.jumpLast = 286;
this.jumpKickFirst = 289;
this.jumpKickLast = 292;
this.downFirst = 199;
this.downLast = 202;
this.defense1First = 127;
this.defense1Last = 131;
this.walkForwardFirst = 11;
this.walkForwardLast = 20;
this.walkBackwardFirst = 23;
this.walkBackwardLast = 32;
this.jabFirst = 35;
this.jabLast = 40;
this.crossFirst = 43;
this.crossLast = 48;
this.upperCutFirst = 51;
this.upperCutLast = 56;
this.highRoundHouseFirst = 59;
this.highRoundHouseLast = 67;
this.spinningBFistFirst = 70;
this.spinningBFistLast = 74;
this.comboSweepFirst = 77;
this.comboSweepLast = 87;
this.axeKickFirst = 90;
this.axeKickLast = 102;
this.roundHouseFirst = 105;
this.roundHouseLast = 114;
this.spinningBKickFirst = 117;
this.spinningBKickLast = 124;
this.hammerFistFirst = 149;
this.hammerFistLast = 159;
this.heavyBFistFirst = 162;
this.heavyBFistLast = 170;
this.sideKickFirst = 205;
this.sideKickLast = 211;
this.flipKickFirst = 214;
this.flipKickLast = 237;
this.lowPunchFirst = 173;
this.lowPunchLast = 180;
this.lowSweepFirst = 183;
this.lowSweepLast = 191;
this.grabFirst = 369;
this.grabLast = 372;
this.throwFirst = 336;
this.throwLast = 366;
this.shotoThrownFirst = 302;
this.shotoThrownLast = 333;
this.jkdThrownFirst = 375;
this.jkdThrownLast = 405;
this.capoThrownFirst = 408;
this.capoThrownLast = 435;
this.throwBreakFirst = 452;
this.throwBreakLast = 459;
this.KDGUFirst = 255;
this.KDGULast = 262;
};
this.setVariablesOnLoad();
};
this.setVariablesOnEnterFrame = function () {
this.sync = this.currentTimer <= getTimer();
this.standing = (this._currentframe >= this.stanceFirst) && (this._currentframe <= this.stanceLast);
this.downing = (this._currentframe >= this.downFirst) && (this._currentframe <= this.downLast);
this.defending = (this._currentframe >= this.defense2First) && (this._currentframe <= this.defense2Last);
this.walkingForward = (this._currentframe >= this.walkForwardFirst) && (this._currentframe <= this.walkForwardLast);
this.walkingBackWard = (this._currentframe >= this.walkBackwardFirst) && (this._currentframe <= this.walkBackwardLast);
this.axeKicking = (this._currentframe >= this.axeKickFirst) && (this._currentframe <= this.axeKickLast);
this.jabbing = (this._currentframe >= this.jabFirst) && (this._currentframe <= this.jabLast);
this.crossing = (this._currentframe >= this.crossFirst) && (this._currentframe <= this.crossLast);
this.upperCuting = (this._currentframe >= this.upperCutFirst) && (this._currentframe <= this.upperCutLast);
this.highRoundHousing = (this._currentframe >= this.highRoundHouseFirst) && (this._currentframe <= this.highRoundHouseLast);
this.roundHousing = (this._currentframe >= this.roundHouseFirst) && (this._currentframe <= this.roundHouseLast);
this.spinningBKicking = (this._currentframe >= this.spinningBKickFirst) && (this._currentframe <= this.spinningBKickLast);
this.spinningBFisting = (this._currentframe >= this.spinningBFistFirst) && (this._currentframe <= this.spinningBFistLast);
this.hammerFisting = (this._currentframe >= this.hammerFistFirst) && (this._currentframe <= this.hammerFistLast);
this.heavyBFisting = (this._currentframe >= this.heavyBFistFirst) && (this._currentframe <= this.heavyBFistLast);
this.sideKicking = (this._currentframe >= this.sideKickFirst) && (this._currentframe <= this.sideKickLast);
this.flipKicking = (this._currentframe >= this.flipKickFirst) && (this._currentframe <= this.flipKickLast);
this.comboSweeping = (this._currentframe >= this.comboSweepFirst) && (this._currentframe <= this.comboSweepLast);
this.lowPunching = (this._currentframe >= this.lowPunchFirst) && (this._currentframe <= this.lowPunchLast);
this.lowSweeping = (this._currentframe >= this.lowSweepFirst) && (this._currentframe <= this.lowSweepLast);
this.jumpRange = (this._currentframe >= this.jumpFirst) && (this._currentframe <= this.jumpLast);
this.jumpKickRange = (this._currentframe >= this.jumpKickFirst) && (this._currentframe <= this.jumpKickLast);
this.grabRange = (this._currentframe >= this.grabFirst) && (this._currentframe <= this.grabLast);
this.throwRange = (this._currentframe >= this.throwFirst) && (this._currentframe <= this.throwLast);
this.shotoThrownRange = (this._currentframe >= this.shotoThrownFirst) && (this._currentframe <= this.shotoThrownLast);
this.jkdThrownRange = (this._currentframe >= this.jkdThrownFirst) && (this._currentframe <= this.jkdThrownLast);
this.capoThrownRange = (this._currentframe >= this.capoThrownFirst) && (this._currentframe <= this.capoThrownLast);
this.throwBreakRange = (this._currentframe >= this.throwBreakFirst) && (this._currentframe <= this.throwBreakLast);
this.KDGURange = (this._currentframe >= this.KDGUFirst) && (this._currentframe <= this.KDGULast);
this.falling = this._currentframe == this.fall;
this.defeatedRange = this._currentframe == this.defeated;
this.highAttacking = ((((((((((this.jabbing || (this.crossing)) || (this.uppercutting)) || (this.highRoundHousing)) || (this.spinningBFisting)) || (this.axeKicking)) || (this.roundHousing)) || (this.spinningBKicking)) || (this.hammerFisting)) || (this.heavyBFisting)) || (this.sideKicking)) || (this.flipKicking);
this.lowAttacking = (this.lowPunching || (this.lowSweeping)) || (this.comboSweeping);
this.highAttackPoint = ((((((((((((this._currentframe == 39) || (this._currentframe == 46)) || (this._currentframe == 54)) || (this._currentframe == 64)) || (this._currentframe == 73)) || (this._currentframe == 99)) || (this._currentframe == 110)) || (this._currentframe == 122)) || (this._currentframe == 152)) || (this._currentframe == 168)) || (this._currentframe == 208)) || (this._currentframe == 224)) || (this._currentframe == 290);
this.lowAttackPoint = ((this._currentframe == 177) || (this._currentframe == 188)) || (this._currentframe == 83);
this.grabPoint = (this._currentframe == 371) || (this._currentframe == 372);
this.ready = (((this.standing || (this.walkingForward)) || (this.walkingBackward)) || (this.downing)) || (this.defending);
if (this._currentframe == 236) {
this.defensePart = 1;
} else if (this._currentframe == 229) {
this.crouchPart = 1;
}
};
this.Jump = function () {
this._y = this._y + this.jumpFactor;
if (!this.jumpKickRange) {
if (this.jumpFactor == -40) {
this.gotoAndStop(277);
} else if (this.jumpFactor == -20) {
this.gotoAndStop(278);
} else if (this.jumpFactor == 0) {
_this.gotoAndStop(282);
} else if (this.jumpFactor == 20) {
this.gotoAndStop(286);
}
}
if (this._y > 400) {
this._y = 400;
this.gotoAndPlay("stance");
this.hitair = false;
if (this.jumpFlagLeft == true) {
this.jumpFlagLeft = false;
} else if (this.jumpFlagRight == true) {
this.jumpFlagRight = false;
}
}
if (this.jumpFlagLeft == true) {
this._x = this._x - 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x + 15;
}
this.jumpFactor = this.jumpFactor + 10;
};
this.FallHard = function () {
this._y = this._y + this.fallFactor;
if (this.jumpFlagLeft == true) {
this._x = this._x + 15;
} else if (this.jumpFlagRight == true) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == 100)) {
this._x = this._x - 15;
} else if (((this.jumpFlagRight == false) && (this.jumpFlagLeft == false)) && (this._xscale == -100)) {
this._x = this._x + 15;
}
if (this._y < 400) {
this.gotoAndStop("fall_part1");
} else if (this._y > 400) {
this._y = 400;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
if (this.lifePoints > 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndPlay("getUp");
} else if (this.lifePoints <= 0) {
this.hitair = false;
this.jumpFlagLeft = false;
this.jumpFlagRight = false;
this.gotoAndStop("knockedOut");
}
}
this.fallFactor = this.fallFactor + 20;
};
this.Decision = function () {
if ((_root.stageSet.player1.ready && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(8);
if (n == 0) {
this.gotoAndPlay("jab");
this.Thinking();
_root.shortAttackSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("axeKick");
this.Thinking();
_root.midAttackSound.start(0, 1);
} else if (n == 2) {
this.gotoAndPlay("roundHouse");
this.Thinking();
_root.midAttackSound.start(0, 1);
} else if (n == 3) {
this.gotoAndPlay("flipKick");
this.Thinking();
_root.heavyAttackSound.start(0, 1);
} else if (n == 4) {
this.gotoAndPlay("hammerFist");
this.Thinking();
_root.midAttackSound.start(0, 1);
} else if (n == 5) {
this.gotoAndPlay("lowSweep");
this.Thinking();
_root.shortAttackSound.start(0, 1);
} else if (n == 6) {
if (this._xscale == 100) {
this._x = this._x + 15;
} else if (this._xscale == -100) {
this._x = this._x - 15;
}
this.gotoAndPlay("grab");
this.Thinking();
} else if (n == 7) {
if (this._xscale == -100) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (this._xscale == 100) {
this.jumpFlagRight = true;
this.DecisionJump();
}
}
} else if ((_root.stageSet.player1.downing && ((this.standing || (this.walkingForward)) || (this.downing))) && (this.sync)) {
n = random(3);
if (n == 0) {
this.gotoAndPlay("lowPunch");
this.Thinking();
_root.shortAttackSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("lowSweep");
this.Thinking();
_root.shortAttackSound.start(0, 1);
}
}
if (this.jabbing && (this._currentframe == 39)) {
this.gotoAndPlay("cross");
_root.midAttackSound.start(0, 1);
} else if (this.crossing && (this._currentframe == 46)) {
this.gotoAndPlay("upperCut");
_root.midAttackSound.start(0, 1);
}
if (this.upperCuting && (this._currentframe == 54)) {
this.gotoAndPlay("sideKick");
_root.heavyAttackSound.start(0, 1);
} else if (this.roundHousing && (this._currentframe == 110)) {
this.gotoAndPlay("spinningBKick");
_root.midAttackSound.start(0, 1);
} else if (this.hammerFisting && (this._currentframe == 153)) {
this.gotoAndPlay("spinningBFist");
_root.midAttackSound.start(0, 1);
} else if (this.spinningBFisting && (this._currentframe == 73)) {
this.gotoAndPlay("highRoundHouse");
_root.midAttackSound.start(0, 1);
} else if (this.highRoundHousing && (this._currentframe == 65)) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("comboSweep");
_root.heavyAttackSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("heavyBFist");
_root.heavyAttackSound.start(0, 1);
}
}
};
this.DecisionJump = function () {
this.gotoAndStop(277);
this.jumpFactor = -40;
this._y = this._y - 1;
};
this.DecisionFall = function () {
trace("dskfhdskfjdsh");
this.fallFactor = -50;
this._y = this._y - 1;
this.gotoAndStop("fall_part1");
};
this.Thinking = function () {
n = random(3);
if (n == 0) {
this.currentTimer = getTimer();
} else if (n == 1) {
this.currentTimer = getTimer() + 1000;
}
if (n == 2) {
this.currentTimer = getTimer() + 2000;
}
};
this.Pursuit = function () {
if (_root.stageSet.player1.lifePoints > 0) {
if (!(((this.shotoThrownRange || (this.jkdThrownRange)) || (this.capoThrownRange)) || (this.getUpRange))) {
if (!this.throwRange) {
if (this._x > _root.stageSet.player1._x) {
this._xscale = -100;
} else if (this._x < _root.stageSet.player1._x) {
this._xscale = 100;
}
}
}
if ((((this._x >= (_root.stageSet.player1._x + 95)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
} else if ((((this._x <= (_root.stageSet.player1._x - 95)) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.gotoAndPlay("walkForward");
this._x = this._x + 5;
}
if ((((this._x > (_root.stageSet.player1._x - 95)) && (this._x < _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
} else if ((((this._x < (_root.stageSet.player1._x + 95)) && (this._x > _root.stageSet.player1._x)) && (!(this.jumpRange || (this.jumpKickRange)))) && (this.hitBack <= 0)) {
this.Decision();
}
if (((((this._x >= (_root.stageSet.player1._x + 160)) && (this._x <= (_root.stageSet.player1._x + 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagLeft = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x - 5;
}
} else if (((((this._x <= (_root.stageSet.player1._x - 160)) && (this._x >= (_root.stageSet.player1._x - 170))) && ((this.standing || (this.walkingForward)) || (this.downing))) && (!this.jumpRange)) && (this.hitBack <= 0)) {
n = random(2);
if (n == 0) {
this.jumpFlagRight = true;
this.DecisionJump();
} else if (n == 1) {
this.gotoAndPlay("walkForward");
this._x = this._x + 5;
}
}
if ((this.jumpRange && (this.jumpFactor == 0)) && (!this.jumpKickRange)) {
this.gotoAndPlay("jump_Kick");
_root.midAttackSound.start(0, 1);
}
}
};
this.HITEST = function () {
if (_root.stageSet.player1.Enemy == 1) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.forwarding)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.hooking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.legkicking)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("crouchAttacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rhHighing)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rhMiding) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchDeepKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else {
this.gotoAndPlay("crouchDefense");
this.defenseFlag = true;
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchJabbing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.crouchUpperCutting) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInFrontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepInAxeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.risingUppering) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
} else if (n == 1) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 10;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 10;
}
this.gotoAndPlay("shotoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.jabbing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.crossing)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.upperCuting)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.sideKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.hammerFisting) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.highRoundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.heavyBFisting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.comboSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.roundHousing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.spinningBKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.axeKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 100;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 100;
}
this.gotoAndPlay("jkdThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if (this.knockedOut == false) {
if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.rightSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.leftSlapping)) && (!(this.jumpRange || (this.jumpKickRange)))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && (this.hitTest(_root.stageSet.player1))) && (_root.stageSet.player1.whipKicking)) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowSweeping) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.kneeing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.frontKicking) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.rightElbowing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.shinBlasting) && (!(this.jumpRange || this.jumpKickRange))) {
if (this.defenseFlag == true) {
n = random(7);
if (n == 3) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n != 3) {
this.gotoAndPlay("crouchDefense");
this.hitBack = 10;
}
} else {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
}
this.gotoAndPlay("attacked");
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.stepSpringing) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.flipKicking) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.heavyHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarHeavy;
_root.heavyAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.lowAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.lowPunching) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("attacked");
this.lifePoints = this.lifePoints - this.lightHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarLight;
_root.shortAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("crouchDefense");
this.hitBack = 5;
}
} else if (((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && _root.stageSet.player1.jumpKickRange) && (!(this.jumpRange || this.jumpKickRange))) {
n = random(2);
if (n == 0) {
this.gotoAndPlay("KDGU");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
_root.midAttackedSound.start(0, 1);
this.defenseFlag = false;
} else if (n == 1) {
this.defenseFlag = true;
this.gotoAndPlay("defense2");
this.hitBack = 10;
}
} else if (((_root.stageSet.player1.grabPoint && this.hitTest(_root.stageSet.player1)) && (!(this.jumpRange || this.jumpKickRange))) && (_root.stageSet.player1.throwFlag == true)) {
n = random(2);
if (n == 0) {
if (this._x > _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x + 60;
} else if (this._x < _root.stageSet.player1._x) {
this._x = _root.stageSet.player1._x - 60;
}
this.gotoAndPlay("capoThrown");
this.lifePoints = this.lifePoints - this.midHit;
_root.stageSetBorder.energy_BarCpu.life._x = _root.stageSetBorder.energy_BarCpu.life._x + this.eBarMid;
} else if (n == 1) {
this.gotoAndPlay("throwBreak");
this.hitBack = 10;
}
} else if ((this.lifePoints <= 0) && (this.knockedOut == false)) {
this.DecisionFall();
this.knockedOut = true;
this.hitair = true;
} else if ((_root.stageSet.player1.highAttackPoint && this.hitTest(_root.stageSet.player1)) && (this.jumpRange || this.jumpKickRange)) {
this.DecisionFall();
this.hitair = true;
_root.shortAttackedSound.start(0, 1);
}
}
}
};
this.KnockedDown = function () {
if (this.KDGURange) {
if (this._xscale == 100) {
this._x = this._x - 15;
} else if (this._xscale == -100) {
this._x = this._x + 15;
}
}
};
this.KnockedBack = function () {
if (this._xscale == 100) {
if (this.hitBack > 0) {
this._x = this._x - this.hitBack;
this.hitBack = this.hitBack - 2;
}
} else if (this._xscale == -100) {
if (this.hitBack > 0) {
this._x = this._x + this.hitBack;
this.hitBack = this.hitBack - 2;
}
}
};
this.Grabbing = function () {
if ((((this.hitTest(_root.stageSet.player1) && (this.grabPoint)) && (!(_root.stageSet.player1.downing || (_root.stageSet.player1.crouchDefenseRange)))) && (!_root.stageSet.player1.highAttackPoint)) && (!(_root.stageSet.player1.jumpRange || (_root.stageSet.player1.jumpKickRange)))) {
this.throwFlag = true;
this.gotoAndPlay("throw");
}
if ((this._currentframe == 338) && (!_root.stageSet.player1.THROWN)) {
this.gotoAndPlay("stance");
}
};
this.ThrownMovement = function () {
if (_root.stageSet.player1.Enemy == 1) {
if ((this._currentframe > 310) && (this._currentframe < 322)) {
if (this._xscale == -100) {
this._x = this._x - 10;
} else if (this._xscale == 100) {
this._x = this._x + 10;
}
}
} else if (_root.stageSet.player1.Enemy == 2) {
if ((this._currentframe > 400) && (this._currentframe < 405)) {
if (this._xscale == -100) {
this._x = this._x + 20;
} else if (this._xscale == 100) {
this._x = this._x - 20;
}
}
} else if (_root.stageSet.player1.Enemy == 3) {
if ((this._currentframe >= 413) && (this._currentframe <= 414)) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 418) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if (this._currentframe == 423) {
if (this._xscale == -100) {
this._x = this._x - 20;
} else if (this._xscale == 100) {
this._x = this._x + 20;
}
} else if ((this._currentframe >= 427) && (this._currentframe <= 435)) {
if (this._xscale == -100) {
this._x = this._x - 25;
} else if (this._xscale == 100) {
this._x = this._x + 25;
}
}
}
};
this.KeepInBorder = function () {
if (this._x <= _root.stageSet.box.stageLeft) {
this._x = _root.stageSet.box.stageLeft;
} else if (this._x >= _root.stageSet.box.stageRight) {
this._x = _root.stageSet.box.stageRight;
} else if (this._y <= _root.stageSet.box.stageTop) {
this._y = _root.stageSet.box.stageTop;
} else if (this._y >= _root.stageSet.box.stageBottom) {
this._y = _root.stageSet.box.stageBottom;
}
};
this.onEnterFrame = function () {
this.setVariablesOnEnterFrame();
this.Pursuit();
this.HITEST();
this.KnockedDown();
this.KnockedBack();
this.Grabbing();
this.ThrownMovement();
this.KeepInBorder();
if ((this._y < 400) && (this.jumpRange || (this.jumpKickRange))) {
this.Jump();
} else if ((this._y < 400) && (this.hitair)) {
this.FallHard();
}
};
};
CPU.prototype = new MovieClip();
Object.registerClass("JKDFighter", CPU);
i = 0;
while (i < 1) {
_root.stageSet.attachMovie("JKDFighter", "cpu", 200);
i++;
}
Symbol 1234 MovieClip [JKDCPU] Frame 3
stop();
Symbol 1480 MovieClip Frame 61
gotoAndPlay (1);
Symbol 1480 MovieClip Frame 122
gotoAndPlay (62);
Symbol 1480 MovieClip Frame 183
gotoAndPlay (123);
Instance of Symbol 1482 MovieClip "cpuReady" in Symbol 1491 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 1482 MovieClip "player1Ready" in Symbol 1491 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 1503 MovieClip Frame 3
this.gotoAndPlay("bg_1");
Symbol 1503 MovieClip Frame 6
this.gotoAndPlay("bg_2");
Symbol 1503 MovieClip Frame 9
this.gotoAndPlay("bg_3");
Symbol 1526 MovieClip Frame 36
prevFrame();
play();
Symbol 1526 MovieClip Frame 43
this.gotoAndPlay("instantReplay");
Symbol 1526 MovieClip Frame 48
this.gotoAndPlay("win");
Symbol 1526 MovieClip Frame 53
this.gotoAndPlay("lose");
Symbol 1526 MovieClip Frame 58
this.gotoAndPlay("doubleKO");
Symbol 1531 MovieClip Frame 1
stop();
Instance of Symbol 1236 MovieClip [stageArea] "box" in Symbol 1531 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this.bounds = this.getBounds(_root.stageSet);
this.stageLeft = this.bounds.xMin;
this.stageRight = this.bounds.xMax;
this.stageTop = this.bounds.yMin;
this.stageBottom = this.bounds.yMax;
}
Symbol 1531 MovieClip Frame 2
stop();
Symbol 1531 MovieClip Frame 3
stop();