Frame 1
ifFrameLoaded (89) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (1);
Frame 4
intro_info = "";
Frame 10
ifFrameLoaded (1166) {
intro_info = "press 's' to skip intro";
}
Frame 365
intro_info = "loading...";
ifFrameLoaded (1159) {
gotoAndStop (367);
}
Frame 366
gotoAndPlay (365);
Frame 367
intro_info = "";
total_rounds = 0;
total_time = 0;
place = 0;
stop();
Frame 625
ifFrameLoaded (627) {
instruction_info = "";
gotoAndStop (627);
}
Frame 626
gotoAndPlay (625);
Frame 628
page = 1;
start_pos = 0;
end_pos = 0;
name = 0;
page_size = 10;
rounds = 0;
fight_time = 0;
info = "";
i = 0;
Frame 629
if (Number(i) < Number(page_size)) {
i = Number(i) + 1;
Set(eval ("name" add i), "");
Set(eval ("rounds" add i), "");
Set(eval ("fight_time" add i), "");
} else {
gotoAndPlay (632);
}
Frame 630
gotoAndPlay (629);
Frame 632
loadMovieNum ("http://www.kollacubed.com/dsf/record.swf", 1);
unloadMovieNum (1);
leader_browse_str = "http://www.kollacubed.com/dsf/board.asp?page=" add page;
loadVariablesNum (leader_browse_str, 0, "POST");
wait = getTimer();
Frame 633
wait_timer = getTimer();
if (10000 < (wait_timer - wait)) {
info = "No data connection available now, sorry. Try again later";
gotoAndPlay (648);
} else {
if (flag == 2) {
flag = 0;
info = "ASP error.. again noooooo..... * !** ! blady ISP";
gotoAndPlay (648);
}
if (flag == 1) {
flag = 0;
if (rstCount == 0) {
info = "No records available";
start_pos = 0;
end_pos = 0;
gotoAndPlay (648);
} else {
gotoAndPlay (641);
}
}
}
Frame 636
gotoAndPlay (633);
Frame 641
y = 0;
range = end_pos - start_pos;
Frame 642
if (Number(range) >= Number(y)) {
y = y + 1;
unloadMovieNum (y);
loadMovieNum ("http://www.kollacubed.com/dsf/record.swf", y);
} else {
gotoAndStop (648);
}
Frame 643
setProperty("_level" add y, _x , 30);
setProperty("_level" add y, _y , 120 + Number(y * 20));
name = eval ("name" add y);
rounds = eval ("rounds" add y);
fight_time = eval ("fight_time" add y);
pos = (Number(start_pos) + y) - 1;
tellTarget ("_level" add y) {
position = _level0/:pos;
name = _level0/:name;
rounds = _level0/:rounds;
fight_time = _level0/:fight_time;
};
gotoAndPlay (642);
Frame 648
viewing_pages = (((start_pos add " - ") add end_pos) add " of ") add rstCount;
stop();
Frame 654
j = 0;
Frame 655
if (range >= j) {
j = j + 1;
unloadMovieNum (j);
} else {
gotoAndPlay (632);
}
Frame 656
gotoAndPlay (655);
Frame 664
ifFrameLoaded (666) {
credit_info = "";
gotoAndPlay (666);
}
Frame 665
gotoAndPlay (664);
Frame 1156
gotoAndPlay (664);
Frame 1157
ifFrameLoaded (1159) {
gotoAndPlay (1159);
}
Frame 1158
gotoAndPlay (1157);
Frame 1159
function generateComputerBehaviour(behaviour_seq, behaviour_count) {
hm_h = 0;
hm_h = 0;
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "walkf") {
C_CROUCH = 0;
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("walkright");
};
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 20);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("walkleft");
};
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 20);
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "walkb") {
C_CROUCH = 0;
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("walkright");
};
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 20);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("walkleft");
};
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 20);
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "jump") {
if (eval ("behaviour" add behaviour_seq)[behaviour_count + 1] == "kick") {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jumpkick");
};
C_KICK = 2;
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count + 1] == "punch") {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jumppuch");
};
C_PUNCH = 2;
}
if (C_JUMP == 0) {
C_CROUCH = 0;
C_JUMP = 1;
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "jumpf") {
if (C_JUMP == 0) {
C_CROUCH = 0;
C_JUMP = 2;
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "jumpb") {
if (C_JUMP == 0) {
C_CROUCH = 0;
C_JUMP = 3;
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "crouch") {
if (C_CROUCH == 0) {
eval ("_root.computer_" add CL).free = false;
C_CROUCH = 1;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop ("crouch");
};
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "kick") {
if (eval ("_root.computer_" add CL).free == true) {
eval ("_root.computer_" add CL).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((C_CROUCH == 0) && ((0 < C_JUMP) && (jump_count1 < 3))) {
C_KICK = 2;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jumpkick");
};
}
if (C_CROUCH == 1) {
C_KICK = 3;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("crouchkick");
};
}
if ((C_JUMP == 0) && (C_CROUCH == 0)) {
C_KICK = 1;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("kick");
};
}
}
}
if (eval ("behaviour" add behaviour_seq)[behaviour_count] == "punch") {
if (eval ("_root.computer_" add CL).free == true) {
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
eval ("_root.computer_" add CL).free = false;
with (wish_sound) {
play();
}
if ((0 < C_JUMP) && (C_CROUCH == 0)) {
C_PUNCH = 2;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jumppuch");
};
}
if (C_CROUCH == 1) {
C_PUNCH = 3;
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("crouchjab");
};
}
if ((C_JUMP == 0) && (C_CROUCH == 0)) {
C_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jab");
};
}
}
}
}
if (flip == 0) {
if ((C_PUNCH == 1) && (man_r.h.hitTest(computer_l._x + 10, computer_l._y - 75, true))) {
C_SCORE = C_SCORE - 10;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x + 10);
setProperty("hit_mark", _y , computer_l._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_PUNCH == 1) && (man_r.stomach.hitTest(computer_l._x + 10, computer_l._y - 75, true))) {
C_SCORE = C_SCORE - 7;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x + 10);
setProperty("hit_mark", _y , computer_l._y - 75);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_PUNCH == 2) && (man_r.h.hitTest(computer_l._x + 20, computer_l._y - 100, true))) {
C_SCORE = C_SCORE - 11;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x + 20);
setProperty("hit_mark", _y , computer_l._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_PUNCH == 2) && (man_r.stomach.hitTest(computer_l._x + 20, computer_l._y - 100, true))) {
C_SCORE = C_SCORE - 8;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x + 20);
setProperty("hit_mark", _y , computer_l._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_PUNCH == 3) && (man_r.h.hitTest(computer_l._x + 20, computer_l._y - 35, true))) {
C_SCORE = C_SCORE - 9;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x + 20);
setProperty("hit_mark", _y , computer_l._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_PUNCH == 3) && (man_r.stomach.hitTest(computer_l._x + 20, computer_l._y - 35, true))) {
C_SCORE = C_SCORE - 6;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x + 20);
setProperty("hit_mark", _y , computer_l._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 1) && (man_r.h.hitTest(computer_l._x + 15, computer_l._y - 30, true))) {
C_SCORE = C_SCORE - 13;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x + 15);
setProperty("hit_mark", _y , computer_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 1) && (man_r.stomach.hitTest(computer_l._x + 15, computer_l._y - 30, true))) {
C_SCORE = C_SCORE - 11;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x + 15);
setProperty("hit_mark", _y , computer_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 2) && (man_r.h.hitTest(computer_l._x, computer_l._y, true))) {
C_SCORE = C_SCORE - 12;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x);
setProperty("hit_mark", _y , computer_l._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 2) && (man_r.stomach.hitTest(computer_l._x, computer_l._y, true))) {
C_SCORE = C_SCORE - 10;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x);
setProperty("hit_mark", _y , computer_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 3) && (man_r.h.hitTest(computer_l._x + 30, computer_l._y - 10, true))) {
C_SCORE = C_SCORE - 16;
hm_h = 1;
setProperty("hit_mark", _x , computer_l._x + 30);
setProperty("hit_mark", _y , computer_l._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
if ((C_KICK == 3) && (man_r.stomach.hitTest(computer_l._x + 30, computer_l._y - 10, true))) {
C_SCORE = C_SCORE - 15;
hm_s = 1;
setProperty("hit_mark", _x , computer_l._x + 30);
setProperty("hit_mark", _y , computer_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 30);
}
} else if (flip == 1) {
if ((C_PUNCH == 1) && (man_l.h.hitTest(computer_r._x - 10, computer_r._y - 75, true))) {
C_SCORE = C_SCORE - 10;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x - 10);
setProperty("hit_mark", _y , computer_r._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_PUNCH == 1) && (man_l.stomach.hitTest(computer_r._x - 10, computer_r._y - 75, true))) {
C_SCORE = C_SCORE - 7;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x - 10);
setProperty("hit_mark", _y , computer_r._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_PUNCH == 2) && (man_l.h.hitTest(computer_r._x - 20, computer_r._y - 100, true))) {
C_SCORE = C_SCORE - 11;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x - 20);
setProperty("hit_mark", _y , computer_r._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_PUNCH == 2) && (man_l.stomach.hitTest(computer_r._x - 20, computer_r._y - 100, true))) {
C_SCORE = C_SCORE - 8;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x - 20);
setProperty("hit_mark", _y , computer_r._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_PUNCH == 3) && (man_l.h.hitTest(computer_r._x - 20, computer_r._y - 35, true))) {
C_SCORE = C_SCORE - 9;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x - 20);
setProperty("hit_mark", _y , computer_r._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_PUNCH == 3) && (man_l.stomach.hitTest(computer_r._x - 20, computer_r._y - 35, true))) {
C_SCORE = C_SCORE - 6;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x - 20);
setProperty("hit_mark", _y , computer_r._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 1) && (man_l.h.hitTest(computer_r._x - 15, computer_r._y - 30, true))) {
C_SCORE = C_SCORE - 13;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x - 15);
setProperty("hit_mark", _y , computer_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 1) && (man_l.stomach.hitTest(computer_r._x - 15, computer_r._y - 30, true))) {
C_SCORE = C_SCORE - 11;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x - 15);
setProperty("hit_mark", _y , computer_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 2) && (man_l.h.hitTest(computer_r._x, computer_r._y, true))) {
C_SCORE = C_SCORE - 12;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x);
setProperty("hit_mark", _y , computer_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 2) && (man_l.stomach.hitTest(computer_r._x, computer_r._y, true))) {
C_SCORE = C_SCORE - 10;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x);
setProperty("hit_mark", _y , computer_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 3) && (man_l.h.hitTest(computer_r._x - 30, computer_r._y - 10, true))) {
C_SCORE = C_SCORE - 16;
hm_h = 1;
setProperty("hit_mark", _x , computer_r._x - 30);
setProperty("hit_mark", _y , computer_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
if ((C_KICK == 3) && (man_l.stomach.hitTest(computer_r._x - 30, computer_r._y - 10, true))) {
C_SCORE = C_SCORE - 15;
hm_s = 1;
setProperty("hit_mark", _x , computer_r._x - 30);
setProperty("hit_mark", _y , computer_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 30);
}
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
hm_h = 0;
hm_s = 0;
}
var M_PLAYER;
var C_PLAYER;
M_PLAYER = "";
C_PLAYER = "";
var STAGE;
var C_STAGE;
STAGE = 1;
C_STAGE = 1;
var OPPONENTS = new Array();
OPPONENTS[0] = "cook";
OPPONENTS[1] = "clarke";
OPPONENTS[2] = "brown";
OPPONENTS[3] = "smith";
OPPONENTS[4] = "prescott";
OPPONENTS[5] = "hague";
OPPONENTS[6] = "kennedy";
OPPONENTS[7] = "portillo";
OPPONENTS[8] = "blair";
start_info = "choose your fighter...";
Frame 1160
if (C_STAGE < STAGE) {
gotit = 0;
ii = 0;
while (ii < (OPPONENTS.length - C_STAGE)) {
if (C_PLAYER == OPPONENTS[ii]) {
gotit = 1;
}
if (gotit == 1) {
if (ii < ((OPPONENTS.length - C_STAGE) - 1)) {
OPPONENTS[ii] = OPPONENTS[ii + 1];
} else {
OPPONENTS[ii] = "";
}
}
ii++;
}
C_STAGE = STAGE;
}
i = 0;
j = 0;
if (M_PLAYER == "") {
e = OPPONENTS.length - STAGE;
} else {
e = (OPPONENTS.length - STAGE) - 1;
}
i = 0;
while (e >= i) {
if (M_PLAYER == "") {
tellTarget (eval (OPPONENTS[i] add "_b")) {
gotoAndStop (2);
};
} else {
tellTarget (eval (OPPONENTS[i] add "_b")) {
gotoAndStop (3);
};
}
i++;
}
if (M_PLAYER == "") {
stop();
} else {
with (player1) {
gotoAndStop(M_PLAYER);
}
with (name1) {
gotoAndStop(M_PLAYER);
}
gotoAndPlay (1161);
}
Frame 1161
start_info = "now selecting opponent to fight against...";
initTime = getTimer();
if (M_PLAYER == "") {
gotoAndPlay (1159);
} else {
i = 1;
while (7 >= i) {
if (i < STAGE) {
tellTarget (eval ("stage" add i)) {
gotoAndStop ("done");
};
}
if (i >= STAGE) {
tellTarget (eval ("stage" add i)) {
gotoAndStop ("default");
};
}
i++;
}
}
if ((M_PLAYER != "") && (STAGE == 1)) {
tellTarget (eval (M_PLAYER add "_b")) {
gotoAndStop (3);
};
gotit = 0;
i = 0;
while (i < OPPONENTS.length) {
if (M_PLAYER == OPPONENTS[i]) {
gotit = 1;
}
if (gotit == 1) {
if (i < (OPPONENTS.length - 1)) {
OPPONENTS[i] = OPPONENTS[i + 1];
} else {
OPPONENTS[i] = "";
}
}
i++;
}
}
Frame 1192
if ((20 < (getTimer() - initTime)) && (j < 5)) {
i = i + 1;
initTime = getTimer();
if (i < (OPPONENTS.length - STAGE)) {
with (player2) {
gotoAndStop(OPPONENTS[i]);
}
with (name2) {
gotoAndStop(OPPONENTS[i]);
}
} else {
i = 0;
j = j + 1;
}
}
if (j == 5) {
p = OPPONENTS.length - STAGE;
d = OPPONENTS[t];
t = random(p);
if ((((OPPONENTS[t] != "blair") && (STAGE < 7)) || ((OPPONENTS[t] == "blair") && (STAGE == 7))) || ((M_PLAYER == "blair") && (STAGE == 7))) {
C_PLAYER = OPPONENTS[t];
with (player2) {
gotoAndStop(OPPONENTS[t]);
}
tellTarget (eval (OPPONENTS[t] add "_b")) {
gotoAndStop (1);
};
with (name2) {
gotoAndStop(OPPONENTS[t]);
}
} else {
i = 0;
j = 4;
gotoAndPlay (1193);
}
}
Frame 1193
if (j < 5) {
gotoAndPlay (1192);
} else {
gotoAndStop (1194);
}
Frame 1194
tellTarget (eval ("stage" add STAGE)) {
gotoAndPlay ("selected");
};
start_info = "press 'x' to start a fight";
Frame 1195
ifFrameLoaded (1197) {
gotoAndPlay (1197);
}
Frame 1196
gotoAndPlay (1195);
Frame 1197
round_time = getTimer();
total_rounds = total_rounds + 1;
var levelInterval;
var manInterval;
levelInterval = 110;
manInterval = 40;
var hm_h;
var hm_s;
hm_h = 0;
hm_s = 0;
var c_range;
c_range = 0;
var M_SCORE;
var C_SCORE;
var c_pos;
var m_pos;
var action;
var flip;
var ML;
var CL;
var M_JUMP;
var C_JUMP;
var M_KICK;
var M_PUNCH;
var M_CROUCH;
var C_CROUCH;
var C_KICK;
var C_PUNCH;
var behaviour1 = new Array();
var behaviour2 = new Array();
var behaviour3 = new Array();
var behaviour4 = new Array();
var behaviour5 = new Array();
var behaviour6 = new Array();
var behaviour7 = new Array();
var behaviour8 = new Array();
var newInterval;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1198
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1200);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1199
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1200);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1198);
Frame 1200
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1201
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1203);
}
Frame 1202
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1201);
Frame 1203
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1221
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1222
with (_root.text) {
ch = random(16) + 1;
gotoAndStop(ch);
}
if (M_SCORE == 1) {
with (_root.v_person) {
gotoAndStop(M_PLAYER);
}
with (_root.b_person) {
gotoAndStop(C_PLAYER);
}
} else if (C_SCORE == 1) {
with (_root.v_person) {
gotoAndStop(C_PLAYER);
}
with (_root.b_person) {
gotoAndStop(M_PLAYER);
}
}
Frame 1236
stop();
Frame 1238
round_time = getTimer();
total_rounds = total_rounds + 1;
levelInterval = 95;
manInterval = 70;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1239
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1241);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1240
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1241);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1239);
Frame 1241
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1242
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1244);
}
Frame 1243
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1242);
Frame 1244
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1262
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1264
total_rounds = total_rounds + 1;
round_time = getTimer();
levelInterval = 90;
manInterval = 75;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1265
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1267);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1266
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1267);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1265);
Frame 1267
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1268
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1270);
}
Frame 1269
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1268);
Frame 1270
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1288
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1290
total_rounds = total_rounds + 1;
round_time = getTimer();
levelInterval = 50;
manInterval = 110;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1291
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1293);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1292
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1293);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1291);
Frame 1293
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1294
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1296);
}
Frame 1295
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1294);
Frame 1296
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1314
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1316
total_rounds = total_rounds + 1;
round_time = getTimer();
levelInterval = 30;
manInterval = 130;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1317
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1319);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1318
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1319);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1317);
Frame 1319
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1320
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1322);
}
Frame 1321
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1320);
Frame 1322
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1340
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1342
total_rounds = total_rounds + 1;
round_time = getTimer();
levelInterval = 15;
manInterval = 150;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1343
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1345);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1344
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1345);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1343);
Frame 1345
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1346
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1348);
}
Frame 1347
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1346);
Frame 1348
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1366
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". punch to see your next opponent...";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1368
total_rounds = total_rounds + 1;
round_time = getTimer();
levelInterval = 5;
manInterval = 180;
hm_h = 0;
hm_s = 0;
c_range = 0;
newInterval = 500;
behaviour1[0] = "default";
behaviour1[1] = "jumpf";
behaviour1[3] = "default";
behaviour2[0] = "default";
behaviour2[1] = "walkf";
behaviour2[3] = "default";
behaviour3[0] = "jump";
behaviour3[1] = "kick";
behaviour3[2] = "punch";
behaviour3[3] = "jump";
behaviour3[4] = "kick";
behaviour3[5] = "default";
behaviour3[6] = "jump";
behaviour3[7] = "kick";
behaviour3[8] = "default";
behaviour3[9] = "jump";
behaviour3[10] = "kick";
behaviour3[11] = "punch";
behaviour3[12] = "crouch";
behaviour3[13] = "kick";
behaviour3[14] = "punch";
behaviour3[15] = "punch";
behaviour3[16] = "kick";
behaviour3[17] = "default";
behaviour4[0] = "punch";
behaviour4[1] = "default";
behaviour4[2] = "punch";
behaviour4[3] = "default";
behaviour4[4] = "punch";
behaviour4[5] = "jumpb";
behaviour4[6] = "punch";
behaviour4[7] = "punch";
behaviour4[8] = "default";
behaviour5[0] = "punch";
behaviour5[1] = "default";
behaviour5[2] = "kick";
behaviour5[3] = "kick";
behaviour5[4] = "punch";
behaviour5[5] = "jumpb";
behaviour5[6] = "kick";
behaviour5[7] = "default";
behaviour5[8] = "kick";
behaviour6[0] = "crouch";
behaviour6[1] = "default";
behaviour6[2] = "kick";
behaviour6[3] = "jump";
behaviour6[4] = "crouch";
behaviour6[5] = "kick";
behaviour6[6] = "punch";
behaviour6[7] = "walkb";
behaviour6[8] = "jumpb";
behaviour7[0] = "jumpb";
behaviour7[1] = "default";
behaviour7[2] = "walkb";
behaviour7[3] = "jumpb";
behaviour7[4] = "crouch";
behaviour7[5] = "punch";
behaviour7[6] = "walkb";
behaviour7[7] = "default";
behaviour7[8] = "jumpb";
behaviour8[0] = "walkb";
M_SCORE = 100;
C_SCORE = 100;
ML = "r";
CL = "l";
flip = 0;
M_JUMP = 0;
C_JUMP = 0;
M_CROUCH = 0;
C_CROUCH = 0;
jump_count = -4;
jump_count1 = -4;
c_pos = computer_l._x;
m_pos = man_r._x;
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER);
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER);
}
computer_r._visible = false;
man_l._visible = false;
with (_root.C_L) {
gotoAndStop(C_SCORE);
}
with (_root.M_L) {
gotoAndStop(M_SCORE);
}
c_timer = getTimer();
behaviour_count = 0;
behaviour_seq = 3;
Frame 1369
if ((M_SCORE == 1) || (C_SCORE == 1)) {
gotoAndPlay (1371);
}
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if ((0 < C_JUMP) || ((C_JUMP == 0) && (-4 < jump_count1))) {
if (jump_count1 == -4) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("default");
};
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
C_PUNCH = 0;
C_KICK = 0;
Frame 1370
if ((C_SCORE == 1) || (M_SCORE == 1)) {
gotoAndPlay (1371);
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
c_pos = eval ("computer_" add CL)._x;
m_pos = eval ("man_" add ML)._x;
c_posy = eval ("computer_" add CL)._y;
m_posy = eval ("man_" add ML)._y;
if (((c_pos < (m_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 0) {
ML = "l";
CL = "r";
computer_r._visible = true;
man_l._visible = true;
man_l._x = man_r._x - 138;
man_l._y = man_r._y;
computer_r._x = computer_l._x + 138;
computer_r._y = computer_l._y;
man_r._visible = false;
computer_l._visible = false;
flip = 1;
}
}
if (((m_pos < (c_pos - 138)) && (C_JUMP == 0)) && (M_JUMP == 0)) {
if (flip == 1) {
ML = "r";
CL = "l";
computer_r._visible = false;
man_l._visible = false;
man_r._x = man_l._x + 138;
man_r._y = man_l._y;
computer_l._x = computer_r._x - 138;
computer_l._y = computer_r._y;
computer_l._visible = true;
man_r._visible = true;
flip = 0;
}
}
if (key.isDown(37) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkleft");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x - 15);
}
}
}
if (key.isDown(39) == true) {
M_CROUCH = 0;
if (eval ("_root.man_" add ML).free && (M_JUMP == 0)) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
if (eval ("_root.man_" add ML).walkfree == true) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("walkright");
};
}
setProperty(eval ("_root.man_" add ML), _x , eval ("_root.man_" add ML)._x + 15);
}
}
}
if (M_JUMP == 1) {
if (jump_count == -4) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
}
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("default");
};
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if (flip == 0) {
if ((60 < (m_pos - c_pos)) && ((m_pos - c_pos) < 135)) {
range = 1;
if ((68 < (m_pos - c_pos)) && ((m_pos - c_pos) < 100)) {
range = 2;
}
if ((80 < (m_pos - c_pos)) && ((m_pos - c_pos) < 105)) {
range = 3;
}
if ((70 < (m_pos - c_pos)) && ((m_pos - c_pos) < 130)) {
range = 4;
}
if ((95 < (m_pos - c_pos)) && ((m_pos - c_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
} else if (flip == 1) {
if ((60 < (c_pos - m_pos)) && ((c_pos - m_pos) < 135)) {
range = 1;
if ((68 < (c_pos - m_pos)) && ((c_pos - m_pos) < 100)) {
range = 2;
}
if ((80 < (c_pos - m_pos)) && ((c_pos - m_pos) < 105)) {
range = 3;
}
if ((70 < (c_pos - m_pos)) && ((c_pos - m_pos) < 130)) {
range = 4;
}
if ((95 < (c_pos - m_pos)) && ((c_pos - m_pos) < 120)) {
range = 5;
}
} else {
range = 0;
}
}
if (c_range == range) {
if (behaviour_count < eval ("behaviour" add behaviour_seq).length) {
if ((levelInterval + newInterval) < (getTimer() - c_timer)) {
if ((hm_h == 0) && (hm_s == 0)) {
generateComputerBehaviour(behaviour_seq, behaviour_count);
behaviour_count = behaviour_count + 1;
}
c_timer = getTimer();
newInterval = random(20);
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
} else {
behaviour_count = 0;
if (range == 0) {
behaviour_seq = random(2) + 1;
}
if (range == 1) {
behaviour_seq = 8;
}
if (range == 2) {
behaviour_seq = random(2) + 2;
}
if (range == 3) {
behaviour_seq = random(2) + 3;
}
if (range == 4) {
behaviour_seq = random(2) + 4;
}
if (range == 5) {
behaviour_seq = random(2) + 5;
}
get_away = random(10);
if (get_away == 9) {
behaviour_seq = 7;
}
}
c_range = range;
if (1 >= C_SCORE) {
C_SCORE = 1;
}
if (hm_h == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hithead");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hm_s == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("hitstomach");
};
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
gotoAndPlay (1369);
Frame 1371
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
with (_root.M_L) {
gotoAndStop(C_SCORE);
}
if (M_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("falling");
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("falling");
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
}
Frame 1372
if (M_SCORE == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop (1);
};
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndStop (1);
};
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
if (0 < C_JUMP) {
if (3 >= jump_count1) {
if (C_JUMP == 3) {
if ((flip == 0) && ((eval ("_root.computer_" add CL)._x + 150) < 540)) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
if ((flip == 1) && (0 < (eval ("_root.computer_" add CL)._x - 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
}
if (C_JUMP == 2) {
if ((flip == 0) && (0 < (eval ("_root.computer_" add CL)._x + 150))) {
eval ("_root.computer_" add CL).free = false;
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 15);
}
if ((flip == 1) && ((eval ("_root.computer_" add CL)._x - 100) < 540)) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 15);
}
}
if (jump_count1 < 0) {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y - 30;
} else {
eval ("_root.computer_" add CL)._y = eval ("_root.computer_" add CL)._y + 30;
}
} else {
jump_count1 = -4;
C_JUMP = 0;
C_CROUCH = 0;
}
}
if (M_JUMP == 1) {
if (3 >= jump_count) {
if (key.isDown(39) == true) {
if (((flip == 0) && ((eval ("_root.man_" add ML)._x - 100) < 540)) || ((flip == 1) && ((eval ("_root.man_" add ML)._x + 150) < 540))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x + 14;
}
}
if (key.isDown(37) == true) {
if (((flip == 0) && (0 < (eval ("_root.man_" add ML)._x - 150))) || ((flip == 1) && (0 < (eval ("_root.man_" add ML)._x + 150)))) {
eval ("_root.man_" add ML)._x = eval ("_root.man_" add ML)._x - 14;
}
}
if (jump_count < 0) {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y - 30;
} else {
eval ("_root.man_" add ML)._y = eval ("_root.man_" add ML)._y + 30;
}
} else {
jump_count = -4;
M_JUMP = 0;
M_CROUCH = 0;
}
}
if ((M_JUMP == 0) && (C_JUMP == 0)) {
gotoAndPlay (1374);
}
Frame 1373
if (0 < M_JUMP) {
jump_count = jump_count + 1;
}
if (0 < C_JUMP) {
jump_count1 = jump_count1 + 1;
}
gotoAndPlay (1372);
Frame 1374
round_time = int((getTimer() - round_time) / 1000);
total_time = total_time + round_time;
if (M_SCORE == 1) {
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
with (_root.C_F) {
gotoAndStop(_root.C_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("m");
};
} else if (C_SCORE == 1) {
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
with (_root.M_F) {
gotoAndStop(_root.M_PLAYER add "beaten");
}
tellTarget ("KO") {
gotoAndPlay ("c");
};
}
Frame 1392
ll = random(2) + 1;
Uname = C_PLAYER.toUpperCase();
if (M_SCORE == 1) {
game_info = ("you've beaten Mr " add Uname) add ". you won downing street championship";
STAGE = STAGE + 1;
with (eval ("_root.man_" add ML)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.man_" add ML).head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
} else if (C_SCORE == 1) {
three_rounds = three_rounds + 1;
if (three_rounds == 3) {
game_info = "You've lost last third chance to defeat your opponent. Punch to start a tournament again";
} else {
game_info = ("punch to fight MR " add Uname) add " again....";
}
with (eval ("_root.computer_" add CL)) {
gotoAndStop("victory" add ll);
}
with (eval ("_root.computer_" add CL).head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
}
stop();
Frame 1393
time = total_time;
rounds = total_rounds;
Frame 1639
with (statue) {
gotoAndStop(_root.M_PLAYER);
}
Frame 1719
with (statue) {
gotoAndStop(_root.M_PLAYER);
}
Frame 1871
stop();
Frame 1885
if (place == 1) {
sufix = "st";
}
if (place == 2) {
sufix = "nd";
}
if (place == 3) {
sufix = "rd";
}
if (3 < place) {
sufix = "th";
}
leader_message = ((((((("You become prime minister in " add rounds) add " round ") add "battle of total fight time ") add time) add " seconds. This clasify you on ") add place) add sufix) add " place";
name = "";
email = "";
Frame 1886
stop();
Frame 1888
t = int(getTimer() / 1000);
gotoAndPlay (1889);
Frame 1889
if (Number(confirm) == 1) {
gotoAndPlay (1893);
} else if (Number(confirm) == 2) {
confirm = "";
gotoAndPlay (1897);
}
Frame 1892
c = int(getTimer() / 1000);
if (9 < Number(c - t)) {
gotoAndPlay (1899);
} else {
gotoAndPlay (1889);
}
Frame 1893
gotoAndPlay (1921);
Frame 1897
submit_info = "Submit failure. Try again.";
gotoAndStop (1886);
Frame 1899
message = "No response. Try again";
gotoAndStop (1886);
Frame 1962
stop();
Frame 2051
stop();
Symbol 33 Button
on (keyPress "s") {
ifFrameLoaded (1166) {
gotoAndPlay (367);
}
}
Symbol 71 Button
on (release) {
gotoAndPlay (1);
}
Symbol 72 Button
on (release) {
gotoAndPlay (1157);
}
Symbol 73 Button
on (release) {
gotoAndPlay (625);
}
Symbol 74 Button
on (release) {
gotoAndPlay (664);
}
Symbol 75 Button
on (release) {
gotoAndPlay (628);
}
Symbol 77 Button
on (keyPress "q") {
gotoAndPlay (367);
}
Symbol 105 Button
on (keyPress "q") {
stop();
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
gotoAndPlay (367);
}
Symbol 106 Button
on (release) {
if (strPrev != -1) {
page = Number(page) - 1;
gotoAndPlay (654);
}
}
Symbol 107 Button
on (release) {
if (strNext != -1) {
page = Number(page) + 1;
gotoAndPlay (654);
}
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 3
stop();
Symbol 123 MovieClip Frame 4
stop();
Symbol 123 MovieClip Frame 5
stop();
Symbol 123 MovieClip Frame 6
stop();
Symbol 123 MovieClip Frame 7
stop();
Symbol 123 MovieClip Frame 8
stop();
Symbol 123 MovieClip Frame 9
stop();
Symbol 123 MovieClip Frame 10
stop();
Symbol 130 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("blair");
};
tellTarget ("_root.name1") {
gotoAndStop ("blair");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("blair");
};
_root.M_PLAYER = "blair";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 3
stop();
Symbol 132 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("brown");
};
tellTarget ("_root.name1") {
gotoAndStop ("brown");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("brown");
};
_root.M_PLAYER = "brown";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 134 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("clarke");
};
tellTarget ("_root.name1") {
gotoAndStop ("clarke");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("clarke");
};
_root.M_PLAYER = "clarke";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 3
stop();
Symbol 137 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("cook");
};
tellTarget ("_root.name1") {
gotoAndStop ("cook");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("cook");
};
_root.M_PLAYER = "cook";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 139 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("hague");
};
tellTarget ("_root.name1") {
gotoAndStop ("hague");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("hague");
};
_root.M_PLAYER = "hague";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 3
stop();
Symbol 141 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("kennedy");
};
tellTarget ("_root.name1") {
gotoAndStop ("kennedy");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("kennedy");
};
_root.M_PLAYER = "kennedy";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 143 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("portillo");
};
tellTarget ("_root.name1") {
gotoAndStop ("portillo");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("portillo");
};
_root.M_PLAYER = "portillo";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 3
stop();
Symbol 145 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("prescott");
};
tellTarget ("_root.name1") {
gotoAndStop ("prescott");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("prescott");
};
_root.M_PLAYER = "prescott";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 147 Button
on (rollOver) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("smith");
};
tellTarget ("_root.name1") {
gotoAndStop ("smith");
};
}
}
on (rollOut) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.player1") {
gotoAndStop ("default");
};
tellTarget ("_root.name1") {
gotoAndStop ("default");
};
}
}
on (release) {
if (_root.M_PLAYER == "") {
tellTarget ("_root.name1") {
gotoAndStop ("smith");
};
_root.M_PLAYER = "smith";
with (_root) {
gotoAndPlay("shuffle");
}
}
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 167 MovieClip Frame 3
stop();
Symbol 167 MovieClip Frame 4
stop();
Symbol 167 MovieClip Frame 5
stop();
Symbol 167 MovieClip Frame 6
stop();
Symbol 167 MovieClip Frame 7
stop();
Symbol 167 MovieClip Frame 8
stop();
Symbol 167 MovieClip Frame 9
stop();
Symbol 167 MovieClip Frame 10
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 9
gotoAndPlay (2);
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 9
gotoAndPlay (2);
Symbol 180 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 9
gotoAndPlay (2);
Symbol 186 MovieClip Frame 10
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 9
gotoAndPlay (2);
Symbol 192 MovieClip Frame 10
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 9
gotoAndPlay (2);
Symbol 198 MovieClip Frame 10
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 9
gotoAndPlay (2);
Symbol 204 MovieClip Frame 10
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 9
gotoAndPlay (2);
Symbol 210 MovieClip Frame 10
stop();
Symbol 212 Button
on (keyPress "x") {
if (STAGE == 1) {
gotoAndPlay (1195);
} else if (STAGE == 2) {
gotoAndPlay (1237);
} else if (STAGE == 3) {
gotoAndPlay (1263);
} else if (STAGE == 4) {
gotoAndPlay (1289);
} else if (STAGE == 5) {
gotoAndPlay (1315);
} else if (STAGE == 6) {
gotoAndPlay (1341);
} else if (STAGE == 7) {
gotoAndPlay (1367);
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 4
stop();
Symbol 281 MovieClip Frame 10
gotoAndStop (2);
Symbol 281 MovieClip Frame 11
stop();
Symbol 281 MovieClip Frame 18
stop();
Symbol 281 MovieClip Frame 20
stop();
Symbol 281 MovieClip Frame 25
stop();
Symbol 281 MovieClip Frame 27
stop();
Symbol 281 MovieClip Frame 33
gotoAndStop (25);
Symbol 281 MovieClip Frame 34
stop();
Symbol 281 MovieClip Frame 42
stop();
Symbol 281 MovieClip Frame 44
stop();
Symbol 281 MovieClip Frame 46
stop();
Symbol 281 MovieClip Frame 48
stop();
Symbol 281 MovieClip Frame 50
stop();
Symbol 281 MovieClip Frame 52
stop();
Symbol 281 MovieClip Frame 59
gotoAndStop (50);
Symbol 281 MovieClip Frame 60
stop();
Symbol 281 MovieClip Frame 69
stop();
Symbol 281 MovieClip Frame 71
stop();
Symbol 281 MovieClip Frame 73
stop();
Symbol 281 MovieClip Frame 75
stop();
Symbol 281 MovieClip Frame 77
stop();
Symbol 281 MovieClip Frame 79
stop();
Symbol 281 MovieClip Frame 87
gotoAndStop (77);
Symbol 281 MovieClip Frame 88
stop();
Symbol 281 MovieClip Frame 97
stop();
Symbol 281 MovieClip Frame 99
stop();
Symbol 281 MovieClip Frame 101
stop();
Symbol 281 MovieClip Frame 103
stop();
Symbol 281 MovieClip Frame 105
stop();
Symbol 281 MovieClip Frame 107
stop();
Symbol 281 MovieClip Frame 115
gotoAndStop (105);
Symbol 281 MovieClip Frame 116
stop();
Symbol 281 MovieClip Frame 125
stop();
Symbol 281 MovieClip Frame 127
stop();
Symbol 281 MovieClip Frame 129
stop();
Symbol 281 MovieClip Frame 131
stop();
Symbol 281 MovieClip Frame 143
gotoAndStop (133);
Symbol 281 MovieClip Frame 161
stop();
Symbol 281 MovieClip Frame 163
stop();
Symbol 281 MovieClip Frame 171
gotoAndStop (161);
Symbol 281 MovieClip Frame 172
stop();
Symbol 281 MovieClip Frame 181
stop();
Symbol 281 MovieClip Frame 183
stop();
Symbol 281 MovieClip Frame 185
stop();
Symbol 281 MovieClip Frame 187
stop();
Symbol 281 MovieClip Frame 189
stop();
Symbol 281 MovieClip Frame 191
stop();
Symbol 281 MovieClip Frame 200
gotoAndStop (189);
Symbol 281 MovieClip Frame 201
stop();
Symbol 281 MovieClip Frame 210
stop();
Symbol 281 MovieClip Frame 212
stop();
Symbol 281 MovieClip Frame 214
stop();
Symbol 281 MovieClip Frame 216
stop();
Symbol 281 MovieClip Frame 218
stop();
Symbol 281 MovieClip Frame 220
stop();
Symbol 281 MovieClip Frame 229
gotoAndStop (218);
Symbol 281 MovieClip Frame 230
stop();
Symbol 281 MovieClip Frame 240
stop();
Symbol 281 MovieClip Frame 242
stop();
Symbol 281 MovieClip Frame 244
stop();
Symbol 281 MovieClip Frame 246
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 4
stop();
Symbol 284 MovieClip Frame 10
gotoAndStop (2);
Symbol 284 MovieClip Frame 11
stop();
Symbol 284 MovieClip Frame 18
stop();
Symbol 284 MovieClip Frame 20
stop();
Symbol 284 MovieClip Frame 25
stop();
Symbol 284 MovieClip Frame 27
stop();
Symbol 284 MovieClip Frame 33
gotoAndStop (25);
Symbol 284 MovieClip Frame 34
stop();
Symbol 284 MovieClip Frame 42
stop();
Symbol 284 MovieClip Frame 44
stop();
Symbol 284 MovieClip Frame 46
stop();
Symbol 284 MovieClip Frame 48
stop();
Symbol 284 MovieClip Frame 50
stop();
Symbol 284 MovieClip Frame 52
stop();
Symbol 284 MovieClip Frame 59
gotoAndStop (50);
Symbol 284 MovieClip Frame 60
stop();
Symbol 284 MovieClip Frame 69
stop();
Symbol 284 MovieClip Frame 71
stop();
Symbol 284 MovieClip Frame 73
stop();
Symbol 284 MovieClip Frame 75
stop();
Symbol 284 MovieClip Frame 77
stop();
Symbol 284 MovieClip Frame 79
stop();
Symbol 284 MovieClip Frame 87
gotoAndStop (77);
Symbol 284 MovieClip Frame 88
stop();
Symbol 284 MovieClip Frame 97
stop();
Symbol 284 MovieClip Frame 99
stop();
Symbol 284 MovieClip Frame 101
stop();
Symbol 284 MovieClip Frame 103
stop();
Symbol 284 MovieClip Frame 105
stop();
Symbol 284 MovieClip Frame 107
stop();
Symbol 284 MovieClip Frame 115
gotoAndStop (105);
Symbol 284 MovieClip Frame 116
stop();
Symbol 284 MovieClip Frame 125
stop();
Symbol 284 MovieClip Frame 127
stop();
Symbol 284 MovieClip Frame 129
stop();
Symbol 284 MovieClip Frame 131
stop();
Symbol 284 MovieClip Frame 143
gotoAndStop (133);
Symbol 284 MovieClip Frame 161
stop();
Symbol 284 MovieClip Frame 163
stop();
Symbol 284 MovieClip Frame 171
gotoAndStop (161);
Symbol 284 MovieClip Frame 172
stop();
Symbol 284 MovieClip Frame 181
stop();
Symbol 284 MovieClip Frame 183
stop();
Symbol 284 MovieClip Frame 185
stop();
Symbol 284 MovieClip Frame 187
stop();
Symbol 284 MovieClip Frame 189
stop();
Symbol 284 MovieClip Frame 191
stop();
Symbol 284 MovieClip Frame 200
gotoAndStop (189);
Symbol 284 MovieClip Frame 201
stop();
Symbol 284 MovieClip Frame 210
stop();
Symbol 284 MovieClip Frame 212
stop();
Symbol 284 MovieClip Frame 214
stop();
Symbol 284 MovieClip Frame 216
stop();
Symbol 284 MovieClip Frame 218
stop();
Symbol 284 MovieClip Frame 220
stop();
Symbol 284 MovieClip Frame 229
gotoAndStop (218);
Symbol 284 MovieClip Frame 230
stop();
Symbol 284 MovieClip Frame 240
stop();
Symbol 284 MovieClip Frame 242
stop();
Symbol 284 MovieClip Frame 244
stop();
Symbol 284 MovieClip Frame 246
stop();
Symbol 315 MovieClip Frame 1
timer = getTimer();
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 2
t = getTimer();
if (_root.manInterval < (t - timer)) {
gotoAndPlay (4);
}
Symbol 315 MovieClip Frame 3
gotoAndPlay (2);
Symbol 315 MovieClip Frame 4
free = true;
walkfree = true;
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 7
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 9
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 10
gotoAndPlay (1);
Symbol 315 MovieClip Frame 11
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 14
gotoAndPlay (1);
Symbol 315 MovieClip Frame 15
walkfree = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 17
gotoAndPlay (4);
Symbol 315 MovieClip Frame 18
walkfree = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 20
gotoAndPlay (4);
Symbol 315 MovieClip Frame 21
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 25
gotoAndPlay (1);
Symbol 315 MovieClip Frame 26
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 28
gotoAndPlay (1);
Symbol 315 MovieClip Frame 29
free = true;
with (head) {
gotoAndStop(_root.M_PLAYER add "_default");
}
Symbol 315 MovieClip Frame 30
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 37
gotoAndStop (29);
Symbol 315 MovieClip Frame 38
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 45
gotoAndStop (29);
Symbol 315 MovieClip Frame 46
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 47
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 50
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 54
gotoAndPlay (1);
Symbol 315 MovieClip Frame 55
free = false;
with (head) {
gotoAndStop(_root.M_PLAYER add "_beinghit");
}
Symbol 315 MovieClip Frame 60
gotoAndPlay (1);
Symbol 315 MovieClip Frame 67
gotoAndPlay (1);
Symbol 315 MovieClip Frame 68
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 74
gotoAndPlay (4);
Symbol 315 MovieClip Frame 81
gotoAndPlay (1);
Symbol 315 MovieClip Frame 82
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 315 MovieClip Frame 89
gotoAndPlay (1);
Symbol 315 MovieClip Frame 90
with (head) {
gotoAndStop(_root.M_PLAYER add "_beinghit");
}
Symbol 315 MovieClip Frame 92
with (head) {
gotoAndStop(_root.M_PLAYER add "_beaten");
}
Symbol 315 MovieClip Frame 100
stop();
Symbol 315 MovieClip Frame 108
with (head) {
gotoAndStop(_root.M_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 1
free = true;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 5
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 7
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 9
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 10
gotoAndPlay (1);
Symbol 346 MovieClip Frame 11
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 14
gotoAndPlay (1);
Symbol 346 MovieClip Frame 15
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 17
gotoAndPlay (1);
Symbol 346 MovieClip Frame 18
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 20
gotoAndPlay (1);
Symbol 346 MovieClip Frame 21
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 25
gotoAndPlay (1);
Symbol 346 MovieClip Frame 26
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 28
gotoAndPlay (1);
Symbol 346 MovieClip Frame 29
free = true;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 30
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 37
gotoAndStop (29);
Symbol 346 MovieClip Frame 38
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 42
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 45
gotoAndStop (29);
Symbol 346 MovieClip Frame 46
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 346 MovieClip Frame 50
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 54
gotoAndPlay (1);
Symbol 346 MovieClip Frame 55
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_beinghit");
}
Symbol 346 MovieClip Frame 60
gotoAndPlay (1);
Symbol 346 MovieClip Frame 67
gotoAndPlay (1);
Symbol 346 MovieClip Frame 68
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 74
gotoAndPlay (1);
Symbol 346 MovieClip Frame 81
gotoAndPlay (1);
Symbol 346 MovieClip Frame 82
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 346 MovieClip Frame 93
gotoAndPlay (1);
Symbol 346 MovieClip Frame 94
with (head) {
gotoAndStop(_root.C_PLAYER add "_beinghit");
}
Symbol 346 MovieClip Frame 96
with (head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
Symbol 346 MovieClip Frame 105
stop();
Symbol 346 MovieClip Frame 109
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 1
free = true;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 5
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 7
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 9
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 10
gotoAndPlay (1);
Symbol 347 MovieClip Frame 11
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 14
gotoAndPlay (1);
Symbol 347 MovieClip Frame 15
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 17
gotoAndPlay (1);
Symbol 347 MovieClip Frame 18
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 20
gotoAndPlay (1);
Symbol 347 MovieClip Frame 21
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 25
gotoAndPlay (1);
Symbol 347 MovieClip Frame 26
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 28
gotoAndPlay (1);
Symbol 347 MovieClip Frame 29
free = true;
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 30
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 37
gotoAndStop (29);
Symbol 347 MovieClip Frame 38
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 42
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 45
gotoAndStop (29);
Symbol 347 MovieClip Frame 46
with (head) {
gotoAndStop(_root.C_PLAYER add "_default");
}
Symbol 347 MovieClip Frame 50
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 54
gotoAndPlay (1);
Symbol 347 MovieClip Frame 55
free = false;
with (head) {
gotoAndStop(_root.C_PLAYER add "_beinghit");
}
Symbol 347 MovieClip Frame 60
gotoAndPlay (1);
Symbol 347 MovieClip Frame 67
gotoAndPlay (1);
Symbol 347 MovieClip Frame 68
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 74
gotoAndPlay (1);
Symbol 347 MovieClip Frame 81
gotoAndPlay (1);
Symbol 347 MovieClip Frame 82
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 347 MovieClip Frame 93
gotoAndPlay (1);
Symbol 347 MovieClip Frame 94
with (head) {
gotoAndStop(_root.C_PLAYER add "_beinghit");
}
Symbol 347 MovieClip Frame 96
with (head) {
gotoAndStop(_root.C_PLAYER add "_beaten");
}
Symbol 347 MovieClip Frame 105
stop();
Symbol 347 MovieClip Frame 109
with (head) {
gotoAndStop(_root.C_PLAYER add "_shout");
}
Symbol 348 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 350 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 6
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 3
stop();
Symbol 365 MovieClip Frame 4
stop();
Symbol 365 MovieClip Frame 5
stop();
Symbol 365 MovieClip Frame 6
stop();
Symbol 365 MovieClip Frame 7
stop();
Symbol 365 MovieClip Frame 8
stop();
Symbol 365 MovieClip Frame 9
stop();
Symbol 365 MovieClip Frame 10
stop();
Symbol 365 MovieClip Frame 11
stop();
Symbol 365 MovieClip Frame 12
stop();
Symbol 365 MovieClip Frame 13
stop();
Symbol 365 MovieClip Frame 14
stop();
Symbol 365 MovieClip Frame 15
stop();
Symbol 365 MovieClip Frame 16
stop();
Symbol 365 MovieClip Frame 17
stop();
Symbol 365 MovieClip Frame 18
stop();
Symbol 369 MovieClip Frame 100
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 10
stop();
Symbol 371 MovieClip Frame 20
stop();
Symbol 372 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1195);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 4
stop();
Symbol 374 MovieClip Frame 5
stop();
Symbol 374 MovieClip Frame 6
stop();
Symbol 374 MovieClip Frame 7
stop();
Symbol 374 MovieClip Frame 8
stop();
Symbol 374 MovieClip Frame 9
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Symbol 375 MovieClip Frame 3
stop();
Symbol 375 MovieClip Frame 4
stop();
Symbol 375 MovieClip Frame 5
stop();
Symbol 375 MovieClip Frame 6
stop();
Symbol 375 MovieClip Frame 7
stop();
Symbol 375 MovieClip Frame 8
stop();
Symbol 375 MovieClip Frame 9
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 3
stop();
Symbol 393 MovieClip Frame 4
stop();
Symbol 393 MovieClip Frame 5
stop();
Symbol 393 MovieClip Frame 6
stop();
Symbol 393 MovieClip Frame 7
stop();
Symbol 393 MovieClip Frame 8
stop();
Symbol 393 MovieClip Frame 9
stop();
Symbol 393 MovieClip Frame 10
stop();
Symbol 393 MovieClip Frame 11
stop();
Symbol 393 MovieClip Frame 12
stop();
Symbol 393 MovieClip Frame 13
stop();
Symbol 393 MovieClip Frame 14
stop();
Symbol 393 MovieClip Frame 15
stop();
Symbol 393 MovieClip Frame 16
stop();
Symbol 394 Button
on (keyPress "x") {
if (STAGE == 8) {
gotoAndPlay (1393);
} else {
gotoAndStop (1160);
}
}
Symbol 398 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
stop();
Symbol 399 MovieClip Frame 3
stop();
Symbol 399 MovieClip Frame 4
stop();
Symbol 399 MovieClip Frame 5
stop();
Symbol 399 MovieClip Frame 6
stop();
Symbol 399 MovieClip Frame 7
stop();
Symbol 399 MovieClip Frame 8
stop();
Symbol 399 MovieClip Frame 9
stop();
Symbol 399 MovieClip Frame 10
stop();
Symbol 399 MovieClip Frame 11
stop();
Symbol 399 MovieClip Frame 12
stop();
Symbol 399 MovieClip Frame 13
stop();
Symbol 399 MovieClip Frame 14
stop();
Symbol 399 MovieClip Frame 15
stop();
Symbol 399 MovieClip Frame 16
stop();
Symbol 399 MovieClip Frame 17
stop();
Symbol 399 MovieClip Frame 18
stop();
Symbol 400 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1237);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 404 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 406 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1263);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 410 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 411 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1289);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 415 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 416 Button
on (keyPress "c") {
gotoAndPlay (1222);
}
Symbol 417 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1315);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 421 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 422 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1341);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 426 Button
on (keyPress "z") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
eval ("_root.computer_" add CL).swapDepths(eval ("_root.man_" add ML));
if ((M_CROUCH == 0) && (M_JUMP == 1)) {
M_KICK = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumpkick");
};
}
if (M_CROUCH == 1) {
M_KICK = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchkick");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_KICK = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("kick");
};
}
}
if (flip == 0) {
if ((M_KICK == 1) && (computer_l.h.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_l.stomach.hitTest(man_r._x - 15, man_r._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 15);
setProperty("hit_mark", _y , man_r._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_l.h.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 160);
setProperty("hit_mark", _yscale , 160);
}
if ((M_KICK == 2) && (computer_l.stomach.hitTest(man_r._x, man_r._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x);
setProperty("hit_mark", _y , man_r._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_l.h.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_KICK == 3) && (computer_l.stomach.hitTest(man_r._x - 30, man_r._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 30);
setProperty("hit_mark", _y , man_r._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
} else if (flip == 1) {
if ((M_KICK == 1) && (computer_r.h.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 13;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 1) && (computer_r.stomach.hitTest(man_l._x + 15, man_l._y - 30, true))) {
M_SCORE = M_SCORE - 11;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 15);
setProperty("hit_mark", _y , man_l._y - 30);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.h.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 12;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 2) && (computer_r.stomach.hitTest(man_l._x, man_l._y, true))) {
M_SCORE = M_SCORE - 10;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x);
setProperty("hit_mark", _y , man_l._y);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.h.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 16;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
if ((M_KICK == 3) && (computer_r.stomach.hitTest(man_l._x + 30, man_l._y - 10, true))) {
M_SCORE = M_SCORE - 15;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 30);
setProperty("hit_mark", _y , man_l._y - 10);
setProperty("hit_mark", _xscale , 150);
setProperty("hit_mark", _yscale , 150);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "x") {
if (eval ("_root.man_" add ML).free) {
eval ("_root.man_" add ML).free = false;
with (wish_sound) {
play();
}
if ((M_JUMP == 1) && (M_CROUCH == 0)) {
M_PUNCH = 2;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jump");
};
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jumppuch");
};
}
if (M_CROUCH == 1) {
M_PUNCH = 3;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("crouchjab");
};
}
if ((M_JUMP == 0) && (M_CROUCH == 0)) {
M_PUNCH = 1;
p = random(2);
if (p == 1) {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("punch");
};
} else {
tellTarget (eval ("_root.man_" add ML)) {
gotoAndPlay ("jab");
};
}
}
}
if (flip == 0) {
if ((M_PUNCH == 1) && (computer_l.h.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_l.stomach.hitTest(man_r._x - 10, man_r._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 10);
setProperty("hit_mark", _y , man_r._y - 75);
}
if ((M_PUNCH == 2) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 100);
setProperty("hit_mark", _xscale , 120);
setProperty("hit_mark", _yscale , 120);
}
if ((M_PUNCH == 3) && (computer_l.h.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 140);
setProperty("hit_mark", _yscale , 140);
}
if ((M_PUNCH == 3) && (computer_l.stomach.hitTest(man_r._x - 20, man_r._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_r._x - 20);
setProperty("hit_mark", _y , man_r._y - 35);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
} else if (flip == 1) {
if ((M_PUNCH == 1) && (computer_r.h.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 10;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 1) && (computer_r.stomach.hitTest(man_l._x + 10, man_l._y - 75, true))) {
M_SCORE = M_SCORE - 7;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 10);
setProperty("hit_mark", _y , man_l._y - 70);
setProperty("hit_mark", _xscale , 100);
setProperty("hit_mark", _yscale , 100);
}
if ((M_PUNCH == 2) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 11;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 2) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 100, true))) {
M_SCORE = M_SCORE - 8;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 100);
setProperty("hit_mark", _xscale , 110);
setProperty("hit_mark", _yscale , 110);
}
if ((M_PUNCH == 3) && (computer_r.h.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 9;
hc_h = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
if ((M_PUNCH == 3) && (computer_r.stomach.hitTest(man_l._x + 20, man_l._y - 35, true))) {
M_SCORE = M_SCORE - 6;
hc_s = 1;
setProperty("hit_mark", _x , man_l._x + 20);
setProperty("hit_mark", _y , man_l._y - 35);
setProperty("hit_mark", _xscale , 130);
setProperty("hit_mark", _yscale , 130);
}
}
if (1 >= M_SCORE) {
M_SCORE = 1;
}
if (hc_h == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hithead");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
if (hc_s == 1) {
tellTarget (eval ("_root.computer_" add CL)) {
gotoAndPlay ("hitstomach");
};
if (flip == 0) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x + 40);
}
if (flip == 1) {
setProperty(eval ("_root.computer_" add CL), _x , eval ("_root.computer_" add CL)._x - 40);
}
with (_root.C_L) {
gotoAndStop(M_SCORE);
}
tellTarget ("hit_mark") {
gotoAndPlay (2);
};
}
M_PUNCH = 0;
M_KICK = 0;
hc_h = 0;
hc_s = 0;
}
on (keyPress "<Down>") {
if (M_CROUCH == 0) {
eval ("_root.man_" add ML).free = false;
M_CROUCH = 1;
tellTarget (eval ("_root.man_" add ML)) {
gotoAndStop ("crouch");
};
}
}
on (keyPress "<Up>") {
M_JUMP = 1;
M_CROUCH = 0;
}
Symbol 427 Button
on (keyPress "x") {
if (M_SCORE >= C_SCORE) {
if (three_rounds == 3) {
three_rounds = 0;
gotoAndPlay (1159);
} else {
gotoAndPlay (1367);
}
} else {
three_rounds = 0;
gotoAndPlay (1222);
}
}
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 2
stop();
Symbol 448 MovieClip Frame 3
stop();
Symbol 448 MovieClip Frame 4
stop();
Symbol 448 MovieClip Frame 5
stop();
Symbol 448 MovieClip Frame 6
stop();
Symbol 448 MovieClip Frame 7
stop();
Symbol 448 MovieClip Frame 8
stop();
Symbol 448 MovieClip Frame 9
stop();
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 2
stop();
Symbol 450 MovieClip Frame 3
stop();
Symbol 450 MovieClip Frame 4
stop();
Symbol 450 MovieClip Frame 5
stop();
Symbol 450 MovieClip Frame 6
stop();
Symbol 450 MovieClip Frame 7
stop();
Symbol 450 MovieClip Frame 8
stop();
Symbol 450 MovieClip Frame 9
stop();
Symbol 452 Button
on (keyPress "x") {
gotoAndPlay (1885);
}
Symbol 466 Button
on (release) {
if (Number(length(name)) == 0) {
sumbit_info = "Required: contact name";
} else {
submit_info = "Processing...";
loadVariablesNum ("http://www.kollacubed.com/dsf/addPlayer.asp", 0, "POST");
gotoAndPlay (1888);
}
}
Symbol 467 Button
on (keyPress "q") {
gotoAndPlay (1921);
}
Symbol 470 Button
on (keyPress "q") {
gotoAndStop (367);
}
Symbol 491 Button
on (release) {
if (((length(txtFrom) == 0) || (length(txtName) == 0)) || (length(txtEmail1) == 0)) {
} else {
loadVariablesNum ("http://www.kollacubed.com/dsf/referafriend.asp", 0, "POST");
gotoAndPlay (1975);
}
}