Frame 1
_quality = "BEST";
var soundsSize = 0;
soundsmc.getBytesTotal();
var soundsLoaded = 0;
soundsmc.getBytesLoaded();
var total = (_root.getBytesTotal() + soundsSize);
var loaded = (_root.getBytesLoaded() + soundsLoaded);
var kilobytes = Math.ceil(total / 1024);
var percentLoaded = Math.ceil((loaded / total) * 100);
_root.messages = ((("loading " + percentLoaded) + "% of ") + kilobytes) + "k";
if (loaded >= total) {
_root.gotoAndStop(3);
}
Frame 2
_quality = "BEST";
gotoAndPlay (1);
Frame 3
_quality = "BEST";
stop();
Frame 4
_quality = "BEST";
stop();
Frame 5
_quality = "BEST";
stop();
Frame 6
function player1Keys() {
var p1left = Key.isDown(65);
var p1right = Key.isDown(68);
var p1punch = Key.isDown(70);
var p1kick = Key.isDown(71);
var p1block = Key.isDown(83);
var p1jump = Key.isDown(87);
if (p1left) {
_root.p1.leftButtonDown();
_root.p1.rightButtonUp();
} else if (p1right) {
_root.p1.rightButtonDown();
_root.p1.leftButtonUp();
} else {
_root.p1.leftButtonUp();
_root.p1.rightButtonUp();
}
if (p1punch) {
if (p1kick) {
_root.p1.specialButtonDown();
} else if (!holdpunch1) {
_root.p1.punchButtonDown();
holdpunch1 = true;
}
} else if (p1kick) {
_root.p1.kickButtonDown();
} else if (p1block) {
_root.p1.blockButtonDown();
} else if (p1jump) {
_root.p1.jumpButtonDown();
} else {
_root.p1.blockButtonUp();
}
if (!p1punch) {
holdpunch1 = false;
}
}
function player2Keys() {
var p2left = Key.isDown(37);
var p2right = Key.isDown(39);
var p2punch = Key.isDown(188);
var p2kick = Key.isDown(190);
var p2block = Key.isDown(40);
var p2jump = Key.isDown(38);
if (p2left) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else if (p2right) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else {
_root.p2.leftButtonUp();
_root.p2.rightButtonUp();
}
if (p2punch) {
if (p2kick) {
_root.p2.specialButtonDown();
} else if (!holdpunch2) {
_root.p2.punchButtonDown();
holdpunch2 = true;
}
} else if (p2kick) {
_root.p2.kickButtonDown();
} else if (p2block) {
_root.p2.blockButtonDown();
} else if (p2jump) {
_root.p2.jumpButtonDown();
} else {
_root.p2.blockButtonUp();
}
if (!p2punch) {
holdpunch2 = false;
}
}
function CPUKeys() {
var randomNumber = Math.round(Math.random() * 100);
var cx = _root.p2._x;
var px = _root.p1._x;
var deltap = Math.abs(cx - px);
var blocking = false;
var closeness = 130;
var p1cf = p1._currentframe;
var p2cf = p2._currentframe;
var blockChance = 3;
var punchChance = 10;
var kickChance = 10;
var specialChance = 10;
var minjig = 5;
var randjig = 50;
var jigChance = 144;
var punchRange = 175;
var kickRange = 255;
var specialRange = 150;
if (_root.CPUDifficulty == 2) {
blockChance = 10;
punchChance = 15;
kickChance = 15;
specialChance = 15;
jigChance = 264;
} else if (_root.CPUDifficulty == 3) {
blockChance = 80;
punchChance = 80;
kickChance = 80;
specialChance = 80;
jigChance = 528;
}
if (p2._name == "erik2") {
jigChance = 96;
punchRange = 185;
kickRange = 235;
specialRange = 400;
closeness = 350;
}
if (p2._name == "marie2") {
if (p1._name == "erik1") {
jigChance = jigChance + 130;
}
punchRange = 175;
kickRange = 235;
specialRange = 375;
closeness = 325;
}
if (p2._name == "emil2") {
jigChance = jigChance + 500;
punchRange = 190;
kickRange = 255;
specialRange = 210;
specialChance = 1;
closeness = 150;
}
if (p2._name == "ronnie2") {
jigChance = jigChance + 250;
punchRange = 185;
kickRange = 180;
specialRange = 215;
closeness = 200;
}
var specialFinish = p1.specialFinish;
if (p1._name == "erik1") {
specialFinish = p1.specialDamageFinish;
} else {
specialFinish = p1.specialFinish;
}
if (blockChance >= randomNumber) {
if (((p1._currentframe >= (p1.specialStart + 8)) && (specialFinish >= p1._currentframe)) && (deltap < 350)) {
_root.p2.blockButtonDown();
blocking = true;
} else if (((((p1cf >= p1.punchStart) && (p1.punchFinish >= p1cf)) && (p1cf >= p1.kickStart)) && (p1.kickFinish >= p1cf)) && (deltap < 250)) {
_root.p2.blockButtonDown();
blocking = true;
} else if ((p2._name == "erik2") && (deltap < 180)) {
if (px < cx) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else if (cx < px) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
}
_root.p2.blockButtonDown();
blocking = true;
}
}
if (p1._name == "erik1") {
jigChance = jigChance + 500;
}
if ((Math.round(Math.random() * jigChance) == 1) || (0 < _root.specialjig)) {
if (_root.specialjig == 0) {
_root.jigsize = minjig + Math.round(Math.random() * randjig);
}
_root.specialjig = _root.specialjig + 1;
if (px < (cx - closeness)) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else if (((cx + closeness) + 35) < px) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else {
_root.specialjig = 0;
}
if (_root.specialjig >= _root.jigsize) {
_root.specialjig = 0;
_root.jigsize = 0;
}
return(undefined);
}
if (((_root.p2._currentframe >= _root.p2.blockStart) && (_root.p2.blockFinish >= _root.p2._currentframe)) && (blocking != true)) {
if (50 >= randomNumber) {
_root.p2.blockButtonUp();
}
}
if (deltap < punchRange) {
if (punchChance >= randomNumber) {
_root.p2.punchButtonDown();
return(undefined);
}
}
if (deltap < kickRange) {
if (randomNumber < kickChance) {
_root.p2.kickButtonDown();
return(undefined);
}
}
if (deltap < specialRange) {
if (specialChance >= randomNumber) {
_root.p2.specialButtonDown();
return(undefined);
}
}
if (px < (cx - closeness)) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else if (((cx + closeness) + 35) < px) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
}
}
function findPressedKeys() {
player1Keys();
player2Keys();
}
function findPressedKeys2() {
player1Keys();
CPUKeys();
}
function p1Hit(damage) {
if (damage >= _root.pow1._width) {
_root.pow1._width = 0;
} else {
_root.pow1._width = _root.pow1._width - damage;
_root.pow1._x = _root.pow1._x - (damage / 2);
}
}
function p2Hit(damage) {
if (damage >= _root.pow2._width) {
_root.pow2._width = 0;
} else {
_root.pow2._width = _root.pow2._width - damage;
_root.pow2._x = _root.pow2._x - (damage / 2);
}
}
function getEnergy1() {
return(_root.pow1._width);
}
function getEnergy2() {
return(_root.pow2._width);
}
function erikKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function erikPunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function erikSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function erikRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function erikLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function erikJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function erikBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function erikRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function erikLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function erikBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function erikWasHit() {
this.gotoAndPlay(this.hitStart);
}
function erikGetDamage(frame) {
if (frame == 131) {
return(4);
}
if (frame == 139) {
return(4);
}
if (frame == 140) {
return(4);
}
if (frame == 41) {
return(6);
}
if (frame == 49) {
return(6);
}
if (frame == 57) {
return(6);
}
if (frame == 65) {
return(6);
}
return(0);
}
function erikGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.2);
}
return(1);
}
function erikIsFlying() {
if ((this._currentframe >= 154) && (163 >= this._currentframe)) {
return(true);
}
return(false);
}
function erikIsInvincible() {
if ((this._currentframe >= 41) && (65 >= this._currentframe)) {
return(true);
}
return(false);
}
function erikGetMovement() {
return(11);
}
function addMethodsErik(player) {
player.leftButtonDown = erikLeftButtonDown;
player.rightButtonDown = erikRightButtonDown;
player.punchButtonDown = erikPunchButtonDown;
player.kickButtonDown = erikKickButtonDown;
player.specialButtonDown = erikSpecialButtonDown;
player.jumpButtonDown = erikJumpButtonDown;
player.blockButtonDown = erikBlockButtonDown;
player.blockButtonUp = erikBlockButtonUp;
player.wasHit = erikWasHit;
player.leftButtonUp = erikLeftButtonUp;
player.rightButtonUp = erikRightButtonUp;
player.getDamage = erikGetDamage;
player.getBlockModifier = erikGetBlockModifier;
player.isFlying = erikIsFlying;
player.isInvincible = erikIsInvincible;
player.getMovement = erikGetMovement;
player.kickSound = kick2;
player.punchSound = punch5;
player.specialSound = special3;
player.hurtSound = hurt1;
}
function addMemberVarsErik(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 15;
player.walkBackwardStart = 16;
player.walkBackwardFinish = 30;
player.standStart = 168;
player.standFinish = 173;
player.jumpStart = 149;
player.jumpFinish = 167;
player.blockStart = 174;
player.blockFinish = 177;
player.hitStart = 144;
player.hitFinish = 148;
player.punchStart = 129;
player.punchFinish = 134;
player.kickStart = 135;
player.kickFinish = 143;
player.specialStart = 31;
player.specialFinish = 128;
player.specialDamageFinish = 65;
player.gotoAndPlay(168);
}
function emilKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function emilPunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function emilSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function emilRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function emilLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function emilJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function emilBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function emilRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function emilLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function emilBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function emilWasHit() {
this.gotoAndPlay(this.hitStart);
}
function emilGetDamage(frame) {
if (frame == 29) {
return(5);
}
if (frame == 51) {
return(5);
}
if (frame == 52) {
return(5);
}
if (frame == 43) {
return(20);
}
return(0);
}
function emilGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.25);
}
return(1);
}
function emilIsFlying() {
if ((this._currentframe >= 84) && (92 >= this._currentframe)) {
return(true);
}
return(false);
}
function emilIsInvincible() {
if ((this._currentframe >= 39) && (46 >= this._currentframe)) {
return(true);
}
return(false);
}
function emilGetMovement() {
return(8);
}
function addMethodsEmil(player) {
player.leftButtonDown = emilLeftButtonDown;
player.rightButtonDown = emilRightButtonDown;
player.punchButtonDown = emilPunchButtonDown;
player.kickButtonDown = emilKickButtonDown;
player.specialButtonDown = emilSpecialButtonDown;
player.jumpButtonDown = emilJumpButtonDown;
player.blockButtonDown = emilBlockButtonDown;
player.blockButtonUp = emilBlockButtonUp;
player.wasHit = emilWasHit;
player.leftButtonUp = emilLeftButtonUp;
player.rightButtonUp = emilRightButtonUp;
player.getDamage = emilGetDamage;
player.getBlockModifier = emilGetBlockModifier;
player.isFlying = emilIsFlying;
player.isInvincible = emilIsInvincible;
player.getMovement = emilGetMovement;
player.kickSound = kick2;
player.punchSound = punch3;
player.specialSound = special1;
player.hurtSound = hurt2;
}
function addMemberVarsEmil(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 19;
player.walkBackwardStart = 56;
player.walkBackwardFinish = 69;
player.standStart = 20;
player.standFinish = 27;
player.jumpStart = 78;
player.jumpFinish = 96;
player.blockStart = 74;
player.blockFinish = 77;
player.hitStart = 70;
player.hitFinish = 73;
player.punchStart = 28;
player.punchFinish = 30;
player.kickStart = 47;
player.kickFinihs = 55;
player.specialStart = 31;
player.specialFinish = 46;
player.gotoAndPlay(20);
}
function ronnieKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function ronniePunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function ronnieSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function ronnieRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function ronnieLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function ronnieJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function ronnieBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function ronnieRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function ronnieLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function ronnieBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function ronnieWasHit() {
this.gotoAndPlay(this.hitStart);
}
function ronnieGetDamage(frame) {
if (frame == 32) {
return(4);
}
if (frame == 51) {
return(18);
}
if (frame == 58) {
return(4);
}
if (frame == 59) {
return(4);
}
return(0);
}
function ronnieGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.2);
}
return(1);
}
function ronnieIsFlying() {
if ((this._currentframe >= 76) && (85 >= this._currentframe)) {
return(true);
}
return(false);
}
function ronnieIsInvincible() {
if ((this._currentframe >= 41) && (42 >= this._currentframe)) {
return(true);
}
if ((this._currentframe >= 50) && (53 >= this._currentframe)) {
return(true);
}
return(false);
}
function ronnieGetMovement() {
return(10);
}
function addMethodsRonnie(player) {
player.leftButtonDown = ronnieLeftButtonDown;
player.rightButtonDown = ronnieRightButtonDown;
player.punchButtonDown = ronniePunchButtonDown;
player.kickButtonDown = ronnieKickButtonDown;
player.specialButtonDown = ronnieSpecialButtonDown;
player.jumpButtonDown = ronnieJumpButtonDown;
player.blockButtonDown = ronnieBlockButtonDown;
player.blockButtonUp = ronnieBlockButtonUp;
player.wasHit = ronnieWasHit;
player.leftButtonUp = ronnieLeftButtonUp;
player.rightButtonUp = ronnieRightButtonUp;
player.getDamage = ronnieGetDamage;
player.getBlockModifier = ronnieGetBlockModifier;
player.isFlying = ronnieIsFlying;
player.isInvincible = ronnieIsInvincible;
player.getMovement = ronnieGetMovement;
player.kickSound = kick2;
player.punchSound = punch5;
player.specialSound = special2;
player.hurtSound = hurt1;
}
function addMemberVarsRonnie(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 15;
player.walkBackwardStart = 16;
player.walkBackwardFinish = 30;
player.standStart = 35;
player.standFinish = 40;
player.jumpStart = 71;
player.jumpFinish = 89;
player.blockStart = 63;
player.blockFinish = 66;
player.hitStart = 67;
player.hitFinish = 70;
player.punchStart = 31;
player.punchFinish = 34;
player.kickStart = 54;
player.kickFinish = 62;
player.specialStart = 41;
player.specialFinish = 53;
player.gotoAndPlay(player.standStart);
}
function marieKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function mariePunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function marieSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function marieRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function marieLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function marieJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function marieBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function marieRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function marieLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function marieBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function marieWasHit() {
this.gotoAndPlay(this.hitStart);
}
function marieGetDamage(frame) {
if (frame == 152) {
return(3);
}
if (frame == 158) {
return(4);
}
if (frame == 159) {
return(4);
}
if (frame == 184) {
return(5);
}
if (frame == 189) {
return(5);
}
if (frame == 194) {
return(5);
}
return(0);
}
function marieGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.3);
}
return(1);
}
function marieIsFlying() {
if ((this._currentframe >= 118) && (124 >= this._currentframe)) {
return(true);
}
return(false);
}
function marieIsInvincible() {
var cf = this._currentframe;
if ((cf >= 182) && (186 >= cf)) {
return(true);
}
if ((cf >= 188) && (191 >= cf)) {
return(true);
}
if ((cf >= 193) && (200 >= cf)) {
return(true);
}
return(false);
}
function marieGetMovement() {
return(14);
}
function addMethodsMarie(player) {
player.leftButtonDown = marieLeftButtonDown;
player.rightButtonDown = marieRightButtonDown;
player.punchButtonDown = mariePunchButtonDown;
player.kickButtonDown = marieKickButtonDown;
player.specialButtonDown = marieSpecialButtonDown;
player.jumpButtonDown = marieJumpButtonDown;
player.blockButtonDown = marieBlockButtonDown;
player.blockButtonUp = marieBlockButtonUp;
player.wasHit = marieWasHit;
player.leftButtonUp = marieLeftButtonUp;
player.rightButtonUp = marieRightButtonUp;
player.getDamage = marieGetDamage;
player.getBlockModifier = marieGetBlockModifier;
player.isFlying = marieIsFlying;
player.isInvincible = marieIsInvincible;
player.getMovement = marieGetMovement;
player.kickSound = kick1;
player.punchSound = punch4;
player.specialSound = special1;
player.boredSound = hurt5;
player.hurtSound = hurt6;
}
function addMemberVarsMarie(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 140;
player.walkForwardFinish = 150;
player.walkBackwardStart = 129;
player.walkBackwardFinish = 139;
player.standStart = 1;
player.standFinish = 113;
player.jumpStart = 114;
player.jumpFinish = 128;
player.blockStart = 162;
player.blockFinish = 165;
player.hitStart = 166;
player.hitFinish = 171;
player.punchStart = 151;
player.punchFinish = 154;
player.kickStart = 155;
player.kickFinish = 161;
player.specialStart = 172;
player.specialFinish = 202;
player.gotoAndPlay(player.standStart);
}
stop();
_quality = "LOW";
if (player1 == "Emil Player 1") {
p1 = emil1;
p1.id = "1";
} else if (player1 == "Erik Player 1") {
p1 = erik1;
p1.id = "2";
} else if (player1 == "Marie Player 1") {
p1 = marie1;
p1.id = "3";
} else if (player1 == "Ronnie Player 1") {
p1 = ronnie1;
p1.id = "4";
}
if (player2 == "Emil Player 2") {
p2 = emil2;
p2.id = "5";
} else if (player2 == "Erik Player 2") {
p2 = erik2;
p2.id = "6";
} else if (player2 == "Marie Player 2") {
p2 = marie2;
p2.id = "7";
} else if (player2 == "Ronnie Player 2") {
p2 = ronnie2;
p2.id = "8";
}
var CPU = false;
thesky._x = -300;
if (_root.scrollBackground != false) {
thesky._y = 0;
} else {
thesky._y = 640;
}
themountains._x = -443;
if (_root.scrollBackground != false) {
themountains._y = 63;
} else {
thesky._y = 640;
}
theground._x = -811;
if (_root.scrollBackground != false) {
theground._y = 329;
} else {
thesky._y = 640;
}
thegrass._x = -300;
if (_root.scrollBackground != false) {
thegrass._y = 325;
} else {
thegrass._y = 325;
}
if (p1._name == "erik1") {
p1._x = 65;
p1._y = 332;
p1._xscale = -p1._xscale;
addMethodsErik(p1);
addMemberVarsErik(p1, true);
}
if (p2._name == "erik2") {
p2._x = 560;
p2._y = 332;
addMethodsErik(p2);
addMemberVarsErik(p2, false);
}
if (p1._name == "emil1") {
p1._x = 65;
p1._y = 325;
p1._xscale = p1._xscale * 0.34;
p1._yscale = p1._yscale * 0.34;
addMethodsEmil(p1);
addMemberVarsEmil(p1, true);
}
if (p2._name == "emil2") {
p2._x = 560;
p2._y = 325;
p2._xscale = (-p2._xscale) * 0.34;
p2._yscale = p2._yscale * 0.34;
addMethodsEmil(p2);
addMemberVarsEmil(p2, false);
}
if (p1._name == "ronnie1") {
p1._x = 65;
p1._y = 353;
p1._xscale = (-p1._xscale) * 0.34;
p1._yscale = p1._yscale * 0.34;
addMethodsRonnie(p1);
addMemberVarsRonnie(p1, true);
}
if (p2._name == "ronnie2") {
p2._x = 560;
p2._y = 353;
p2._xscale = p2._xscale * 0.34;
p2._yscale = p2._yscale * 0.34;
addMethodsRonnie(p2);
addMemberVarsRonnie(p2, false);
}
if (p1._name == "marie1") {
p1._x = 65;
p1._y = 335;
p1._xscale = -p1._xscale;
addMethodsMarie(p1);
addMemberVarsMarie(p1, true);
}
if (p2._name == "marie2") {
p2._x = 560;
p2._y = 335;
addMethodsMarie(p2);
addMemberVarsMarie(p2, false);
}
Instance of Symbol 305 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.CPU == true) {
_root.findPressedKeys2();
} else {
_root.findPressedKeys();
}
var LEFT_BOUNDS = 55;
var RIGHT_BOUNDS = 590;
var cf = _root.p1._currentframe;
var cf2 = _root.p2._currentframe;
var p1damage = _root.p1.getDamage(cf);
var p2damage = _root.p2.getDamage(cf2);
var p1move = _root.p1.getMovement();
var p2move = _root.p2.getMovement();
if (0 < p1damage) {
if (_root.p1.hitTest(_root.p2)) {
if (((!((cf2 >= _root.p2.hitStart) && (_root.p2.hitFinish >= cf2))) && (!_root.p2.isFlying())) && (!_root.p2.isInvincible())) {
var blockModifier = _root.p2.getBlockModifier();
_root.p2Hit(p1damage * blockModifier);
if (blockModifier == 1) {
_root.p2.wasHit();
}
if (_root.p2.facingright == true) {
_root.p2._x = _root.p2._x - (p1damage * 2);
} else {
_root.p2._x = _root.p2._x + (p1damage * 2);
}
}
}
}
if (0 < p2damage) {
if (_root.p2.hitTest(_root.p1)) {
if (((!((cf >= _root.p1.hitStart) && (_root.p1.hitFinish >= cf))) && (!_root.p1.isFlying())) && (!_root.p1.isInvincible())) {
var blockModifier = _root.p1.getBlockModifier();
_root.p1Hit(p2damage * blockModifier);
if (blockModifier == 1) {
_root.p1.wasHit();
}
if (_root.p1.facingright == true) {
_root.p1._x = _root.p1._x - (p2damage * 2);
} else {
_root.p1._x = _root.p1._x + (p2damage * 2);
}
}
}
}
if ((_root.p1._x < _root.p2._x) && (_root.p1.facingright == false)) {
_root.p1.facingright = true;
_root.p1._xscale = -_root.p1._xscale;
} else if ((_root.p1._x >= _root.p2._x) && (_root.p1.facingright == true)) {
_root.p1.facingright = false;
_root.p1._xscale = -_root.p1._xscale;
}
if ((_root.p1._x < _root.p2._x) && (_root.p2.facingright == true)) {
_root.p2.facingright = false;
_root.p2._xscale = -_root.p2._xscale;
} else if ((_root.p1._x >= _root.p2._x) && (_root.p2.facingright == false)) {
_root.p2.facingright = true;
_root.p2._xscale = -_root.p2._xscale;
}
if (_root.p1.right == true) {
_root.p1._x = _root.p1._x + p1move;
} else if (_root.p1.left == true) {
_root.p1._x = _root.p1._x - p1move;
}
if (RIGHT_BOUNDS < _root.p1._x) {
if (((_root.thesky._x - p1move) >= -511) && (_root.scrollBackground != false)) {
if (LEFT_BOUNDS < (_root.p2._x - p1move)) {
_root.thegrass._x = _root.thegrass._x - (p1move * 1.5);
_root.theground._x = _root.theground._x - p1move;
_root.themountains._x = _root.themountains._x - (p1move / 2);
_root.thesky._x = _root.thesky._x - (p1move / 3);
_root.p2._x = _root.p2._x - p1move;
}
}
_root.p1._x = RIGHT_BOUNDS;
}
if (_root.p1._x < LEFT_BOUNDS) {
if ((0 >= (_root.theground._x + p1move)) && (_root.scrollBackground != false)) {
if ((_root.p2._x + p1move) < RIGHT_BOUNDS) {
_root.thegrass._x = _root.thegrass._x + (p1move * 1.5);
_root.theground._x = _root.theground._x + p1move;
_root.themountains._x = _root.themountains._x + (p1move / 2);
_root.thesky._x = _root.thesky._x + (p1move / 3);
_root.p2._x = _root.p2._x + p1move;
}
}
_root.p1._x = LEFT_BOUNDS;
}
if ((cf2 >= _root.p2.walkForwardStart) && (_root.p2.walkForwardFinish >= cf2)) {
} else if ((cf2 >= _root.p2.walkBackwardStart) && (_root.p2.walkBackwardFinish >= cf2)) {
} else if ((cf2 >= _root.p2.standingStart) && (_root.p2.standingFinish >= cf2)) {
_root.p2.left = false;
_root.p2.right = false;
}
if (_root.p2.right == true) {
_root.p2._x = _root.p2._x + p2move;
} else if (_root.p2.left == true) {
_root.p2._x = _root.p2._x - p2move;
}
if (RIGHT_BOUNDS < _root.p2._x) {
if (((_root.thesky._x - p2move) >= -511) && (_root.scrollBackground != false)) {
if (LEFT_BOUNDS < (_root.p1._x - p2move)) {
_root.thegrass._x = _root.thegrass._x - (p2move * 1.5);
_root.theground._x = _root.theground._x - p2move;
_root.themountains._x = _root.themountains._x - (p2move / 2);
_root.thesky._x = _root.thesky._x - (p2move / 3);
_root.p1._x = _root.p1._x - p2move;
}
}
_root.p2._x = RIGHT_BOUNDS;
}
if (_root.p2._x < LEFT_BOUNDS) {
if ((0 >= (_root.theground._x + p2move)) && (_root.scrollBackground != false)) {
if ((_root.p1._x + p2move) < RIGHT_BOUNDS) {
_root.thegrass._x = _root.thegrass._x + (p2move * 1.5);
_root.theground._x = _root.theground._x + p2move;
_root.themountains._x = _root.themountains._x + (p2move / 2);
_root.thesky._x = _root.thesky._x + (p2move / 3);
_root.p1._x = _root.p1._x + p2move;
}
}
_root.p2._x = LEFT_BOUNDS;
}
if (0 >= _root.getEnergy1()) {
_root.p1._x = 1000;
_root.p1._y = 1000;
_root.p2._x = 1000;
_root.p2._y = 1000;
if (_root.CPU == true) {
_root.gotoAndPlay(12);
} else {
_root.gotoAndPlay(10);
}
}
if (0 >= _root.getEnergy2()) {
_root.p1._x = 1000;
_root.p1._y = 1000;
_root.p2._x = 1000;
_root.p2._y = 1000;
_root.gotoAndPlay(9);
}
}
Frame 7
_quality = "BEST";
stop();
Frame 8
_quality = "BEST";
stop();
Frame 9
_quality = "BEST";
stop();
Frame 10
_quality = "BEST";
stop();
Frame 11
function player1Keys() {
var p1left = Key.isDown(65);
var p1right = Key.isDown(68);
var p1punch = Key.isDown(70);
var p1kick = Key.isDown(71);
var p1block = Key.isDown(83);
var p1jump = Key.isDown(87);
if (p1left) {
_root.p1.leftButtonDown();
_root.p1.rightButtonUp();
} else if (p1right) {
_root.p1.rightButtonDown();
_root.p1.leftButtonUp();
} else {
_root.p1.leftButtonUp();
_root.p1.rightButtonUp();
}
if (p1punch) {
if (p1kick) {
_root.p1.specialButtonDown();
} else if (!holdpunch1) {
_root.p1.punchButtonDown();
holdpunch1 = true;
}
} else if (p1kick) {
_root.p1.kickButtonDown();
} else if (p1block) {
_root.p1.blockButtonDown();
} else if (p1jump) {
_root.p1.jumpButtonDown();
} else {
_root.p1.blockButtonUp();
}
if (!p1punch) {
holdpunch1 = false;
}
}
function player2Keys() {
var p2left = Key.isDown(37);
var p2right = Key.isDown(39);
var p2punch = Key.isDown(188);
var p2kick = Key.isDown(190);
var p2block = Key.isDown(40);
var p2jump = Key.isDown(38);
if (p2left) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else if (p2right) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else {
_root.p2.leftButtonUp();
_root.p2.rightButtonUp();
}
if (p2punch) {
if (p2kick) {
_root.p2.specialButtonDown();
} else if (!holdpunch2) {
_root.p2.punchButtonDown();
holdpunch2 = true;
}
} else if (p2kick) {
_root.p2.kickButtonDown();
} else if (p2block) {
_root.p2.blockButtonDown();
} else if (p2jump) {
_root.p2.jumpButtonDown();
} else {
_root.p2.blockButtonUp();
}
if (!p2punch) {
holdpunch2 = false;
}
}
function CPUKeys() {
var randomNumber = Math.round(Math.random() * 100);
var cx = _root.p2._x;
var px = _root.p1._x;
var deltap = Math.abs(cx - px);
var blocking = false;
var closeness = 130;
var p1cf = p1._currentframe;
var p2cf = p2._currentframe;
var blockChance = 3;
var punchChance = 10;
var kickChance = 10;
var specialChance = 10;
var minjig = 5;
var randjig = 50;
var jigChance = 144;
var punchRange = 175;
var kickRange = 255;
var specialRange = 150;
if (_root.CPUDifficulty == 2) {
blockChance = 10;
punchChance = 15;
kickChance = 15;
specialChance = 15;
jigChance = 264;
} else if (_root.CPUDifficulty == 3) {
blockChance = 80;
punchChance = 80;
kickChance = 80;
specialChance = 80;
jigChance = 528;
}
if (p2._name == "erik2") {
jigChance = 96;
punchRange = 185;
kickRange = 235;
specialRange = 400;
closeness = 350;
}
if (p2._name == "marie2") {
if (p1._name == "erik1") {
jigChance = jigChance + 130;
}
punchRange = 175;
kickRange = 235;
specialRange = 375;
closeness = 325;
}
if (p2._name == "emil2") {
jigChance = jigChance + 500;
punchRange = 190;
kickRange = 255;
specialRange = 210;
specialChance = 1;
closeness = 150;
}
if (p2._name == "ronnie2") {
jigChance = jigChance + 250;
punchRange = 185;
kickRange = 180;
specialRange = 215;
closeness = 200;
}
var specialFinish = p1.specialFinish;
if (p1._name == "erik1") {
specialFinish = p1.specialDamageFinish;
} else {
specialFinish = p1.specialFinish;
}
if (blockChance >= randomNumber) {
if (((p1._currentframe >= (p1.specialStart + 8)) && (specialFinish >= p1._currentframe)) && (deltap < 350)) {
_root.p2.blockButtonDown();
blocking = true;
} else if (((((p1cf >= p1.punchStart) && (p1.punchFinish >= p1cf)) && (p1cf >= p1.kickStart)) && (p1.kickFinish >= p1cf)) && (deltap < 250)) {
_root.p2.blockButtonDown();
blocking = true;
} else if ((p2._name == "erik2") && (deltap < 180)) {
if (px < cx) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else if (cx < px) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
}
_root.p2.blockButtonDown();
blocking = true;
}
}
if (p1._name == "erik1") {
jigChance = jigChance + 500;
}
if ((Math.round(Math.random() * jigChance) == 1) || (0 < _root.specialjig)) {
if (_root.specialjig == 0) {
_root.jigsize = minjig + Math.round(Math.random() * randjig);
}
_root.specialjig = _root.specialjig + 1;
if (px < (cx - closeness)) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
} else if (((cx + closeness) + 35) < px) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else {
_root.specialjig = 0;
}
if (_root.specialjig >= _root.jigsize) {
_root.specialjig = 0;
_root.jigsize = 0;
}
return(undefined);
}
if (((_root.p2._currentframe >= _root.p2.blockStart) && (_root.p2.blockFinish >= _root.p2._currentframe)) && (blocking != true)) {
if (50 >= randomNumber) {
_root.p2.blockButtonUp();
}
}
if (deltap < punchRange) {
if (punchChance >= randomNumber) {
_root.p2.punchButtonDown();
return(undefined);
}
}
if (deltap < kickRange) {
if (randomNumber < kickChance) {
_root.p2.kickButtonDown();
return(undefined);
}
}
if (deltap < specialRange) {
if (specialChance >= randomNumber) {
_root.p2.specialButtonDown();
return(undefined);
}
}
if (px < (cx - closeness)) {
_root.p2.leftButtonDown();
_root.p2.rightButtonUp();
} else if (((cx + closeness) + 35) < px) {
_root.p2.rightButtonDown();
_root.p2.leftButtonUp();
}
}
function findPressedKeys() {
player1Keys();
player2Keys();
}
function findPressedKeys2() {
player1Keys();
CPUKeys();
}
function p1Hit(damage) {
if (damage >= _root.pow1._width) {
_root.pow1._width = 0;
} else {
_root.pow1._width = _root.pow1._width - damage;
_root.pow1._x = _root.pow1._x - (damage / 2);
}
}
function p2Hit(damage) {
if (damage >= _root.pow2._width) {
_root.pow2._width = 0;
} else {
_root.pow2._width = _root.pow2._width - damage;
_root.pow2._x = _root.pow2._x - (damage / 2);
}
}
function getEnergy1() {
return(_root.pow1._width);
}
function getEnergy2() {
return(_root.pow2._width);
}
function erikKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function erikPunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function erikSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function erikRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function erikLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function erikJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function erikBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function erikRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function erikLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function erikBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function erikWasHit() {
this.gotoAndPlay(this.hitStart);
}
function erikGetDamage(frame) {
if (frame == 131) {
return(4);
}
if (frame == 139) {
return(4);
}
if (frame == 140) {
return(4);
}
if (frame == 41) {
return(6);
}
if (frame == 49) {
return(6);
}
if (frame == 57) {
return(6);
}
if (frame == 65) {
return(6);
}
return(0);
}
function erikGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.2);
}
return(1);
}
function erikIsFlying() {
if ((this._currentframe >= 154) && (163 >= this._currentframe)) {
return(true);
}
return(false);
}
function erikIsInvincible() {
if ((this._currentframe >= 41) && (65 >= this._currentframe)) {
return(true);
}
return(false);
}
function erikGetMovement() {
return(11);
}
function addMethodsErik(player) {
player.leftButtonDown = erikLeftButtonDown;
player.rightButtonDown = erikRightButtonDown;
player.punchButtonDown = erikPunchButtonDown;
player.kickButtonDown = erikKickButtonDown;
player.specialButtonDown = erikSpecialButtonDown;
player.jumpButtonDown = erikJumpButtonDown;
player.blockButtonDown = erikBlockButtonDown;
player.blockButtonUp = erikBlockButtonUp;
player.wasHit = erikWasHit;
player.leftButtonUp = erikLeftButtonUp;
player.rightButtonUp = erikRightButtonUp;
player.getDamage = erikGetDamage;
player.getBlockModifier = erikGetBlockModifier;
player.isFlying = erikIsFlying;
player.isInvincible = erikIsInvincible;
player.getMovement = erikGetMovement;
player.kickSound = kick2;
player.punchSound = punch5;
player.specialSound = special3;
player.hurtSound = hurt1;
}
function addMemberVarsErik(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 15;
player.walkBackwardStart = 16;
player.walkBackwardFinish = 30;
player.standStart = 168;
player.standFinish = 173;
player.jumpStart = 149;
player.jumpFinish = 167;
player.blockStart = 174;
player.blockFinish = 177;
player.hitStart = 144;
player.hitFinish = 148;
player.punchStart = 129;
player.punchFinish = 134;
player.kickStart = 135;
player.kickFinish = 143;
player.specialStart = 31;
player.specialFinish = 128;
player.specialDamageFinish = 65;
player.gotoAndPlay(168);
}
function emilKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function emilPunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function emilSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function emilRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function emilLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function emilJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function emilBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function emilRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function emilLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function emilBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function emilWasHit() {
this.gotoAndPlay(this.hitStart);
}
function emilGetDamage(frame) {
if (frame == 29) {
return(5);
}
if (frame == 51) {
return(5);
}
if (frame == 52) {
return(5);
}
if (frame == 43) {
return(20);
}
return(0);
}
function emilGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.25);
}
return(1);
}
function emilIsFlying() {
if ((this._currentframe >= 84) && (92 >= this._currentframe)) {
return(true);
}
return(false);
}
function emilIsInvincible() {
if ((this._currentframe >= 39) && (46 >= this._currentframe)) {
return(true);
}
return(false);
}
function emilGetMovement() {
return(8);
}
function addMethodsEmil(player) {
player.leftButtonDown = emilLeftButtonDown;
player.rightButtonDown = emilRightButtonDown;
player.punchButtonDown = emilPunchButtonDown;
player.kickButtonDown = emilKickButtonDown;
player.specialButtonDown = emilSpecialButtonDown;
player.jumpButtonDown = emilJumpButtonDown;
player.blockButtonDown = emilBlockButtonDown;
player.blockButtonUp = emilBlockButtonUp;
player.wasHit = emilWasHit;
player.leftButtonUp = emilLeftButtonUp;
player.rightButtonUp = emilRightButtonUp;
player.getDamage = emilGetDamage;
player.getBlockModifier = emilGetBlockModifier;
player.isFlying = emilIsFlying;
player.isInvincible = emilIsInvincible;
player.getMovement = emilGetMovement;
player.kickSound = kick2;
player.punchSound = punch3;
player.specialSound = special1;
player.hurtSound = hurt2;
}
function addMemberVarsEmil(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 19;
player.walkBackwardStart = 56;
player.walkBackwardFinish = 69;
player.standStart = 20;
player.standFinish = 27;
player.jumpStart = 78;
player.jumpFinish = 96;
player.blockStart = 74;
player.blockFinish = 77;
player.hitStart = 70;
player.hitFinish = 73;
player.punchStart = 28;
player.punchFinish = 30;
player.kickStart = 47;
player.kickFinihs = 55;
player.specialStart = 31;
player.specialFinish = 46;
player.gotoAndPlay(20);
}
function ronnieKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function ronniePunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function ronnieSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function ronnieRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function ronnieLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function ronnieJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function ronnieBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function ronnieRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function ronnieLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function ronnieBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function ronnieWasHit() {
this.gotoAndPlay(this.hitStart);
}
function ronnieGetDamage(frame) {
if (frame == 32) {
return(4);
}
if (frame == 51) {
return(18);
}
if (frame == 58) {
return(4);
}
if (frame == 59) {
return(4);
}
return(0);
}
function ronnieGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.2);
}
return(1);
}
function ronnieIsFlying() {
if ((this._currentframe >= 76) && (85 >= this._currentframe)) {
return(true);
}
return(false);
}
function ronnieIsInvincible() {
if ((this._currentframe >= 41) && (42 >= this._currentframe)) {
return(true);
}
if ((this._currentframe >= 50) && (53 >= this._currentframe)) {
return(true);
}
return(false);
}
function ronnieGetMovement() {
return(10);
}
function addMethodsRonnie(player) {
player.leftButtonDown = ronnieLeftButtonDown;
player.rightButtonDown = ronnieRightButtonDown;
player.punchButtonDown = ronniePunchButtonDown;
player.kickButtonDown = ronnieKickButtonDown;
player.specialButtonDown = ronnieSpecialButtonDown;
player.jumpButtonDown = ronnieJumpButtonDown;
player.blockButtonDown = ronnieBlockButtonDown;
player.blockButtonUp = ronnieBlockButtonUp;
player.wasHit = ronnieWasHit;
player.leftButtonUp = ronnieLeftButtonUp;
player.rightButtonUp = ronnieRightButtonUp;
player.getDamage = ronnieGetDamage;
player.getBlockModifier = ronnieGetBlockModifier;
player.isFlying = ronnieIsFlying;
player.isInvincible = ronnieIsInvincible;
player.getMovement = ronnieGetMovement;
player.kickSound = kick2;
player.punchSound = punch5;
player.specialSound = special2;
player.hurtSound = hurt1;
}
function addMemberVarsRonnie(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 1;
player.walkForwardFinish = 15;
player.walkBackwardStart = 16;
player.walkBackwardFinish = 30;
player.standStart = 35;
player.standFinish = 40;
player.jumpStart = 71;
player.jumpFinish = 89;
player.blockStart = 63;
player.blockFinish = 66;
player.hitStart = 67;
player.hitFinish = 70;
player.punchStart = 31;
player.punchFinish = 34;
player.kickStart = 54;
player.kickFinish = 62;
player.specialStart = 41;
player.specialFinish = 53;
player.gotoAndPlay(player.standStart);
}
function marieKickButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.kickStart);
}
}
function mariePunchButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.punchStart);
}
}
function marieSpecialButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.right = false;
this.left = false;
this.gotoAndPlay(this.specialStart);
}
}
function marieRightButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.right = true;
}
} else if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.right = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.right = true;
}
}
function marieLeftButtonDown() {
if (this.facingright == true) {
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkBackwardStart);
this.left = true;
}
} else if (((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe)) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.walkForwardStart);
this.left = true;
}
if ((this._currentframe >= this.jumpStart) && (this.jumpFinish >= this._currentframe)) {
this.left = true;
}
}
function marieJumpButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.jumpStart);
}
}
function marieBlockButtonDown() {
if ((((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) || ((this._currentframe >= this.standStart) && (this.standFinish >= this._currentframe))) {
this.gotoAndPlay(this.blockStart);
}
}
function marieRightButtonUp() {
if (this.right) {
this.right = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function marieLeftButtonUp() {
if (this.left) {
this.left = false;
if (((this._currentframe >= this.walkForwardStart) && (this.walkForwardFinish >= this._currentframe)) || ((this._currentframe >= this.walkBackwardStart) && (this.walkBackwardFinish >= this._currentframe))) {
this.gotoAndPlay(this.standStart);
}
}
}
function marieBlockButtonUp() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
this.gotoAndPlay(this.standStart);
}
}
function marieWasHit() {
this.gotoAndPlay(this.hitStart);
}
function marieGetDamage(frame) {
if (frame == 152) {
return(3);
}
if (frame == 158) {
return(4);
}
if (frame == 159) {
return(4);
}
if (frame == 184) {
return(5);
}
if (frame == 189) {
return(5);
}
if (frame == 194) {
return(5);
}
return(0);
}
function marieGetBlockModifier() {
if ((this._currentframe >= this.blockStart) && (this.blockFinish >= this._currentframe)) {
return(0.3);
}
return(1);
}
function marieIsFlying() {
if ((this._currentframe >= 118) && (124 >= this._currentframe)) {
return(true);
}
return(false);
}
function marieIsInvincible() {
var cf = this._currentframe;
if ((cf >= 182) && (186 >= cf)) {
return(true);
}
if ((cf >= 188) && (191 >= cf)) {
return(true);
}
if ((cf >= 193) && (200 >= cf)) {
return(true);
}
return(false);
}
function marieGetMovement() {
return(14);
}
function addMethodsMarie(player) {
player.leftButtonDown = marieLeftButtonDown;
player.rightButtonDown = marieRightButtonDown;
player.punchButtonDown = mariePunchButtonDown;
player.kickButtonDown = marieKickButtonDown;
player.specialButtonDown = marieSpecialButtonDown;
player.jumpButtonDown = marieJumpButtonDown;
player.blockButtonDown = marieBlockButtonDown;
player.blockButtonUp = marieBlockButtonUp;
player.wasHit = marieWasHit;
player.leftButtonUp = marieLeftButtonUp;
player.rightButtonUp = marieRightButtonUp;
player.getDamage = marieGetDamage;
player.getBlockModifier = marieGetBlockModifier;
player.isFlying = marieIsFlying;
player.isInvincible = marieIsInvincible;
player.getMovement = marieGetMovement;
player.kickSound = kick1;
player.punchSound = punch4;
player.specialSound = special1;
player.boredSound = hurt5;
player.hurtSound = hurt6;
}
function addMemberVarsMarie(player, facingright) {
player.left = false;
player.right = false;
player.facingright = facingright;
player.walkForwardStart = 140;
player.walkForwardFinish = 150;
player.walkBackwardStart = 129;
player.walkBackwardFinish = 139;
player.standStart = 1;
player.standFinish = 113;
player.jumpStart = 114;
player.jumpFinish = 128;
player.blockStart = 162;
player.blockFinish = 165;
player.hitStart = 166;
player.hitFinish = 171;
player.punchStart = 151;
player.punchFinish = 154;
player.kickStart = 155;
player.kickFinish = 161;
player.specialStart = 172;
player.specialFinish = 202;
player.gotoAndPlay(player.standStart);
}
stop();
_quality = "LOW";
if (player1 == "Emil Player 1") {
p1 = emil1;
p1.id = "1";
} else if (player1 == "Erik Player 1") {
p1 = erik1;
p1.id = "2";
} else if (player1 == "Marie Player 1") {
p1 = marie1;
p1.id = "3";
} else if (player1 == "Ronnie Player 1") {
p1 = ronnie1;
p1.id = "4";
}
if (player2 == "Emil CPU") {
p2 = emil2;
p2.id = "5";
} else if (player2 == "Erik CPU") {
p2 = erik2;
p2.id = "6";
} else if (player2 == "Marie CPU") {
p2 = marie2;
p2.id = "7";
} else if (player2 == "Ronnie CPU") {
p2 = ronnie2;
p2.id = "8";
}
var CPU = true;
thesky._x = -300;
if (_root.scrollBackground != false) {
thesky._y = 0;
} else {
thesky._y = 640;
}
themountains._x = -443;
if (_root.scrollBackground != false) {
themountains._y = 63;
} else {
thesky._y = 640;
}
theground._x = -811;
if (_root.scrollBackground != false) {
theground._y = 329;
} else {
thesky._y = 640;
}
thegrass._x = -300;
if (_root.scrollBackground != false) {
thegrass._y = 325;
} else {
thegrass._y = 325;
}
if (p1._name == "erik1") {
p1._x = 65;
p1._y = 332;
p1._xscale = -p1._xscale;
addMethodsErik(p1);
addMemberVarsErik(p1, true);
}
if (p2._name == "erik2") {
p2._x = 560;
p2._y = 332;
addMethodsErik(p2);
addMemberVarsErik(p2, false);
}
if (p1._name == "emil1") {
p1._x = 65;
p1._y = 325;
p1._xscale = p1._xscale * 0.34;
p1._yscale = p1._yscale * 0.34;
addMethodsEmil(p1);
addMemberVarsEmil(p1, true);
}
if (p2._name == "emil2") {
p2._x = 560;
p2._y = 325;
p2._xscale = (-p2._xscale) * 0.34;
p2._yscale = p2._yscale * 0.34;
addMethodsEmil(p2);
addMemberVarsEmil(p2, false);
}
if (p1._name == "ronnie1") {
p1._x = 65;
p1._y = 353;
p1._xscale = (-p1._xscale) * 0.34;
p1._yscale = p1._yscale * 0.34;
addMethodsRonnie(p1);
addMemberVarsRonnie(p1, true);
}
if (p2._name == "ronnie2") {
p2._x = 560;
p2._y = 353;
p2._xscale = p2._xscale * 0.34;
p2._yscale = p2._yscale * 0.34;
addMethodsRonnie(p2);
addMemberVarsRonnie(p2, false);
}
if (p1._name == "marie1") {
p1._x = 65;
p1._y = 335;
p1._xscale = -p1._xscale;
addMethodsMarie(p1);
addMemberVarsMarie(p1, true);
}
if (p2._name == "marie2") {
p2._x = 560;
p2._y = 335;
addMethodsMarie(p2);
addMemberVarsMarie(p2, false);
}
Instance of Symbol 305 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.CPU == true) {
_root.findPressedKeys2();
} else {
_root.findPressedKeys();
}
var LEFT_BOUNDS = 55;
var RIGHT_BOUNDS = 590;
var cf = _root.p1._currentframe;
var cf2 = _root.p2._currentframe;
var p1damage = _root.p1.getDamage(cf);
var p2damage = _root.p2.getDamage(cf2);
var p1move = _root.p1.getMovement();
var p2move = _root.p2.getMovement();
if (0 < p1damage) {
if (_root.p1.hitTest(_root.p2)) {
if (((!((cf2 >= _root.p2.hitStart) && (_root.p2.hitFinish >= cf2))) && (!_root.p2.isFlying())) && (!_root.p2.isInvincible())) {
var blockModifier = _root.p2.getBlockModifier();
_root.p2Hit(p1damage * blockModifier);
if (blockModifier == 1) {
_root.p2.wasHit();
}
if (_root.p2.facingright == true) {
_root.p2._x = _root.p2._x - (p1damage * 2);
} else {
_root.p2._x = _root.p2._x + (p1damage * 2);
}
}
}
}
if (0 < p2damage) {
if (_root.p2.hitTest(_root.p1)) {
if (((!((cf >= _root.p1.hitStart) && (_root.p1.hitFinish >= cf))) && (!_root.p1.isFlying())) && (!_root.p1.isInvincible())) {
var blockModifier = _root.p1.getBlockModifier();
_root.p1Hit(p2damage * blockModifier);
if (blockModifier == 1) {
_root.p1.wasHit();
}
if (_root.p1.facingright == true) {
_root.p1._x = _root.p1._x - (p2damage * 2);
} else {
_root.p1._x = _root.p1._x + (p2damage * 2);
}
}
}
}
if ((_root.p1._x < _root.p2._x) && (_root.p1.facingright == false)) {
_root.p1.facingright = true;
_root.p1._xscale = -_root.p1._xscale;
} else if ((_root.p1._x >= _root.p2._x) && (_root.p1.facingright == true)) {
_root.p1.facingright = false;
_root.p1._xscale = -_root.p1._xscale;
}
if ((_root.p1._x < _root.p2._x) && (_root.p2.facingright == true)) {
_root.p2.facingright = false;
_root.p2._xscale = -_root.p2._xscale;
} else if ((_root.p1._x >= _root.p2._x) && (_root.p2.facingright == false)) {
_root.p2.facingright = true;
_root.p2._xscale = -_root.p2._xscale;
}
if (_root.p1.right == true) {
_root.p1._x = _root.p1._x + p1move;
} else if (_root.p1.left == true) {
_root.p1._x = _root.p1._x - p1move;
}
if (RIGHT_BOUNDS < _root.p1._x) {
if (((_root.thesky._x - p1move) >= -511) && (_root.scrollBackground != false)) {
if (LEFT_BOUNDS < (_root.p2._x - p1move)) {
_root.thegrass._x = _root.thegrass._x - (p1move * 1.5);
_root.theground._x = _root.theground._x - p1move;
_root.themountains._x = _root.themountains._x - (p1move / 2);
_root.thesky._x = _root.thesky._x - (p1move / 3);
_root.p2._x = _root.p2._x - p1move;
}
}
_root.p1._x = RIGHT_BOUNDS;
}
if (_root.p1._x < LEFT_BOUNDS) {
if ((0 >= (_root.theground._x + p1move)) && (_root.scrollBackground != false)) {
if ((_root.p2._x + p1move) < RIGHT_BOUNDS) {
_root.thegrass._x = _root.thegrass._x + (p1move * 1.5);
_root.theground._x = _root.theground._x + p1move;
_root.themountains._x = _root.themountains._x + (p1move / 2);
_root.thesky._x = _root.thesky._x + (p1move / 3);
_root.p2._x = _root.p2._x + p1move;
}
}
_root.p1._x = LEFT_BOUNDS;
}
if ((cf2 >= _root.p2.walkForwardStart) && (_root.p2.walkForwardFinish >= cf2)) {
} else if ((cf2 >= _root.p2.walkBackwardStart) && (_root.p2.walkBackwardFinish >= cf2)) {
} else if ((cf2 >= _root.p2.standingStart) && (_root.p2.standingFinish >= cf2)) {
_root.p2.left = false;
_root.p2.right = false;
}
if (_root.p2.right == true) {
_root.p2._x = _root.p2._x + p2move;
} else if (_root.p2.left == true) {
_root.p2._x = _root.p2._x - p2move;
}
if (RIGHT_BOUNDS < _root.p2._x) {
if (((_root.thesky._x - p2move) >= -511) && (_root.scrollBackground != false)) {
if (LEFT_BOUNDS < (_root.p1._x - p2move)) {
_root.thegrass._x = _root.thegrass._x - (p2move * 1.5);
_root.theground._x = _root.theground._x - p2move;
_root.themountains._x = _root.themountains._x - (p2move / 2);
_root.thesky._x = _root.thesky._x - (p2move / 3);
_root.p1._x = _root.p1._x - p2move;
}
}
_root.p2._x = RIGHT_BOUNDS;
}
if (_root.p2._x < LEFT_BOUNDS) {
if ((0 >= (_root.theground._x + p2move)) && (_root.scrollBackground != false)) {
if ((_root.p1._x + p2move) < RIGHT_BOUNDS) {
_root.thegrass._x = _root.thegrass._x + (p2move * 1.5);
_root.theground._x = _root.theground._x + p2move;
_root.themountains._x = _root.themountains._x + (p2move / 2);
_root.thesky._x = _root.thesky._x + (p2move / 3);
_root.p1._x = _root.p1._x + p2move;
}
}
_root.p2._x = LEFT_BOUNDS;
}
if (0 >= _root.getEnergy1()) {
_root.p1._x = 1000;
_root.p1._y = 1000;
_root.p2._x = 1000;
_root.p2._y = 1000;
if (_root.CPU == true) {
_root.gotoAndPlay(12);
} else {
_root.gotoAndPlay(10);
}
}
if (0 >= _root.getEnergy2()) {
_root.p1._x = 1000;
_root.p1._y = 1000;
_root.p2._x = 1000;
_root.p2._y = 1000;
_root.gotoAndPlay(9);
}
}
Frame 12
_quality = "BEST";
stop();
Frame 13
_quality = "BEST";
stop();
Frame 14
_quality = "BEST";
stop();
Frame 15
_quality = "BEST";
stop();
Symbol 9 MovieClip Frame 1
r = Math.round(Math.random() * 50);
if (1 >= r) {
gotoAndPlay (3);
}
Symbol 9 MovieClip Frame 2
gotoAndPlay (1);
Symbol 9 MovieClip Frame 50
gotoAndPlay (3);
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 13
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 15
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 9
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 122
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 32
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 12
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 8
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 7
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 15
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 6
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 5
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 10
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 10
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 8
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 7
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 6
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 7
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 27
stop();
Symbol 51 MovieClip Frame 734
gotoAndPlay (3);
Symbol 51 MovieClip Frame 735
stop();
Symbol 69 Button
on (press) {
gotoAndStop (7);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 72 Button
on (press) {
gotoAndStop (4);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 75 Button
on (release) {
gotoAndPlay (13);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 78 Button
on (release) {
gotoAndPlay (14);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 81 Button
on (release) {
gotoAndStop (15);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 97 MovieClip Frame 12
stop();
Symbol 98 MovieClip Frame 12
stop();
Symbol 99 MovieClip Frame 12
stop();
Symbol 100 Button
on (rollOver, release) {
player1 = "Emil Player 1";
}
on (press) {
gotoAndPlay (5);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 109 MovieClip Frame 12
stop();
Symbol 110 Button
on (rollOver, release) {
player1 = "Erik Player 1";
}
on (press) {
gotoAndPlay (5);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 117 Button
on (rollOver, release) {
player1 = "Marie Player 1";
}
on (press) {
gotoAndPlay (5);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 125 Button
on (rollOver, release) {
player1 = "Ronnie Player 1";
}
on (press) {
gotoAndPlay (5);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 131 Button
on (rollOver, release) {
player2 = "Emil Player 2";
}
on (press) {
gotoAndPlay (6);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 137 Button
on (rollOver, release) {
player2 = "Erik Player 2";
}
on (press) {
gotoAndPlay (6);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 141 Button
on (rollOver, release) {
player2 = "Marie Player 2";
}
on (press) {
gotoAndPlay (6);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 146 Button
on (rollOver, release) {
player2 = "Ronnie Player 2";
}
on (press) {
gotoAndPlay (6);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 181 MovieClip Frame 1
gotoAndPlay (1);
Symbol 219 MovieClip Frame 15
gotoAndPlay (1);
Symbol 219 MovieClip Frame 30
gotoAndPlay (16);
Symbol 219 MovieClip Frame 41
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 219 MovieClip Frame 128
gotoAndPlay (168);
Symbol 219 MovieClip Frame 130
if (_root.playSound != false) {
this.punchSound.gotoAndPlay(2);
}
Symbol 219 MovieClip Frame 134
gotoAndPlay (168);
Symbol 219 MovieClip Frame 136
if (_root.playSound != false) {
this.kickSound.gotoAndPlay(2);
}
Symbol 219 MovieClip Frame 143
gotoAndPlay (168);
Symbol 219 MovieClip Frame 144
if (_root.playSound != false) {
this.hurtSound.gotoAndPlay(2);
}
Symbol 219 MovieClip Frame 148
gotoAndPlay (168);
Symbol 219 MovieClip Frame 167
gotoAndPlay (168);
Symbol 219 MovieClip Frame 173
gotoAndPlay (168);
Symbol 219 MovieClip Frame 177
stop();
Symbol 244 MovieClip Frame 84
if (_root.playSound != false) {
this.boredSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 113
gotoAndPlay (1);
Symbol 244 MovieClip Frame 128
gotoAndPlay (1);
Symbol 244 MovieClip Frame 139
gotoAndPlay (129);
Symbol 244 MovieClip Frame 150
gotoAndPlay (140);
Symbol 244 MovieClip Frame 152
if (_root.playSound != false) {
this.punchSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 154
gotoAndPlay (1);
Symbol 244 MovieClip Frame 156
if (_root.playSound != false) {
this.kickSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 161
gotoAndPlay (1);
Symbol 244 MovieClip Frame 165
stop();
Symbol 244 MovieClip Frame 166
if (_root.playSound != false) {
this.hurtSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 171
gotoAndPlay (1);
Symbol 244 MovieClip Frame 181
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 187
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 192
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 244 MovieClip Frame 202
gotoAndPlay (1);
Symbol 270 MovieClip Frame 19
gotoAndPlay (1);
Symbol 270 MovieClip Frame 27
gotoAndPlay (20);
Symbol 270 MovieClip Frame 29
if (_root.playSound != false) {
this.punchSound.gotoAndPlay(2);
}
Symbol 270 MovieClip Frame 30
gotoAndPlay (20);
Symbol 270 MovieClip Frame 32
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 270 MovieClip Frame 40
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 270 MovieClip Frame 46
gotoAndPlay (20);
Symbol 270 MovieClip Frame 48
if (_root.playSound != false) {
this.kickSound.gotoAndPlay(2);
}
Symbol 270 MovieClip Frame 55
gotoAndPlay (20);
Symbol 270 MovieClip Frame 69
gotoAndPlay (56);
Symbol 270 MovieClip Frame 70
if (_root.playSound != false) {
this.hurtSound.gotoAndPlay(2);
}
Symbol 270 MovieClip Frame 73
gotoAndPlay (20);
Symbol 270 MovieClip Frame 77
stop();
Symbol 270 MovieClip Frame 96
gotoAndPlay (20);
Symbol 293 MovieClip Frame 15
gotoAndPlay (1);
Symbol 293 MovieClip Frame 30
gotoAndPlay (16);
Symbol 293 MovieClip Frame 32
if (_root.playSound != false) {
this.punchSound.gotoAndPlay(2);
}
Symbol 293 MovieClip Frame 34
gotoAndPlay (35);
Symbol 293 MovieClip Frame 40
gotoAndPlay (35);
Symbol 293 MovieClip Frame 42
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 293 MovieClip Frame 49
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 293 MovieClip Frame 53
gotoAndPlay (35);
Symbol 293 MovieClip Frame 55
if (_root.playSound != false) {
this.kickSound.gotoAndPlay(2);
}
Symbol 293 MovieClip Frame 62
gotoAndPlay (35);
Symbol 293 MovieClip Frame 66
stop();
Symbol 293 MovieClip Frame 68
if (_root.playSound != false) {
this.hurtSound.gotoAndPlay(2);
}
Symbol 293 MovieClip Frame 70
gotoAndPlay (35);
Symbol 293 MovieClip Frame 89
gotoAndPlay (35);
Symbol 294 MovieClip Frame 15
gotoAndPlay (1);
Symbol 294 MovieClip Frame 30
gotoAndPlay (16);
Symbol 294 MovieClip Frame 41
if (_root.playSound != false) {
this.specialSound.gotoAndPlay(2);
}
Symbol 294 MovieClip Frame 128
gotoAndPlay (168);
Symbol 294 MovieClip Frame 130
if (_root.playSound != false) {
this.punchSound.gotoAndPlay(2);
}
Symbol 294 MovieClip Frame 134
gotoAndPlay (168);
Symbol 294 MovieClip Frame 136
if (_root.playSound != false) {
this.kickSound.gotoAndPlay(2);
}
Symbol 294 MovieClip Frame 143
gotoAndPlay (168);
Symbol 294 MovieClip Frame 144
if (_root.playSound != false) {
this.hurtSound.gotoAndPlay(2);
}
Symbol 294 MovieClip Frame 148
gotoAndPlay (168);
Symbol 294 MovieClip Frame 167
gotoAndPlay (168);
Symbol 294 MovieClip Frame 173
gotoAndPlay (168);
Symbol 294 MovieClip Frame 177
stop();
Symbol 312 Button
on (rollOver, release) {
player1 = "Emil Player 1";
}
on (press) {
gotoAndPlay (8);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 313 Button
on (rollOver, release) {
player1 = "Erik Player 1";
}
on (press) {
gotoAndPlay (8);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 314 Button
on (rollOver, release) {
player1 = "Marie Player 1";
}
on (press) {
gotoAndPlay (8);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 315 Button
on (rollOver, release) {
player1 = "Ronnie Player 1";
}
on (press) {
gotoAndPlay (8);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 317 Button
on (rollOver, release) {
player2 = "Emil CPU";
}
on (press) {
gotoAndPlay (11);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 319 Button
on (rollOver, release) {
player2 = "Erik CPU";
}
on (press) {
gotoAndPlay (11);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 320 Button
on (rollOver, release) {
player2 = "Marie CPU";
}
on (press) {
gotoAndPlay (11);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 321 Button
on (rollOver, release) {
player2 = "Ronnie CPU";
}
on (press) {
gotoAndPlay (11);
}
on (rollOver) {
if (_root.playSound != false) {
_root.powerup.gotoAndPlay(2);
}
}
Symbol 328 Button
on (press) {
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 330 Button
on (press) {
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 333 Button
on (release) {
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 338 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 342 Button
on (press) {
_root.CPUDifficulty = 2;
gotoAndPlay (2);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 346 Button
on (press) {
_root.CPUDifficulty = 3;
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 348 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 349 Button
on (press) {
_root.CPUDifficulty = 1;
gotoAndPlay (1);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 351 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 352 Button
on (press) {
_root.CPUDifficulty = 2;
gotoAndPlay (2);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 353 MovieClip Frame 1
if (_root.CPUdifficulty == 2) {
gotoAndPlay (2);
}
if (_root.CPUDifficulty == 3) {
gotoAndPlay (3);
}
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 3
stop();
Symbol 358 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 362 Button
on (press) {
gotoAndPlay (2);
_root.scrollBackground = false;
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 364 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 365 Button
on (press) {
gotoAndPlay (1);
_root.scrollBackground = true;
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 366 MovieClip Frame 1
if (_root.scrollBackground == false) {
gotoAndPlay (2);
}
stop();
Symbol 366 MovieClip Frame 2
stop();
Symbol 367 Button
on (press) {
_root.playSound = false;
gotoAndPlay (2);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 368 Button
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 369 Button
on (press) {
gotoAndPlay (1);
_root.playSound = true;
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 370 MovieClip Frame 1
if (_root.playSound == false) {
gotoAndPlay (2);
}
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 371 Button
on (press) {
_root.playBackground = false;
_root.zbackgroundMusic.gotoAndPlay(735);
gotoAndPlay (2);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 372 Button
on (press) {
_root.playBackground = true;
_root.zbackgroundMusic.gotoAndPlay(3);
gotoAndPlay (1);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 373 MovieClip Frame 1
if (_root.playBackground == false) {
gotoAndPlay (2);
}
stop();
Symbol 373 MovieClip Frame 2
stop();
Symbol 378 Button
on (release) {
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 384 Button
on (release) {
gotoAndPlay (3);
}
on (rollOver) {
if (_root.playSound != false) {
_root.punch2.gotoAndPlay(2);
}
}
Symbol 397 Button
on (release) {
getURL ("http://www.warfist.com", "_blank");
}
Symbol 401 Button
on (release) {
getURL ("http://www.emeraldgames.com", "_blank");
}
Symbol 405 Button
on (release) {
getURL ("http://www.warfist.com", "_blank");
}