Frame 10
this.MCs.attachMovie("computer", "player1", 4);
this.MCs.player1.character_opponent = "player2";
this.MCs.attachMovie("computer", "player2", 3);
this.MCs.player2.character_opponent = "player1";
fighter_color = new Color(this.MCs.player2);
fighter_color_new = {ra:"0", rb:"102", ga:"0", gb:"102", ba:"0", bb:"102", aa:"100", ab:"0"};
fighter_color.setTransform(fighter_color_new);
this.MCs.attachMovie("shadow", "player1_shadow", 2);
shadow_color = new Color(this.MCs.player1_shadow);
shadow_color_new = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"40", ab:"0"};
shadow_color.setTransform(shadow_color_new);
this.MCs.attachMovie("shadow", "player2_shadow", 1);
shadow_color = new Color(this.MCs.player2_shadow);
shadow_color_new = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"40", ab:"0"};
shadow_color.setTransform(shadow_color_new);
if (_global.Volume == undefined) {
_global.Volume = 50;
}
if (_root.VolMuted == undefined) {
_root.VolMuted = false;
}
if (fight_music == undefined) {
fight_music = new Sound(fight_musicMC);
fight_music.attachSound("music_1");
fight_music.setVolume(_global.Volume);
}
if (btn_snd == undefined) {
btn_snd = new Sound(btn_sndMC);
btn_snd.attachSound("medium_sound");
btn_snd.setVolume(_global.Volume);
}
fight_music.setVolume(_global.Volume);
btn_snd.setVolume(_global.Volume);
_quality = "high";
stop();
vol_front.onLoad = function () {
_root.perc = _global.Volume / 100;
_root.vol_front._width = _root.vol_back._width * _root.perc;
};
vol_back.onPress = function () {
vol_front.onEnterFrame = function () {
_root.perc = (_xmouse - vol_back._x) / vol_back._width;
((_root.perc > 0.95) ? ((_root.perc = 1)) : null);
((_root.perc < 0.05) ? ((_root.perc = 0)) : null);
this._width = vol_back._width * _root.perc;
if (!_root.VolMuted) {
_global.Volume = Math.round(_root.perc * 100);
fight_music.setVolume(Volume);
btn_snd.setVolume(Volume);
win_music.setVolume(Volume);
low_snd.setVolume(Volume);
medium_snd.setVolume(Volume);
strong_snd.setVolume(Volume);
block_snd.setVolume(Volume);
lose_snd.setVolume(Volume * 2);
}
};
};
vol_back.onRelease = (vol_back.onReleaseOutside = function () {
delete vol_front.onEnterFrame;
});
vol_front.setMask(vol_mask);
Instance of Symbol 22 MovieClip "music" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_parent.MCs.player1.life = 200;
_parent.MCs.player2.life = 200;
medium_snd.setVolume(0);
}
Instance of Symbol 22 MovieClip "fight_musicMC" in Frame 10
onClipEvent (load) {
_root.fight_music.start();
}
onClipEvent (enterFrame) {
_root.fight_music.onSoundComplete = function () {
_root.fight_music.start();
};
}
Instance of Symbol 326 MovieClip "vol_front" in Frame 10
/* no clip actions */
Frame 20
stop();
Frame 30
stop();
Frame 40
_global.player1_wins = 0;
_global.player2_wins = 0;
_global.round_num = 1;
_global.roundStart = false;
stop();
Frame 50
_global.Player1 = "Player 1";
_global.Player2 = "Player 2";
stop();
Instance of Symbol 22 MovieClip "fadeMC" in Frame 50
onClipEvent (enterFrame) {
if (_root.fight_music.getVolume() > 0) {
_root.fight_music.setVolume(_root.fight_music.getVolume() - 20);
} else {
_root.fight_music.stop();
_root.fight_music.setVolume(0);
_parent.gotoAndPlay("matchPlay");
}
}
Instance of Symbol 22 MovieClip "fight_musicMC" in Frame 50
onClipEvent (load) {
_root.fight_music.setVolume(_global.Volume);
}
onClipEvent (enterFrame) {
_root.fight_music.onSoundComplete = function () {
_root.fight_music.start();
};
}
Frame 60
if (_global.player1_wins == 0) {
winCounters.player1WinsText.text = "";
} else if (_global.player1_wins == 1) {
winCounters.player1WinsText.text = "/";
} else if (_global.player1_wins == 2) {
winCounters.player1WinsText.text = "X";
} else if (_global.player1_wins == 3) {
winCounters.player1WinsText.text = "/ X";
} else if (_global.player1_wins == 4) {
winCounters.player1WinsText.text = "X X";
}
if (_global.player2_wins == 0) {
winCounters.player2WinsText.text = "";
} else if (_global.player2_wins == 1) {
winCounters.player2WinsText.text = "/";
} else if (_global.player2_wins == 2) {
winCounters.player2WinsText.text = "X";
} else if (_global.player2_wins == 3) {
winCounters.player2WinsText.text = "X /";
} else if (_global.player2_wins == 4) {
winCounters.player2WinsText.text = "X X";
}
if (!_global.roundStart) {
_global.roundStart = true;
} else {
_global.roundStart = false;
}
if (_global.round_num <= 3) {
if (_global.NumPlayers == 0) {
this.MCs.attachMovie("computer", "player1", 4);
this.MCs.player1.character_opponent = "player2";
this.MCs.attachMovie("computer", "player2", 3);
this.MCs.player2.character_opponent = "player1";
} else if (_global.NumPlayers == 1) {
this.MCs.attachMovie("fighter", "player1", 4);
this.MCs.player1.character_opponent = "player2";
this.MCs.attachMovie("computer", "player2", 3);
this.MCs.player2.character_opponent = "player1";
} else {
this.MCs.attachMovie("fighter", "player1", 4);
this.MCs.player1.character_opponent = "player2";
this.MCs.attachMovie("fighter", "player2", 3);
this.MCs.player2.character_opponent = "player1";
}
fighter_color = new Color(this.MCs.player2);
fighter_color_new = {ra:"0", rb:"102", ga:"0", gb:"102", ba:"0", bb:"102", aa:"100", ab:"0"};
fighter_color.setTransform(fighter_color_new);
this.MCs.attachMovie("shadow", "player1_shadow", 2);
shadow_color = new Color(this.MCs.player1_shadow);
shadow_color_new = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"40", ab:"0"};
shadow_color.setTransform(shadow_color_new);
this.MCs.attachMovie("shadow", "player2_shadow", 1);
shadow_color = new Color(this.MCs.player2_shadow);
shadow_color_new = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"40", ab:"0"};
shadow_color.setTransform(shadow_color_new);
win_music = new Sound(win_musicMC);
win_music.attachSound("music_2");
win_music.setVolume(_global.Volume * 2);
low_snd = new Sound(low_sndMC);
low_snd.attachSound("low_sound");
low_snd.setVolume(_global.Volume);
medium_snd = new Sound(med_sndMC);
medium_snd.attachSound("medium_sound");
medium_snd.setVolume(_global.Volume);
strong_snd = new Sound(str_sndMC);
strong_snd.attachSound("strong_sound");
strong_snd.setVolume(_global.Volume);
block_snd = new Sound(block_sndMC);
block_snd.attachSound("block_sound");
block_snd.setVolume(_global.Volume);
lose_snd = new Sound(lose_sndMC);
lose_snd.attachSound("lose_sound");
lose_snd.setVolume(_global.Volume * 2);
_quality = "high";
stop();
} else {
gotoAndPlay ("menu");
}
Instance of Symbol 22 MovieClip "fight_musicMC" in Frame 60
onClipEvent (load) {
_root.fight_music.stop();
_root.fight_music.start();
_root.fight_music.setVolume(_global.Volume);
}
onClipEvent (enterFrame) {
_root.fight_music.onSoundComplete = function () {
_root.fight_music.start();
};
}
Frame 80
if (_global.player1_wins == 0) {
winCounters.player1WinsText.text = "";
} else if (_global.player1_wins == 1) {
winCounters.player1WinsText.text = "/";
} else if (_global.player1_wins == 2) {
winCounters.player1WinsText.text = "X";
} else if (_global.player1_wins == 3) {
winCounters.player1WinsText.text = "/ X";
} else if (_global.player1_wins == 4) {
winCounters.player1WinsText.text = "X X";
}
if (_global.player2_wins == 0) {
winCounters.player2WinsText.text = "";
} else if (_global.player2_wins == 1) {
winCounters.player2WinsText.text = "/";
} else if (_global.player2_wins == 2) {
winCounters.player2WinsText.text = "X";
} else if (_global.player2_wins == 3) {
winCounters.player2WinsText.text = "X /";
} else if (_global.player2_wins == 4) {
winCounters.player2WinsText.text = "X X";
}
if (_global.winner == "player1") {
roundWinner.winnerText.text = "Player 1 KO";
} else if (_global.winner == "player2") {
roundWinner.winnerText.text = "Player 2 KO";
} else if (_global.winner == "tie") {
roundWinner.winnerText.text = "DRAW";
}
stop();
Frame 90
if (_global.winner == "player1") {
matchWinner.winnerText.text = "Player 1 WINS";
} else if (_global.winner == "player2") {
matchWinner.winnerText.text = "Player 2 WINS";
} else if (_global.winner == "tie") {
matchWinner.winnerText.text = "Match is a DRAW";
}
_global.round_num = 4;
stop();
Instance of Symbol 22 MovieClip "win_musicMC" in Frame 90
onClipEvent (load) {
_root.win_music.start();
_root.win_music.setVolume(_global.Volume * 2);
}
onClipEvent (enterFrame) {
_root.win_music.onSoundComplete = function () {
_root.win_music.start();
};
}
Frame 100
stop();
Frame 110
_root.fight_music.stop();
gotoAndPlay ("matchPlay");
Symbol 19 MovieClip Frame 1
_parent.stop();
Symbol 19 MovieClip Frame 2
kBytesLoaded = _parent.getBytesLoaded() / 1024;
kBytesTotal = _parent.getBytesTotal() / 1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = (100 * kBytesLoaded) / kBytesTotal;
percentRemaining = 100 - percentLoaded;
if (percentLoaded < 99) {
gotoAndPlay ("loaderPlay");
} else {
_parent.play();
stop();
}
Symbol 19 MovieClip Frame 3
kBytesLoaded = _parent.getBytesLoaded() / 1024;
kBytesTotal = _parent.getBytesTotal() / 1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = (100 * kBytesLoaded) / kBytesTotal;
percentRemaining = 100 - percentLoaded;
progress = Math.floor(percentLoaded) + " %";
redProgress._xscale = percentLoaded;
Symbol 19 MovieClip Frame 4
if (percentLoaded < 99) {
gotoAndPlay ("loaderPlay");
} else {
_parent.play();
stop();
}
Symbol 21 MovieClip Frame 3
_parent.gotoAndStop("fly");
Symbol 22 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 6
_parent.removeMovieClip(this);
Symbol 35 MovieClip [fireball] Frame 1
function fireball_load() {
fball_distance = 10;
}
function fireball_enterFrame() {
test_hit();
test_distance();
if (_xscale > 0) {
movement_right();
} else {
movement_left();
}
}
function movement_left() {
if (_x >= -100) {
_x = (_x - fball_speed);
} else {
removeMovieClip(this);
}
}
function movement_right() {
if (_x <= screen_width) {
_x = (_x + fball_speed);
} else {
removeMovieClip(this);
}
}
function test_hit() {
if (this.fireHit.hitTest(_parent[opponent].body)) {
this.fireHit.nextFrame();
_parent[fighter].strength = strength;
_parent[fighter].hit_level = hit_level;
_parent[fighter].attack_lose_life();
_parent[fighter].attack_opponent_ani();
attack_effects();
_parent[fighter].check_winner();
gotoAndStop ("die");
}
if (this.fireHit.hitTest(_parent[opponent].character.block)) {
this.character.attack.nextFrame();
_parent[fighter].strength = strength;
_parent[fighter].hit_level = hit_level;
_parent[fighter].block_lose_life();
_parent[fighter].block_opponent_ani();
gotoAndStop ("die");
}
}
function test_distance() {
fball_dist = Math.sqrt(Math.pow(_parent[opponent]._x - this._x, 2) + Math.pow(_parent[opponent]._y - this._y, 2));
_parent[opponent].fball_dist = fball_dist;
}
function attack_effects() {
fx_depth = _parent.getNextHighestDepth();
_parent.attachMovie("hit_effect", "fx", fx_depth);
point = {x:0, y:0};
this.fireHit.localToGlobal(point);
_parent.fx._x = ((point.x + _parent[opponent]._x) / 2) - 30;
_parent.fx._y = point.y + (random(10) + 30);
}
screen_width = 640;
stop();
Instance of Symbol 22 MovieClip in Symbol 35 MovieClip [fireball] Frame 1
onClipEvent (load) {
_parent.fireball_load();
}
Instance of Symbol 22 MovieClip in Symbol 35 MovieClip [fireball] Frame 10
onClipEvent (enterFrame) {
_parent.fireball_enterFrame();
}
Symbol 45 MovieClip Frame 25
if (!_global.roundStart) {
_parent.gotoAndStop("stand");
} else {
gotoAndPlay ("loop");
}
Symbol 46 MovieClip Frame 25
gotoAndPlay (1);
Symbol 47 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 13
gotoAndPlay ("loop");
Symbol 63 MovieClip Frame 14
gotoAndPlay ("loop");
Symbol 70 MovieClip Frame 6
_parent.attacking = false;
Symbol 70 MovieClip Frame 13
_parent.gotoAndStop("stand");
Symbol 76 MovieClip Frame 8
_parent.attacking = false;
Symbol 76 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 81 MovieClip Frame 8
_parent.attacking = false;
Symbol 81 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 88 MovieClip Frame 13
_parent.attacking = false;
Symbol 88 MovieClip Frame 22
_parent.gotoAndStop("stand");
Symbol 90 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 3
_parent.fire_ball();
Symbol 91 MovieClip Frame 7
_parent.gotoAndStop("stand");
Symbol 94 MovieClip Frame 3
_parent.fire_ball();
Symbol 94 MovieClip Frame 9
_parent.gotoAndStop("stand");
Symbol 98 MovieClip Frame 1
_parent._xscale = _parent._xscale * -1;
Symbol 98 MovieClip Frame 4
_parent.gotoAndStop("stand");
Symbol 105 MovieClip Frame 15
stop();
Symbol 115 MovieClip Frame 17
stop();
Symbol 124 MovieClip Frame 15
stop();
Symbol 131 MovieClip Frame 8
_parent.attacking = false;
Symbol 131 MovieClip Frame 12
stop();
Symbol 139 MovieClip Frame 8
_parent.attacking = false;
Symbol 139 MovieClip Frame 14
stop();
Symbol 147 MovieClip Frame 7
_parent.attacking = false;
Symbol 147 MovieClip Frame 19
stop();
Symbol 156 MovieClip Frame 12
_parent.attacking = false;
Symbol 156 MovieClip Frame 17
stop();
Symbol 159 MovieClip Frame 3
_parent.gotoAndStop("stand");
Symbol 162 MovieClip Frame 3
_parent.gotoAndStop("crouch");
Symbol 167 MovieClip Frame 2
_parent.gotoAndStop("stand");
Symbol 171 MovieClip Frame 5
_parent.attacking = false;
Symbol 171 MovieClip Frame 11
_parent.gotoAndStop("crouch");
Symbol 177 MovieClip Frame 8
_parent.attacking = false;
Symbol 177 MovieClip Frame 16
_parent.gotoAndStop("crouch");
Symbol 180 MovieClip Frame 6
_parent.attacking = false;
Symbol 180 MovieClip Frame 12
_parent.gotoAndStop("crouch");
Symbol 186 MovieClip Frame 12
_parent.attacking = false;
Symbol 186 MovieClip Frame 20
_parent.gotoAndStop("crouch");
Symbol 189 MovieClip Frame 3
_parent.fire_ball();
Symbol 189 MovieClip Frame 6
_parent.gotoAndStop("crouch");
Symbol 191 MovieClip Frame 3
_parent.fire_ball();
Symbol 191 MovieClip Frame 11
_parent.gotoAndStop("crouch");
Symbol 195 MovieClip Frame 1
_parent._xscale = _parent._xscale * -1;
Symbol 195 MovieClip Frame 6
_parent.gotoAndStop("crouch");
Symbol 197 MovieClip Frame 2
_parent.gotoAndStop("low_hit_stand");
Symbol 202 MovieClip Frame 1
if (_parent._parent[_parent.character_opponent].actual_position == "crouch") {
gotoAndPlay ("crouch");
} else {
play();
}
Symbol 202 MovieClip Frame 6
_parent.gotoAndStop("stand");
Symbol 202 MovieClip Frame 13
_parent.gotoAndStop("stand");
Symbol 204 MovieClip Frame 2
_parent.gotoAndStop("medium_hit_stand");
Symbol 211 MovieClip Frame 1
if (_parent._parent[_parent.character_opponent].actual_position == "crouch") {
gotoAndPlay ("crouch");
} else {
play();
}
Symbol 211 MovieClip Frame 8
_parent.gotoAndStop("stand");
Symbol 211 MovieClip Frame 17
_parent.gotoAndStop("stand");
Symbol 213 MovieClip Frame 2
_parent.gotoAndStop("strong_hit_stand");
Symbol 220 MovieClip Frame 1
if (_parent._parent[_parent.character_opponent].actual_position == "crouch") {
gotoAndPlay ("crouch");
} else {
play();
}
Symbol 220 MovieClip Frame 9
_parent.gotoAndStop("stand");
Symbol 220 MovieClip Frame 19
_parent.gotoAndStop("stand");
Symbol 222 MovieClip Frame 2
_parent.gotoAndStop("low_hit_crouch");
Symbol 225 MovieClip Frame 1
Symbol 225 MovieClip Frame 6
_parent.gotoAndStop("crouch");
Symbol 227 MovieClip Frame 2
_parent.gotoAndStop("medium_hit_crouch");
Symbol 232 MovieClip Frame 7
_parent.gotoAndStop("crouch");
Symbol 234 MovieClip Frame 2
_parent.gotoAndStop("strong_hit_crouch");
Symbol 238 MovieClip Frame 10
_parent.gotoAndStop("crouch");
Symbol 240 MovieClip Frame 2
_parent.gotoAndStop("low_hit_jump");
Symbol 243 MovieClip Frame 1
Symbol 243 MovieClip Frame 12
stop();
Symbol 245 MovieClip Frame 2
_parent.gotoAndStop("medium_hit_jump");
Symbol 247 MovieClip Frame 3
_parent.gotoAndStop("strong_hit_jump");
Symbol 253 MovieClip Frame 4
_parent.gotoAndStop("stand");
Symbol 256 MovieClip Frame 4
_parent.gotoAndStop("crouch");
Symbol 261 MovieClip Frame 11
stop();
Symbol 267 MovieClip Frame 17
_parent.gotoAndStop("lose_out");
Symbol 268 MovieClip Frame 11
stop();
_root.gotoAndStop("roundWin");
Symbol 283 MovieClip Frame 85
if ((_global.player1_wins >= 4) || (_global.player2_wins >= 4)) {
_parent.gotoAndStop("win_match");
} else if ((_global.player1_wins == 3) && (_global.player2_wins == 3)) {
_parent.gotoAndStop("win_match");
} else {
stop();
}
Symbol 295 MovieClip Frame 24
stop();
Symbol 296 MovieClip [computer] Frame 1
state = "start";
function shadow_enterFrame() {
_parent[character_attitude + "_shadow"].gotoAndStop(_currentframe);
}
function characteristics_load() {
actual_position = "stand";
walk_speed = walk_speed_original;
jump_height = 22;
jump_vertical_speed = 2;
jump_horiz_speed = 8;
attacking = false;
}
function AI_enterFrame() {
opp_state_prev = opp_state;
opp_state = _parent[character_opponent].state;
if (AI_state_prev != AI_state) {
AI_state_prev = AI_state;
}
AI_state = state;
if (_parent[character_opponent].attacking) {
if (_parent[character_opponent].attacking_distance == 0) {
attacking_distance = 199;
} else {
attacking_distance = _parent[character_opponent].attacking_distance;
}
} else if (attacking) {
if (attacking_distance == 0) {
attacking_distance = 201;
}
} else {
dist_min = 0;
if ((actual_position == "stand") && (_parent[character_opponent].actual_position == "crouch")) {
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MK_dist"];
} else if ((actual_position == "jump") && (_parent[character_opponent].actual_position == "crouch")) {
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist"];
} else {
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist"];
}
}
}
function opp_dist() {
opp_distance = Math.sqrt(Math.pow(_parent[character_opponent]._x - this._x, 2) + Math.pow(_parent[character_opponent]._y - this._y, 2));
return(opp_distance);
}
function randomBetween(a, b) {
return(a + Math.floor(Math.random() * ((b - a) + 1)));
}
function chance(prob) {
rand = randomBetween(1, prob);
if (rand == prob) {
yes = true;
} else {
yes = false;
}
return(yes);
}
function InRange() {
if (opp_dist() <= attacking_distance) {
in_range = true;
} else {
in_range = false;
}
return(in_range);
}
function AI_stand_load() {
characteristics_load();
}
function AI_stand_enterFrame() {
if (_parent[character_opponent].attacking) {
if (_parent[character_opponent].actual_position == "stand") {
if (InRange()) {
AI_stand_Opp_stand_attack_InRange();
} else {
AI_stand_Opp_stand_attack_OutRange();
}
} else if (_parent[character_opponent].actual_position == "jump") {
if (InRange()) {
AI_stand_Opp_jump_attack_InRange();
} else {
AI_stand_Opp_jump_attack_OutRange();
}
} else if (_parent[character_opponent].actual_position == "crouch") {
if (InRange()) {
AI_stand_Opp_crouch_attack_InRange();
} else {
AI_stand_Opp_crouch_attack_OutRange();
}
}
} else if (_parent[character_opponent].actual_position == "stand") {
if (opp_state == "stand_forward") {
if (InRange()) {
AI_stand_Opp_stand_forward_InRange();
} else {
AI_stand_Opp_stand_forward_OutRange();
}
} else if (InRange()) {
AI_stand_Opp_stand_InRange();
} else {
AI_stand_Opp_stand_OutRange();
}
} else if (_parent[character_opponent].actual_position == "jump") {
if (opp_state == "jump_forward") {
if (InRange()) {
AI_stand_Opp_jump_forward_InRange();
} else {
AI_stand_Opp_jump_forward_OutRange();
}
} else if (InRange()) {
AI_stand_Opp_jump_InRange();
} else {
AI_stand_Opp_jump_OutRange();
}
} else if (_parent[character_opponent].actual_position == "crouch") {
if (InRange()) {
AI_stand_Opp_crouch_InRange();
} else {
AI_stand_Opp_crouch_OutRange();
}
} else if (InRange()) {
AI_stand_Opp_stand_InRange();
} else {
AI_stand_Opp_stand_OutRange();
}
}
function AI_stand_Opp_stand_OutRange() {
if (chance(15)) {
f_ball();
} else if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_forward();
} else if (chance(3)) {
jump_forward();
} else {
stand_backward();
}
} else if (!chance(8)) {
stand_forward();
} else if (chance(3)) {
jump_forward();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
stand();
} else {
crouch();
}
}
function AI_stand_Opp_stand_InRange() {
if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
} else if (chance(3)) {
crouch();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else {
stand_forward();
}
}
function AI_stand_Opp_stand_forward_OutRange() {
if (chance(15)) {
f_ball();
} else if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else {
stand_forward();
}
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_stand_forward_InRange() {
if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
} else if (chance(3)) {
stand_backward();
} else if (chance(2)) {
crouch();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else {
stand_forward();
}
}
function AI_stand_Opp_stand_attack_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_backward();
} else {
jump_backward();
}
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_stand_attack_InRange() {
if ((AI_state_prev == "stand_hit") || (AI_state_prev == "block_stand_hit")) {
crouch();
} else if (testBlock()) {
block();
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_jump_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
jump_forward();
} else if (chance(3)) {
stand_forward();
} else {
stand_backward();
}
} else if (!chance(8)) {
jump_forward();
} else if (chance(3)) {
stand_forward();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
stand();
} else {
crouch();
}
}
function AI_stand_Opp_jump_InRange() {
if (chance(2)) {
MK();
} else if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
} else if (chance(3)) {
crouch();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else {
stand_forward();
}
}
function AI_stand_Opp_jump_forward_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_backward();
} else {
jump_backward();
}
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
stand();
}
}
function AI_stand_Opp_jump_forward_InRange() {
if (chance(2)) {
MK();
} else if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
} else if (chance(3)) {
crouch();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else {
stand_forward();
}
}
function AI_stand_Opp_jump_attack_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_backward();
} else {
jump_backward();
}
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_jump_attack_InRange() {
if (testBlock()) {
block();
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_crouch_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_forward();
} else if (chance(3)) {
jump_forward();
} else {
stand_backward();
}
} else if (!chance(8)) {
stand_forward();
} else if (chance(3)) {
jump_forward();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
stand();
} else {
crouch();
}
}
function AI_stand_Opp_crouch_InRange() {
if ((opp_state == "block_crouch") || (opp_state == "block_crouch_hit")) {
crouch();
} else if (chance(2)) {
MK1();
} else if (chance(2)) {
SK1();
} else if (chance(3)) {
crouch();
} else if (chance(2)) {
stand_backward();
} else if (chance(2)) {
jump_backward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump();
} else if (chance(2)) {
jump_forward();
} else {
stand_forward();
}
}
function AI_stand_Opp_crouch_attack_OutRange() {
if (opp_state == opp_state_prev) {
if (!chance(12)) {
stand_backward();
} else {
jump_backward();
}
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_stand_Opp_crouch_attack_InRange() {
if ((AI_state_prev == "stand_hit") || (AI_state_prev == "block_stand_hit")) {
crouch();
} else if (testBlock()) {
block();
} else if (!chance(8)) {
stand_backward();
} else if (chance(3)) {
jump_backward();
} else if (chance(2)) {
stand_forward();
} else if (chance(2)) {
stand();
} else if (chance(2)) {
jump_forward();
} else if (chance(2)) {
crouch();
} else {
jump();
}
}
function AI_jump_enterFrame() {
actual_position = "jump";
if ((_parent[character_opponent].actual_position == "stand") || (_parent[character_opponent].actual_position == "jump")) {
if (InRange()) {
AI_jump_Opp_stand_InRange();
}
} else if (InRange()) {
AI_jump_Opp_crouch_InRange();
}
}
function AI_jump_Opp_stand_InRange() {
if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
}
}
function AI_jump_Opp_crouch_InRange() {
if (chance(2)) {
SP1();
}
}
function jump_movement() {
if (jump_actual_height < jump_height) {
_y = (_y + jump_actual_height);
_parent[character_attitude + "_shadow"]._y = _parent[character_attitude + "_shadow"]._y - (jump_actual_height / 8);
_parent[character_attitude + "_shadow"]._x = _x;
jump_actual_height = jump_actual_height + jump_vertical_speed;
if (jump_direction == "backward") {
if (_x >= 0) {
_x = (_x - jump_horiz_speed);
}
} else if (jump_direction == "forward") {
if (_x <= screen_width) {
_x = (_x + jump_horiz_speed);
}
}
} else {
_y = 0;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
this.gotoAndStop("jump_out");
}
}
function jump_hit_load() {
jump_actual_height = -10;
}
function jump_hit_enterFrame() {
actual_position = "jump";
_y = (_y + jump_actual_height);
jump_actual_height = jump_actual_height + jump_vertical_speed;
if (_y >= -13) {
_y = 0;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
this.gotoAndStop("jump_out");
}
}
function AI_crouch_enterFrame() {
actual_position = "crouch";
attacking = false;
if (_parent[character_opponent].attacking) {
if (opp_state == "crouch_MK1") {
if (InRange()) {
AI_crouch_Opp_crouch_attack_InRange();
} else {
AI_crouch_Opp_OutRange();
}
} else if (InRange()) {
AI_crouch_Opp_attack_InRange();
} else {
AI_crouch_Opp_OutRange();
}
} else if (_parent[character_opponent].actual_position == "crouch") {
if (InRange()) {
AI_crouch_Opp_crouch_InRange();
} else {
AI_crouch_Opp_OutRange();
}
} else if (_parent[character_opponent].actual_position == "jump") {
if (InRange()) {
AI_crouch_Opp_jump_InRange();
} else {
AI_crouch_Opp_OutRange();
}
} else if (InRange()) {
AI_crouch_Opp_stand_InRange();
} else {
AI_crouch_Opp_OutRange();
}
}
function AI_crouch_Opp_OutRange() {
if (chance(15)) {
f_ball();
} else if (chance(2)) {
stand();
} else {
crouch();
}
}
function AI_crouch_Opp_stand_InRange() {
if (chance(2)) {
strong_attack();
} else if (chance(2)) {
medium_attack();
} else if (chance(2)) {
crouch();
} else {
stand();
}
}
function AI_crouch_Opp_attack_InRange() {
if ((AI_state_prev == "crouch_hit") || (AI_state_prev == "block_crouch_hit")) {
stand();
} else if (testBlock()) {
block();
} else if (chance(2)) {
crouch();
} else {
stand();
}
}
function AI_crouch_Opp_crouch_InRange() {
if ((opp_state == "block_crouch") || (opp_state == "block_crouch_hit")) {
if (chance(2)) {
MK1();
}
} else if (chance(2)) {
MK1();
} else if (chance(2)) {
SK1();
} else if (chance(2)) {
SP1();
} else if (chance(2)) {
MP1();
} else if (chance(2)) {
crouch();
} else {
stand();
}
}
function AI_crouch_Opp_crouch_attack_InRange() {
if (chance(2)) {
MK1();
} else {
stand();
}
}
function AI_crouch_Opp_jump_InRange() {
if (chance(2)) {
strong_attack();
} else if (chance(2)) {
MP1();
} else if (chance(2)) {
crouch();
} else {
stand();
}
}
function stand() {
gotoAndStop ("stand");
}
function stand_forward() {
if (!hit_wall) {
gotoAndStop ("stand_forward");
if (direction_left == "forward") {
movement_left();
} else {
movement_right();
}
} else {
jump_backward();
}
}
function stand_backward() {
if (!hit_wall) {
gotoAndStop ("stand_backward");
if (direction_left == "backward") {
movement_left();
} else {
movement_right();
}
} else {
jump_forward();
}
}
function jump() {
jump_actual_height = -jump_height;
gotoAndStop ("jump");
}
function jump_forward() {
if (!hit_wall) {
jump_actual_height = -jump_height;
jump_direction = direction_right;
gotoAndStop ("jump_forward");
} else {
jump_actual_height = -jump_height;
jump_direction = direction_left;
gotoAndStop ("jump_backward");
}
}
function jump_backward() {
if (!hit_wall) {
jump_actual_height = -jump_height;
jump_direction = direction_left;
gotoAndStop ("jump_backward");
} else {
jump_actual_height = -jump_height;
jump_direction = direction_right;
gotoAndStop ("jump_forward");
}
}
function crouch() {
gotoAndStop ("crouch");
}
function block() {
gotoAndStop("block_" + actual_position);
}
function movement_left() {
if (_x >= 0) {
_parent[character_attitude + "_shadow"]._x = _x;
_x = (_x - walk_speed);
hit_wall = false;
} else {
hit_wall = true;
}
}
function movement_right() {
if (_x <= screen_width) {
_parent[character_attitude + "_shadow"]._x = _x;
_x = (_x + walk_speed);
hit_wall = false;
} else {
hit_wall = true;
}
}
function change_xscale() {
if (_xscale == scaleSize) {
if (_parent[character_opponent]._x < _x) {
direction_left = "forward";
direction_right = "backward";
this.gotoAndStop(actual_position + "_xscale");
this.swapDepths(_parent[character_opponent]);
}
} else if (_parent[character_opponent]._x > _x) {
direction_left = "backward";
direction_right = "forward";
this.gotoAndStop(actual_position + "_xscale");
}
}
function medium_attack() {
if (chance(2)) {
MK1();
} else {
MP1();
}
}
function strong_attack() {
if (chance(2)) {
SK1();
} else {
SP1();
}
}
function MP1() {
strength = strength_original;
hit_level = "low";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist"];
dist_min = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist_min"];
if (opp_dist() > dist_min) {
gotoAndStop(actual_position + "_MP1");
} else if (actual_position == "stand") {
stand_backward();
} else {
stand();
}
}
function SP1() {
strength = strength_original + 4;
hit_level = "medium";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist"];
dist_min = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist_min"];
if (opp_dist() > dist_min) {
gotoAndStop(actual_position + "_SP1");
} else if (actual_position == "stand") {
stand_backward();
} else {
stand();
}
}
function MK1() {
strength = strength_original;
hit_level = "low";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MK_dist"];
dist_min = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MK_dist_min"];
if (opp_dist() > dist_min) {
gotoAndStop(actual_position + "_MK1");
} else if (actual_position == "stand") {
stand_backward();
} else {
stand();
}
}
function SK1() {
strength = strength_original + 4;
hit_level = "medium";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SK_dist"];
dist_min = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SK_dist_min"];
if (opp_dist() > dist_min) {
gotoAndStop(actual_position + "_SK1");
} else if (actual_position == "stand") {
stand_backward();
} else {
stand();
}
}
function f_ball() {
if (chance(2)) {
strength = strength_original + 10;
hit_level = "strong";
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist"];
fball_speed = fastball_speed;
this.gotoAndStop(actual_position + "_fire2");
} else {
strength = strength_original + 7;
hit_level = "medium";
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist"];
fball_speed = slowball_speed;
this.gotoAndStop(actual_position + "_fire1");
}
}
function fire_ball() {
fball_depth = _parent.getNextHighestDepth();
_parent.attachMovie("fireball", (_name + "fball") + fball_depth, fball_depth);
point = {x:0, y:0};
this.character.attack.localToGlobal(point);
_parent[(_name + "fball") + fball_depth]._x = point.x - 100;
_parent[(_name + "fball") + fball_depth]._y = point.y + 30;
if (_xscale != scaleSize) {
_parent[(_name + "fball") + fball_depth]._x = point.x - 80;
_parent[(_name + "fball") + fball_depth]._xscale = _parent[(_name + "fball") + fball_depth]._xscale * -1;
}
_parent[(_name + "fball") + fball_depth].fball_speed = fball_speed;
_parent[(_name + "fball") + fball_depth].strength = strength;
_parent[(_name + "fball") + fball_depth].hit_level = hit_level;
_parent[(_name + "fball") + fball_depth].fighter = _name;
_parent[(_name + "fball") + fball_depth].opponent = _parent[character_opponent]._name;
}
function attack_enterFrame() {
if (this.character.attack.hitTest(_parent[character_opponent].character.block)) {
attacking = false;
this.character.attack.nextFrame();
block_lose_life();
block_opponent_ani();
}
if (this.character.attack.hitTest(_parent[character_opponent].body)) {
attacking = false;
this.character.attack.nextFrame();
attack_lose_life();
attack_opponent_ani();
attack_effects();
check_winner();
}
}
function attack_opponent_ani() {
if (_parent[character_opponent].life > 0) {
_root[this.hit_level + "_snd"].start();
_parent[character_opponent].gotoAndStop(((_parent[character_opponent].actual_position + "_") + hit_level) + "_hit");
} else {
_root[this.hit_level + "_snd"].start();
_root.lose_snd.start();
_parent[character_opponent].gotoAndStop("lose");
}
}
function check_winner() {
if ((_parent[character_opponent].life <= 0) && (this.life > 0)) {
_global.winner = _name;
_global[_name + "_wins"] = _global[_name + "_wins"] + 2;
} else if ((_parent[character_opponent].life <= 0) && (this.life <= 0)) {
_global.winner = "tie";
_global[character_opponent + "_wins"] = _global[character_opponent + "_wins"] + 1;
_global[_name + "_wins"] = _global[_name + "_wins"] + 1;
}
}
function attack_lose_life() {
_parent[character_opponent].life = _parent[character_opponent].life - (strength - _parent[character_opponent].resistance_original);
if (_parent[character_opponent].life >= 0) {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = _parent[character_opponent].life;
} else {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = 0;
}
}
function block_enterFrame() {
if (_parent[character_opponent].attacking) {
attacking = false;
} else {
this.gotoAndStop(actual_position);
}
}
function testBlock() {
attack_dist = opp_dist();
if (attack_dist <= _parent[character_opponent].attacking_distance) {
shouldBlock = true;
} else {
shouldBlock = false;
}
return(shouldBlock);
}
function block_lose_life() {
if ((_parent[character_opponent].life - ((strength - _parent[character_opponent].resistance_original) / 2)) > 0) {
_parent[character_opponent].life = _parent[character_opponent].life - ((strength - _parent[character_opponent].resistance_original) / 2);
if (_parent[character_opponent].life >= 0) {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = _parent[character_opponent].life;
} else {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = 0;
}
}
}
function block_opponent_ani() {
if (_parent[character_opponent].life > 0) {
_root.block_snd.start(0.05);
_parent[character_opponent].gotoAndStop(("block_" + _parent[character_opponent].actual_position) + "_hit");
}
}
function lose_load() {
lose_actual_height = -15;
}
function lose_enterFrame() {
_y = (_y + lose_actual_height);
lose_actual_height = lose_actual_height + jump_vertical_speed;
if (_y >= 50) {
_y = 0;
this.gotoAndStop("lose_land");
}
}
function attack_effects() {
fx_depth = _parent.getNextHighestDepth();
_parent.attachMovie("hit_effect", "fx" + fx_depth, fx_depth);
point = {x:0, y:0};
this.character.attack.localToGlobal(point);
_parent["fx" + fx_depth]._x = ((point.x + _parent[character_opponent]._x) / 2) - 30;
_parent["fx" + fx_depth]._y = point.y + (random(10) + 30);
}
screen_width = 460;
character_attitude = _name;
var character_opponent;
life = 200;
scaleSize = 200;
strength_original = 8;
resistance_original = 4;
walk_speed_original = 10;
stand_stand_MP_dist = 166;
stand_stand_SP_dist = 211;
stand_stand_MK_dist = 203;
stand_stand_SK_dist = 279;
crouch_stand_MP_dist = 194;
crouch_stand_SP_dist = 210;
crouch_stand_MK_dist = 172;
crouch_stand_SK_dist = 275;
jump_stand_MP_dist = 155;
jump_stand_SP_dist = 195;
jump_stand_MK_dist = 155;
jump_stand_SK_dist = 200;
stand_crouch_MP_dist = 0;
stand_crouch_SP_dist = 0;
stand_crouch_MK_dist = 219;
stand_crouch_SK_dist = 295;
crouch_crouch_MP_dist = 210;
crouch_crouch_SP_dist = 226;
crouch_crouch_MK_dist = 188;
crouch_crouch_SK_dist = 291;
jump_crouch_MP_dist = 0;
jump_crouch_SP_dist = 183;
jump_crouch_MK_dist = 0;
jump_crouch_SK_dist = 0;
stand_jump_MP_dist = 200;
stand_jump_SP_dist = 221;
stand_jump_MK_dist = 286;
stand_jump_SK_dist = 301;
crouch_jump_MP_dist = 208;
crouch_jump_SP_dist = 224;
crouch_jump_MK_dist = 0;
crouch_jump_SK_dist = 289;
jump_jump_MP_dist = 146;
jump_jump_SP_dist = 160;
jump_jump_MK_dist = 152;
jump_jump_SK_dist = 183;
attacking_distance = 166;
dist_min = 0;
stand_stand_MP_dist_min = 0;
stand_stand_SP_dist_min = 0;
stand_stand_MK_dist_min = 20;
stand_stand_SK_dist_min = 40;
crouch_stand_MP_dist_min = 0;
crouch_stand_SP_dist_min = 5;
crouch_stand_MK_dist_min = 0;
crouch_stand_SK_dist_min = 36;
jump_stand_MP_dist_min = 0;
jump_stand_SP_dist_min = 0;
jump_stand_MK_dist_min = 0;
jump_stand_SK_dist_min = 0;
stand_crouch_MP_dist_min = 0;
stand_crouch_SP_dist_min = 0;
stand_crouch_MK_dist_min = 36;
stand_crouch_SK_dist_min = 56;
crouch_crouch_MP_dist_min = 5;
crouch_crouch_SP_dist_min = 21;
crouch_crouch_MK_dist_min = 0;
crouch_crouch_SK_dist_min = 52;
jump_crouch_MP_dist_min = 0;
jump_crouch_SP_dist_min = 0;
jump_crouch_MK_dist_min = 0;
jump_crouch_SK_dist_min = 0;
stand_jump_MP_dist_min = 0;
stand_jump_SP_dist_min = 0;
stand_jump_MK_dist_min = 0;
stand_jump_SK_dist_min = 0;
crouch_jump_MP_dist_min = 0;
crouch_jump_SP_dist_min = 0;
crouch_jump_MK_dist_min = 0;
crouch_jump_SK_dist_min = 0;
jump_jump_MP_dist_min = 0;
jump_jump_SP_dist_min = 0;
jump_jump_MK_dist_min = 0;
jump_jump_SK_dist_min = 0;
fastball_speed = 15;
slowball_speed = 8;
if (character_attitude == "player1") {
_x = 70;
_y = 0;
_xscale = scaleSize;
_yscale = scaleSize;
direction_left = "backward";
direction_right = "forward";
life_bar = "player1";
} else if (character_attitude == "player2") {
_x = 390;
_y = 0;
_xscale = (-scaleSize);
_yscale = scaleSize;
direction_left = "forward";
direction_right = "backward";
life_bar = "player2";
}
_parent[character_attitude + "_shadow"]._x = _x;
shadow_posY = 480;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
_parent[character_attitude + "_shadow"]._xscale = _xscale;
_parent[character_attitude + "_shadow"]._yscale = -20;
_parent[character_attitude + "_shadow"].character_parent = character_attitude;
characteristics_load();
var hit_level;
stop();
Symbol 296 MovieClip [computer] Frame 10
state = "stand";
Instance of Symbol 47 MovieClip "controler" in Symbol 296 MovieClip [computer] Frame 10
onClipEvent (load) {
_parent.AI_stand_load();
_parent.walk_speed = _parent.walk_speed_original;
}
onClipEvent (enterFrame) {
if (_parent.opp_state != "lose") {
_parent.AI_stand_enterFrame();
} else {
_parent.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
_parent.change_xscale();
}
Instance of Symbol 22 MovieClip in Symbol 296 MovieClip [computer] Frame 10
onClipEvent (enterFrame) {
_parent.AI_enterFrame();
}
Symbol 296 MovieClip [computer] Frame 20
state = "stand_forward";
Symbol 296 MovieClip [computer] Frame 30
state = "stand_backward";
Symbol 296 MovieClip [computer] Frame 40
state = "stand_MP1";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 40
onClipEvent (enterFrame) {
_parent.attack_enterFrame();
_parent.change_xscale();
}
Symbol 296 MovieClip [computer] Frame 50
state = "stand_SP1";
Symbol 296 MovieClip [computer] Frame 60
state = "stand_MK1";
Symbol 296 MovieClip [computer] Frame 70
state = "stand_SK1";
Symbol 296 MovieClip [computer] Frame 80
state = "stand_fire1";
Symbol 296 MovieClip [computer] Frame 90
state = "stand_fire2";
Symbol 296 MovieClip [computer] Frame 100
state = "stand_xscale";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 100
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 110
state = "jump_stand";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 110
onClipEvent (enterFrame) {
if (_parent.opp_state != "lose") {
_parent.AI_jump_enterFrame();
}
_parent.jump_movement();
}
Symbol 296 MovieClip [computer] Frame 120
state = "jump_backward";
Symbol 296 MovieClip [computer] Frame 130
state = "jump_forward";
Symbol 296 MovieClip [computer] Frame 140
state = "jump_MP1";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 140
onClipEvent (enterFrame) {
_parent.jump_movement();
_parent.attack_enterFrame();
}
Symbol 296 MovieClip [computer] Frame 150
state = "jump_SP1";
Symbol 296 MovieClip [computer] Frame 160
state = "jump_MK1";
Symbol 296 MovieClip [computer] Frame 170
state = "jump_SK1";
Symbol 296 MovieClip [computer] Frame 180
state = "jump_out";
Symbol 296 MovieClip [computer] Frame 190
state = "stand_crouch";
Symbol 296 MovieClip [computer] Frame 200
state = "crouch";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 200
onClipEvent (load) {
_parent.walk_speed = _parent.walk_speed_original;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
if (_parent.opp_state != "lose") {
_parent.AI_crouch_enterFrame();
} else {
_parent.gotoAndStop("crouch_stand");
}
}
Symbol 296 MovieClip [computer] Frame 210
state = "crouch_stand";
Symbol 296 MovieClip [computer] Frame 220
state = "crouch_MP1";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 220
onClipEvent (enterFrame) {
_parent.attack_enterFrame();
_parent.change_xscale();
}
Symbol 296 MovieClip [computer] Frame 230
state = "crouch_SP1";
Symbol 296 MovieClip [computer] Frame 240
state = "crouch_MK1";
Symbol 296 MovieClip [computer] Frame 250
state = "crouch_SK1";
Symbol 296 MovieClip [computer] Frame 260
state = "crouch_fire1";
Symbol 296 MovieClip [computer] Frame 270
state = "crouch_fire2";
Symbol 296 MovieClip [computer] Frame 280
state = "crouch_xscale";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 280
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 300
state = "stand_low_hit";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 300
onClipEvent (load) {
_parent.walk_speed = 2;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 310
state = "low_hit_stand";
Symbol 296 MovieClip [computer] Frame 320
state = "stand_medium_hit";
Symbol 296 MovieClip [computer] Frame 330
state = "medium_hit_stand";
Symbol 296 MovieClip [computer] Frame 340
state = "stand_strong_hit";
Symbol 296 MovieClip [computer] Frame 350
state = "strong_hit_stand";
Symbol 296 MovieClip [computer] Frame 360
state = "crouch_low_hit";
Symbol 296 MovieClip [computer] Frame 370
state = "low_hit_crouch";
Symbol 296 MovieClip [computer] Frame 380
state = "crouch_medium_hit";
Symbol 296 MovieClip [computer] Frame 390
state = "medium_hit_crouch";
Symbol 296 MovieClip [computer] Frame 400
state = "crouch_strong_hit";
Symbol 296 MovieClip [computer] Frame 410
state = "strong_hit_crouch";
Symbol 296 MovieClip [computer] Frame 420
state = "jump_low_hit";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 420
onClipEvent (load) {
_parent.walk_speed = 5;
_parent.jump_hit_load();
}
onClipEvent (enterFrame) {
_parent.jump_hit_enterFrame();
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 430
state = "low_hit_jump";
Symbol 296 MovieClip [computer] Frame 440
state = "jump_medium_hit";
Symbol 296 MovieClip [computer] Frame 450
state = "medium_hit_jump";
Symbol 296 MovieClip [computer] Frame 460
state = "jump_strong_hit";
Symbol 296 MovieClip [computer] Frame 470
state = "strong_hit_jump";
Symbol 296 MovieClip [computer] Frame 480
state = "block_stand";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 480
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.block_enterFrame();
}
Symbol 296 MovieClip [computer] Frame 490
state = "block_crouch";
Symbol 296 MovieClip [computer] Frame 500
state = "block_stand_hit";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 500
onClipEvent (load) {
_parent.walk_speed = 1;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 510
state = "block_crouch_hit";
Symbol 296 MovieClip [computer] Frame 520
state = "lose";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 520
onClipEvent (load) {
_parent.walk_speed = 7;
_parent.lose_load();
}
onClipEvent (enterFrame) {
_parent.lose_enterFrame();
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 530
state = "lose";
Instance of Symbol 47 MovieClip in Symbol 296 MovieClip [computer] Frame 530
onClipEvent (load) {
_parent.walk_speed = 4;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 296 MovieClip [computer] Frame 540
state = "lose";
Symbol 296 MovieClip [computer] Frame 550
state = "win";
Symbol 296 MovieClip [computer] Frame 560
state = "win_match";
Symbol 307 MovieClip [hit_effect] Frame 11
removeMovieClip(this);
Symbol 308 MovieClip [fighter] Frame 1
state = "start";
function shadow_enterFrame() {
_parent[character_attitude + "_shadow"].gotoAndStop(_currentframe);
}
function characteristics_load() {
actual_position = "stand";
walk_speed = walk_speed_original;
jump_height = 22;
jump_vertical_speed = 2;
jump_horiz_speed = 8;
attacking = false;
}
function key_codes_player1() {
if (_global.NumPlayers == 1) {
up = 38;
down = 40;
left = 37;
right = 39;
MP = 192;
SP = 49;
MK = 50;
SK = 51;
} else {
up = 71;
down = 66;
left = 86;
right = 78;
MP = 192;
SP = 49;
MK = 50;
SK = 51;
}
}
function key_codes_player2() {
up = 38;
down = 40;
left = 37;
right = 39;
MP = 188;
SP = 190;
MK = 191;
SK = 16;
}
function stand_load() {
characteristics_load();
}
function stand_enterFrame() {
if (Key.isDown(left)) {
if (testBlock("left")) {
this.gotoAndStop("block_" + actual_position);
} else {
this.gotoAndStop((actual_position + "_") + direction_left);
movement_left();
}
} else if (Key.isDown(right)) {
if (testBlock("right")) {
this.gotoAndStop("block_" + actual_position);
} else {
this.gotoAndStop((actual_position + "_") + direction_right);
movement_right();
}
}
if (Key.isDown(up)) {
jump_actual_height = -jump_height;
actual_position = "jump";
if (Key.isDown(left)) {
jump_direction = "backward";
this.gotoAndStop((actual_position + "_") + direction_left);
} else if (Key.isDown(right)) {
jump_direction = "forward";
this.gotoAndStop((actual_position + "_") + direction_right);
} else {
jump_direction = "stand";
this.gotoAndStop((actual_position + "_") + jump_direction);
}
} else if (Key.isDown(down)) {
actual_position = "crouch";
this.gotoAndStop("stand_crouch");
}
}
function stand_keyUp() {
if ((!Key.isDown(left)) || (!Key.isDown(right))) {
this.gotoAndStop("stand");
}
}
function crouch_enterFrame() {
if (Key.isDown(left) && (testBlock("left"))) {
this.gotoAndStop("block_" + actual_position);
} else if (Key.isDown(right) && (testBlock("right"))) {
this.gotoAndStop("block_" + actual_position);
} else if (!Key.isDown(down)) {
this.gotoAndStop("crouch_stand");
} else {
attacking = false;
this.gotoAndStop(actual_position);
}
}
function jump_enterFrame() {
if (jump_actual_height < jump_height) {
_y = (_y + jump_actual_height);
_parent[character_attitude + "_shadow"]._y = _parent[character_attitude + "_shadow"]._y - (jump_actual_height / 8);
_parent[character_attitude + "_shadow"]._x = _x;
jump_actual_height = jump_actual_height + jump_vertical_speed;
if (jump_direction == "backward") {
if (_x >= 0) {
_x = (_x - jump_horiz_speed);
}
} else if (jump_direction == "forward") {
if (_x <= screen_width) {
_x = (_x + jump_horiz_speed);
}
}
} else {
_y = 0;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
this.gotoAndStop("jump_out");
}
}
function jump_hit_load() {
jump_actual_height = -10;
}
function jump_hit_enterFrame() {
_y = (_y + jump_actual_height);
jump_actual_height = jump_actual_height + jump_vertical_speed;
if (_y >= -13) {
_y = 0;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
this.gotoAndStop("jump_out");
}
}
function attack_keyDown() {
if (Key.isDown(MP)) {
if (combo_string == combo_keys) {
combo_array = [];
strength = strength_original + 7;
hit_level = "medium";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist"];
fball_speed = slowball_speed;
this.gotoAndStop(actual_position + "_fire1");
} else {
strength = strength_original;
hit_level = "low";
this.gotoAndStop(actual_position + "_MP1");
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MP_dist"];
}
} else if (Key.isDown(SP)) {
if (combo_string == combo_keys) {
combo_array = [];
strength = strength_original + 10;
hit_level = "strong";
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist"];
fball_speed = fastball_speed;
this.gotoAndStop(actual_position + "_fire2");
} else {
strength = strength_original + 4;
hit_level = "medium";
this.gotoAndStop(actual_position + "_SP1");
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SP_dist"];
}
} else if (Key.isDown(MK)) {
strength = strength_original;
hit_level = "low";
this.gotoAndStop(actual_position + "_MK1");
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_MK_dist"];
} else if (Key.isDown(SK)) {
strength = strength_original + 4;
hit_level = "medium";
this.gotoAndStop(actual_position + "_SK1");
attacking = true;
attacking_distance = this[((actual_position + "_") + _parent[character_opponent].actual_position) + "_SK_dist"];
} else {
attacking = false;
}
}
function attack_enterFrame() {
if (this.character.attack.hitTest(_parent[character_opponent].character.block)) {
attacking = false;
this.character.attack.nextFrame();
block_lose_life();
block_opponent_ani();
}
if (this.character.attack.hitTest(_parent[character_opponent].body)) {
attacking = false;
this.character.attack.nextFrame();
attack_lose_life();
attack_opponent_ani();
attack_effects();
check_winner();
}
}
function attack_opponent_ani() {
if (_parent[character_opponent].life > 0) {
_root[this.hit_level + "_snd"].start();
_parent[character_opponent].gotoAndStop(((_parent[character_opponent].actual_position + "_") + hit_level) + "_hit");
} else {
_root[this.hit_level + "_snd"].start();
_root.lose_snd.start();
_parent[character_opponent].gotoAndStop("lose");
}
}
function check_winner() {
if ((_parent[character_opponent].life <= 0) && (this.life > 0)) {
_global.winner = _name;
_global[_name + "_wins"] = _global[_name + "_wins"] + 2;
} else if ((_parent[character_opponent].life <= 0) && (this.life <= 0)) {
_global.winner = "tie";
_global[character_opponent + "_wins"] = _global[character_opponent + "_wins"] + 1;
_global[_name + "_wins"] = _global[_name + "_wins"] + 1;
}
}
function attack_lose_life() {
_parent[character_opponent].life = _parent[character_opponent].life - (strength - _parent[character_opponent].resistance_original);
if (_parent[character_opponent].life >= 0) {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = _parent[character_opponent].life;
} else {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = 0;
}
}
function movement_left() {
if (_x >= 0) {
_parent[character_attitude + "_shadow"]._x = _x;
_x = (_x - walk_speed);
}
}
function movement_right() {
if (_x <= screen_width) {
_parent[character_attitude + "_shadow"]._x = _x;
_x = (_x + walk_speed);
}
}
function change_xscale() {
if (_xscale == scaleSize) {
if (_parent[character_opponent]._x < _x) {
direction_left = "forward";
direction_right = "backward";
this.gotoAndStop(actual_position + "_xscale");
this.swapDepths(_parent[character_opponent]);
}
} else if (_parent[character_opponent]._x > _x) {
direction_left = "backward";
direction_right = "forward";
this.gotoAndStop(actual_position + "_xscale");
}
}
function block_enterFrame() {
if (_parent[character_opponent].attacking) {
if (Key.isDown(left) || (Key.isDown(right))) {
attacking = false;
}
} else {
this.gotoAndStop(actual_position);
}
}
function testBlock(blockDirection) {
attack_dist = Math.sqrt(Math.pow(_parent[character_opponent]._x - this._x, 2) + Math.pow(_parent[character_opponent]._y - this._y, 2));
if (_parent[character_opponent].attacking) {
if (this["direction_" + blockDirection] == "backward") {
if (attack_dist <= _parent[character_opponent].attacking_distance) {
shouldBlock = true;
} else {
shouldBlock = false;
}
} else {
shouldBlock = false;
}
} else {
shouldBlock = false;
}
return(shouldBlock);
}
function block_lose_life() {
if ((_parent[character_opponent].life - ((strength - _parent[character_opponent].resistance_original) / 2)) > 0) {
_parent[character_opponent].life = _parent[character_opponent].life - ((strength - _parent[character_opponent].resistance_original) / 2);
if (_parent[character_opponent].life >= 0) {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = _parent[character_opponent].life;
} else {
_parent._parent.life_bar[character_opponent + "_life_bar"]._width = 0;
}
}
}
function block_opponent_ani() {
if (_parent[character_opponent].life > 0) {
_root.block_snd.start(0.05);
_parent[character_opponent].gotoAndStop(("block_" + _parent[character_opponent].actual_position) + "_hit");
}
}
function lose_load() {
lose_actual_height = -15;
}
function lose_enterFrame() {
_y = (_y + lose_actual_height);
lose_actual_height = lose_actual_height + jump_vertical_speed;
if (_y >= 50) {
_y = 0;
this.gotoAndStop("lose_land");
}
}
function combo_enterFrame() {
if (Key.isDown(right)) {
key_pressed = direction_right;
} else if (Key.isDown(left)) {
key_pressed = direction_left;
} else {
key_pressed = "+";
}
add_comboKey();
}
function add_comboKey() {
if (combo_array[0] != key_pressed) {
combo_array.unshift(key_pressed);
}
combo_timer++;
if (combo_timer >= combo_limit) {
combo_timer = 0;
combo_array.pop();
}
if (combo_array.length > combo_length) {
combo_array.pop();
}
combo_array.reverse();
combo_string = combo_array.join("");
combo_array.reverse();
}
function fire_ball() {
fball_depth = _parent.getNextHighestDepth();
_parent.attachMovie("fireball", (_name + "fball") + fball_depth, fball_depth);
point = {x:0, y:0};
this.character.attack.localToGlobal(point);
_parent[(_name + "fball") + fball_depth]._x = point.x - 100;
_parent[(_name + "fball") + fball_depth]._y = point.y + 30;
if (_xscale != scaleSize) {
_parent[(_name + "fball") + fball_depth]._xscale = _parent[(_name + "fball") + fball_depth]._xscale * -1;
}
_parent[(_name + "fball") + fball_depth].fball_speed = fball_speed;
_parent[(_name + "fball") + fball_depth].strength = strength;
_parent[(_name + "fball") + fball_depth].hit_level = hit_level;
_parent[(_name + "fball") + fball_depth].fighter = _name;
_parent[(_name + "fball") + fball_depth].opponent = _parent[character_opponent]._name;
}
function attack_effects() {
fx_depth = _parent.getNextHighestDepth();
_parent.attachMovie("hit_effect", "fx" + fx_depth, fx_depth);
point = {x:0, y:0};
this.character.attack.localToGlobal(point);
_parent["fx" + fx_depth]._x = ((point.x + _parent[character_opponent]._x) / 2) - 30;
_parent["fx" + fx_depth]._y = point.y + (random(10) + 30);
}
screen_width = 460;
character_attitude = _name;
var character_opponent;
life = 200;
scaleSize = 200;
strength_original = 8;
resistance_original = 4;
walk_speed_original = 10;
stand_stand_MP_dist = 166;
stand_stand_SP_dist = 211;
stand_stand_MK_dist = 203;
stand_stand_SK_dist = 279;
crouch_stand_MP_dist = 194;
crouch_stand_SP_dist = 210;
crouch_stand_MK_dist = 172;
crouch_stand_SK_dist = 275;
jump_stand_MP_dist = 155;
jump_stand_SP_dist = 195;
jump_stand_MK_dist = 155;
jump_stand_SK_dist = 200;
stand_crouch_MP_dist = 0;
stand_crouch_SP_dist = 0;
stand_crouch_MK_dist = 219;
stand_crouch_SK_dist = 295;
crouch_crouch_MP_dist = 210;
crouch_crouch_SP_dist = 226;
crouch_crouch_MK_dist = 188;
crouch_crouch_SK_dist = 291;
jump_crouch_MP_dist = 0;
jump_crouch_SP_dist = 183;
jump_crouch_MK_dist = 0;
jump_crouch_SK_dist = 0;
stand_jump_MP_dist = 200;
stand_jump_SP_dist = 221;
stand_jump_MK_dist = 286;
stand_jump_SK_dist = 301;
crouch_jump_MP_dist = 208;
crouch_jump_SP_dist = 224;
crouch_jump_MK_dist = 0;
crouch_jump_SK_dist = 289;
jump_jump_MP_dist = 146;
jump_jump_SP_dist = 160;
jump_jump_MK_dist = 152;
jump_jump_SK_dist = 183;
fastball_speed = 15;
slowball_speed = 8;
if (character_attitude == "player1") {
_x = 70;
_y = 0;
_xscale = scaleSize;
_yscale = scaleSize;
direction_left = "backward";
direction_right = "forward";
key_codes_player1();
life_bar = "player1";
} else if (character_attitude == "player2") {
_x = 390;
_y = 0;
_xscale = (-scaleSize);
_yscale = scaleSize;
direction_left = "forward";
direction_right = "backward";
key_codes_player2();
life_bar = "player2";
}
_parent[character_attitude + "_shadow"]._x = _x;
shadow_posY = 480;
_parent[character_attitude + "_shadow"]._y = shadow_posY;
_parent[character_attitude + "_shadow"]._xscale = _xscale;
_parent[character_attitude + "_shadow"]._yscale = -20;
_parent[character_attitude + "_shadow"].character_parent = character_attitude;
characteristics_load();
var hit_level;
combo_array = new Array();
combo_timer = 0;
combo_limit = 24;
combo_keys = "backward+forward+";
combo_length = 4;
stop();
Symbol 308 MovieClip [fighter] Frame 10
state = "stand";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 10
onClipEvent (load) {
_parent.stand_load();
_parent.walk_speed = _parent.walk_speed_original;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
if (_parent._parent[_parent.character_opponent].state != "lose") {
_parent.stand_enterFrame();
} else {
_parent.gotoAndStop("win");
}
}
onClipEvent (keyDown) {
if (_parent._parent[_parent.character_opponent].state != "lose") {
_parent.attack_keyDown();
}
}
onClipEvent (keyUp) {
if (_parent._parent[_parent.character_opponent].state != "lose") {
_parent.stand_keyUp();
}
}
Instance of Symbol 22 MovieClip in Symbol 308 MovieClip [fighter] Frame 10
onClipEvent (enterFrame) {
_parent.combo_enterFrame();
}
Symbol 308 MovieClip [fighter] Frame 20
state = "stand_forward";
Symbol 308 MovieClip [fighter] Frame 30
state = "stand_backward";
Symbol 308 MovieClip [fighter] Frame 40
state = "stand_MP1";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 40
onClipEvent (enterFrame) {
_parent.attack_enterFrame();
}
Symbol 308 MovieClip [fighter] Frame 50
state = "stand_SP1";
Symbol 308 MovieClip [fighter] Frame 60
state = "stand_MK1";
Symbol 308 MovieClip [fighter] Frame 70
state = "stand_SK1";
Symbol 308 MovieClip [fighter] Frame 80
state = "stand_fire1";
Symbol 308 MovieClip [fighter] Frame 90
state = "stand_fire2";
Symbol 308 MovieClip [fighter] Frame 100
state = "stand_xscale";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 100
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 110
state = "jump_stand";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 110
onClipEvent (enterFrame) {
_parent.jump_enterFrame();
}
onClipEvent (keyDown) {
if (_parent._parent[_parent.character_opponent].state != "lose") {
_parent.attack_keyDown();
}
}
Symbol 308 MovieClip [fighter] Frame 120
state = "jump_backward";
Symbol 308 MovieClip [fighter] Frame 130
state = "jump_forward";
Symbol 308 MovieClip [fighter] Frame 140
state = "jump_MP1";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 140
onClipEvent (enterFrame) {
_parent.jump_enterFrame();
_parent.attack_enterFrame();
}
Symbol 308 MovieClip [fighter] Frame 150
state = "jump_SP1";
Symbol 308 MovieClip [fighter] Frame 160
state = "jump_MK1";
Symbol 308 MovieClip [fighter] Frame 170
state = "jump_SK1";
Symbol 308 MovieClip [fighter] Frame 180
state = "jump_out";
Symbol 308 MovieClip [fighter] Frame 190
state = "stand_crouch";
Symbol 308 MovieClip [fighter] Frame 200
state = "crouch";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 200
onClipEvent (load) {
_parent.walk_speed = _parent.walk_speed_original;
}
onClipEvent (enterFrame) {
_parent.change_xscale();
if (_parent._parent[_parent.character_opponent].state != "lose") {
_parent.crouch_enterFrame();
} else {
_parent.gotoAndStop("crouch_stand");
}
}
onClipEvent (keyDown) {
_parent.attack_keyDown();
}
Symbol 308 MovieClip [fighter] Frame 210
state = "crouch_stand";
Symbol 308 MovieClip [fighter] Frame 220
state = "crouch_MP1";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 220
onClipEvent (enterFrame) {
_parent.attack_enterFrame();
}
Symbol 308 MovieClip [fighter] Frame 230
state = "crouch_SP1";
Symbol 308 MovieClip [fighter] Frame 240
state = "crouch_MK1";
Symbol 308 MovieClip [fighter] Frame 250
state = "crouch_SK1";
Symbol 308 MovieClip [fighter] Frame 260
state = "crouch_fire1";
Symbol 308 MovieClip [fighter] Frame 270
state = "crouch_fire2";
Symbol 308 MovieClip [fighter] Frame 280
state = "crouch_xscale";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 280
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 300
state = "stand_low_hit";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 300
onClipEvent (load) {
_parent.walk_speed = 2;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 310
state = "low_hit_stand";
Symbol 308 MovieClip [fighter] Frame 320
state = "stand_medium_hit";
Symbol 308 MovieClip [fighter] Frame 330
state = "medium_hit_stand";
Symbol 308 MovieClip [fighter] Frame 340
state = "stand_strong_hit";
Symbol 308 MovieClip [fighter] Frame 350
state = "strong_hit_stand";
Symbol 308 MovieClip [fighter] Frame 360
state = "crouch_low_hit";
Symbol 308 MovieClip [fighter] Frame 370
state = "low_hit_crouch";
Symbol 308 MovieClip [fighter] Frame 380
state = "crouch_medium_hit";
Symbol 308 MovieClip [fighter] Frame 390
state = "medium_hit_crouch";
Symbol 308 MovieClip [fighter] Frame 400
state = "crouch_strong_hit";
Symbol 308 MovieClip [fighter] Frame 410
state = "strong_hit_crouch";
Symbol 308 MovieClip [fighter] Frame 420
state = "jump_low_hit";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 420
onClipEvent (load) {
_parent.walk_speed = 5;
_parent.jump_hit_load();
}
onClipEvent (enterFrame) {
_parent.jump_hit_enterFrame();
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 430
state = "low_hit_jump";
Symbol 308 MovieClip [fighter] Frame 440
state = "jump_medium_hit";
Symbol 308 MovieClip [fighter] Frame 450
state = "medium_hit_jump";
Symbol 308 MovieClip [fighter] Frame 460
state = "jump_strong_hit";
Symbol 308 MovieClip [fighter] Frame 470
state = "strong_hit_jump";
Symbol 308 MovieClip [fighter] Frame 480
state = "block_stand";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 480
onClipEvent (enterFrame) {
_parent.change_xscale();
_parent.block_enterFrame();
}
Symbol 308 MovieClip [fighter] Frame 490
state = "block_crouch";
Symbol 308 MovieClip [fighter] Frame 500
state = "block_stand_hit";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 500
onClipEvent (load) {
_parent.walk_speed = 1;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 510
state = "block_crouch_hit";
Symbol 308 MovieClip [fighter] Frame 520
state = "lose";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 520
onClipEvent (load) {
_parent.walk_speed = 7;
_parent.lose_load();
}
onClipEvent (enterFrame) {
_parent.lose_enterFrame();
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 530
state = "lose";
Instance of Symbol 47 MovieClip in Symbol 308 MovieClip [fighter] Frame 530
onClipEvent (load) {
_parent.walk_speed = 4;
}
onClipEvent (enterFrame) {
if (_parent._xscale == _parent.scaleSize) {
_parent.movement_left();
} else {
_parent.movement_right();
}
}
Symbol 308 MovieClip [fighter] Frame 540
state = "lose";
Symbol 308 MovieClip [fighter] Frame 550
state = "win";
Symbol 308 MovieClip [fighter] Frame 560
state = "win_match";
Symbol 309 MovieClip [shadow] Frame 1
stop();
Instance of Symbol 22 MovieClip in Symbol 309 MovieClip [shadow] Frame 1
onClipEvent (enterFrame) {
_parent._parent[_parent.character_parent].shadow_enterFrame();
}
Symbol 309 MovieClip [shadow] Frame 10
state = "stand";
Symbol 309 MovieClip [shadow] Frame 20
state = "stand_forward";
Symbol 309 MovieClip [shadow] Frame 30
state = "stand_backward";
Symbol 309 MovieClip [shadow] Frame 40
state = "stand_MP1";
Symbol 309 MovieClip [shadow] Frame 50
state = "stand_SP1";
Symbol 309 MovieClip [shadow] Frame 60
state = "stand_MK1";
Symbol 309 MovieClip [shadow] Frame 70
state = "stand_SK1";
Symbol 309 MovieClip [shadow] Frame 80
state = "stand_fire1";
Symbol 309 MovieClip [shadow] Frame 90
state = "stand_fire2";
Symbol 309 MovieClip [shadow] Frame 100
state = "stand_xscale";
Symbol 309 MovieClip [shadow] Frame 110
state = "jump_stand";
Symbol 309 MovieClip [shadow] Frame 120
state = "jump_backward";
Symbol 309 MovieClip [shadow] Frame 130
state = "jump_forward";
Symbol 309 MovieClip [shadow] Frame 140
state = "jump_MP1";
Symbol 309 MovieClip [shadow] Frame 150
state = "jump_SP1";
Symbol 309 MovieClip [shadow] Frame 160
state = "jump_MK1";
Symbol 309 MovieClip [shadow] Frame 170
state = "jump_SK1";
Symbol 309 MovieClip [shadow] Frame 180
state = "jump_out";
Symbol 309 MovieClip [shadow] Frame 190
state = "stand_crouch";
Symbol 309 MovieClip [shadow] Frame 200
state = "crouch";
Symbol 309 MovieClip [shadow] Frame 210
state = "crouch_stand";
Symbol 309 MovieClip [shadow] Frame 220
state = "crouch_MP1";
Symbol 309 MovieClip [shadow] Frame 230
state = "crouch_SP1";
Symbol 309 MovieClip [shadow] Frame 240
state = "crouch_MK1";
Symbol 309 MovieClip [shadow] Frame 250
state = "crouch_SK1";
Symbol 309 MovieClip [shadow] Frame 260
state = "crouch_fire1";
Symbol 309 MovieClip [shadow] Frame 270
state = "crouch_fire2";
Symbol 309 MovieClip [shadow] Frame 280
state = "crouch_xscale";
Symbol 309 MovieClip [shadow] Frame 300
state = "stand_low_hit";
Symbol 309 MovieClip [shadow] Frame 310
state = "low_hit_stand";
Symbol 309 MovieClip [shadow] Frame 320
state = "stand_medium_hit";
Symbol 309 MovieClip [shadow] Frame 330
state = "medium_hit_stand";
Symbol 309 MovieClip [shadow] Frame 340
state = "stand_strong_hit";
Symbol 309 MovieClip [shadow] Frame 350
state = "strong_hit_stand";
Symbol 309 MovieClip [shadow] Frame 360
state = "crouch_low_hit";
Symbol 309 MovieClip [shadow] Frame 370
state = "low_hit_crouch";
Symbol 309 MovieClip [shadow] Frame 380
state = "crouch_medium_hit";
Symbol 309 MovieClip [shadow] Frame 390
state = "medium_hit_crouch";
Symbol 309 MovieClip [shadow] Frame 400
state = "crouch_strong_hit";
Symbol 309 MovieClip [shadow] Frame 410
state = "strong_hit_crouch";
Symbol 309 MovieClip [shadow] Frame 420
state = "jump_low_hit";
Symbol 309 MovieClip [shadow] Frame 430
state = "low_hit_jump";
Symbol 309 MovieClip [shadow] Frame 440
state = "jump_medium_hit";
Symbol 309 MovieClip [shadow] Frame 450
state = "medium_hit_jump";
Symbol 309 MovieClip [shadow] Frame 460
state = "jump_strong_hit";
Symbol 309 MovieClip [shadow] Frame 470
state = "strong_hit_jump";
Symbol 309 MovieClip [shadow] Frame 480
state = "block_stand";
Symbol 309 MovieClip [shadow] Frame 490
state = "block_crouch";
Symbol 309 MovieClip [shadow] Frame 500
state = "block_stand_hit";
Symbol 309 MovieClip [shadow] Frame 510
state = "block_crouch_hit";
Symbol 309 MovieClip [shadow] Frame 520
state = "lose";
Symbol 309 MovieClip [shadow] Frame 530
state = "lose";
Symbol 309 MovieClip [shadow] Frame 540
state = "lose";
Symbol 309 MovieClip [shadow] Frame 550
state = "win";
Symbol 309 MovieClip [shadow] Frame 560
state = "win_match";
Symbol 314 Button
on (release) {
_root.btn_snd.start();
gotoAndPlay ("num_players");
}
Symbol 318 Button
on (release) {
_root.btn_snd.start();
gotoAndPlay ("controls");
}
Symbol 322 Button
on (release) {
_root.btn_snd.start();
gotoAndPlay ("about");
}
Symbol 329 Button
on (release) {
if (_root.mute_mc._currentframe == 1) {
_root.VolMuted = true;
_global.Volume = 0;
_root.fight_music.setVolume(_global.Volume);
_root.btn_snd.setVolume(_global.Volume);
_root.win_music.setVolume(_global.Volume);
_root.low_snd.setVolume(_global.Volume);
_root.medium_snd.setVolume(_global.Volume);
_root.strong_snd.setVolume(_global.Volume);
_root.block_snd.setVolume(_global.Volume);
_root.lose_snd.setVolume(Volume * 2);
_root.mute_mc.gotoAndStop(2);
} else {
_root.VolMuted = false;
_global.Volume = Math.round(_root.perc * 100);
_root.fight_music.setVolume(_global.Volume);
_root.btn_snd.setVolume(_global.Volume);
_root.win_music.setVolume(_global.Volume);
_root.low_snd.setVolume(_global.Volume);
_root.medium_snd.setVolume(_global.Volume);
_root.strong_snd.setVolume(_global.Volume);
_root.block_snd.setVolume(_global.Volume);
_root.lose_snd.setVolume(_global.Volume * 2);
_root.mute_mc.gotoAndStop(1);
}
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 334 Button
on (release) {
_root.btn_snd.start();
_root.btn_snd.setVolume(_global.Volume);
gotoAndPlay ("menu");
}
Symbol 361 Button
on (release) {
_global.NumPlayers = 1;
_root.btn_snd.start();
_root.fight_music.stop();
_root.fight_music.setVolume(0);
gotoAndPlay ("matchStart");
}
Symbol 365 Button
on (release) {
_global.NumPlayers = 2;
_root.btn_snd.start();
_root.fight_music.stop();
_root.fight_music.setVolume(0);
gotoAndPlay ("matchStart");
}
Symbol 368 Button
on (release) {
_global.NumPlayers = 0;
_root.fight_music.stop();
_root.fight_music.setVolume(0);
gotoAndPlay ("matchStart");
}
Symbol 370 Button
on (release) {
_root.fight_music.setVolume(0);
_root.fight_music.stop();
_root.win_music.setVolume(0);
_root.win_music.stop();
_root.medium_snd.setVolume(0);
_parent.gotoAndPlay("menu");
}
Symbol 371 MovieClip Frame 10
stop();
Symbol 372 Button
on (release) {
_root.fight_music.setVolume(0);
_root.fight_music.stop();
_root.win_music.setVolume(0);
_root.win_music.stop();
_root.medium_snd.setVolume(0);
_parent.gotoAndPlay("menu");
}
Symbol 373 MovieClip Frame 21
gotoAndPlay ("start");
if (_parent.MCs.player1.state == "start") {
gotoAndPlay ("hide");
} else {
gotoAndStop ("hidden");
}
Symbol 373 MovieClip Frame 100
stop();
Symbol 376 MovieClip Frame 1
Symbol 382 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 89
_global.roundStart = false;
_root.gotoAndStop("fight");
Instance of Symbol 22 MovieClip "fadeMC" in Symbol 390 MovieClip Frame 49
onClipEvent (load) {
_root.fight_music.setVolume(_global.Volume);
}
onClipEvent (enterFrame) {
if (_root.fight_music.getVolume() > 0) {
_root.fight_music.setVolume(_root.fight_music.getVolume() - 20);
} else {
_root.fight_music.stop();
}
}
Symbol 390 MovieClip Frame 60
_global.round_num = _global.round_num + 1;
if ((_global.player1_wins >= 4) || (_global.player2_wins >= 4)) {
_parent.gotoAndPlay("matchWin");
} else if ((_global.player1_wins == 3) && (_global.player2_wins == 3)) {
_parent.gotoAndPlay("matchWin");
} else {
_parent.gotoAndPlay("matchReset");
}
Instance of Symbol 22 MovieClip in Symbol 392 MovieClip Frame 76
/* no clip actions */
Symbol 392 MovieClip Frame 96
_parent.gotoAndPlay("reMatch");
_root.win_music.stop();
Symbol 396 Button
on (release) {
_root.win_music.stop();
_global.player1_wins = 0;
_global.player2_wins = 0;
_global.round_num = 1;
_global.roundStart = false;
gotoAndPlay ("matchReset");
}
Symbol 400 Button
on (release) {
_root.win_music.stop();
gotoAndPlay ("menu");
}