[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (320 B)
function skiptointro() {
gotoAndPlay ("reCre");
}
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Instance of Symbol 8 MovieClip in Frame 1 (358 B)
onClipEvent (load) {
currentbytes = int(_root.getBytesLoaded() / 1000);
totalbytes = int(_root.getBytesTotal() / 1000);
percentbytes = int((currentbytes / totalbytes) * 100);
_root.textbox = ((("LOADING " + percentbytes) + "% of ") + totalbytes) + " KBs";
_root.loadedbar._width = percentbytes;
if (percentbytes >= 100) {
_root.skiptointro();
}
}
Frame 4 (17 B)
gotoAndPlay (1);
Frame 10 (457 B)
stop();
function nextScreen() {
stopAllSounds();
gotoAndPlay ("title");
}
bonusClockB = 0;
function titleScreen() {
stopAllSounds();
gotoAndPlay ("title");
}
bonusClockB = 0;
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Instance of Symbol 16 MovieClip in Frame 10 (139 B)
onClipEvent (enterFrame) {
if (_root.bonusClockB >= 40) {
_root.nextScreen();
}
}
onClipEvent (enterFrame) {
_root.bonusClockB++;
}
Frame 15 (539 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
userHp = 100;
cpuHp = 100;
special = 10;
continues = 5;
withWeapon = false;
score = 0;
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Stage.showMenu = false;
Frame 20 (419 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 25 (400 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
Frame 30 (11.78 KiB) ● ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage1");
mySound.start(0.005, 9999);
f++;
}
stop();
function walk(player) {
if ((Key.isDown(39) && (player._currentframe == 1)) && (!_root.withWeapon)) {
player.gotoAndPlay("walking");
} else if ((Key.isDown(37) && (player._currentframe == 1)) && (!_root.withWeapon)) {
player.gotoAndPlay("walking");
} else if ((Key.isDown(38) && (player._currentframe == 1)) && (!_root.withWeapon)) {
player.gotoAndPlay("walking");
} else if ((Key.isDown(40) && (player._currentframe == 1)) && (!_root.withWeapon)) {
player.gotoAndPlay("walking");
}
}
function walkWep(player) {
if ((Key.isDown(39) && (player._currentframe == 272)) && (_root.withWeapon)) {
player.gotoAndPlay("weaponWalk");
} else if ((Key.isDown(37) && (player._currentframe == 272)) && (_root.withWeapon)) {
player.gotoAndPlay("weaponWalk");
} else if ((Key.isDown(38) && (player._currentframe == 272)) && (_root.withWeapon)) {
player.gotoAndPlay("weaponWalk");
} else if ((Key.isDown(40) && (player._currentframe == 272)) && (_root.withWeapon)) {
player.gotoAndPlay("weaponWalk");
}
}
function attack(player) {
var _local3 = 90;
var _local4 = 88;
var _local5 = 67;
var _local6 = 40;
var _local7 = 1;
if (((Key.getCode() == _local3) && (player._currentframe == 1)) && (_root.attackCount == 1)) {
player.gotoAndPlay("attack1");
} else if (((Key.getCode() == _local3) && (player._currentframe == 1)) && (_root.attackCount == 2)) {
player.gotoAndPlay("attack1");
} else if (((Key.getCode() == _local3) && (player._currentframe == 1)) && (_root.attackCount == 3)) {
player.gotoAndPlay("attack3");
} else if (((Key.getCode() == _local3) && (player._currentframe == 1)) && (_root.attackCount == 4)) {
player.gotoAndPlay("attack4");
} else if (((Key.getCode() == _local4) && (player._currentframe == 1)) && (_root.kickCount == 3)) {
player.gotoAndPlay("attack3");
} else if (((Key.getCode() == _local4) && (player._currentframe == 1)) && (_root.kickCount < 3)) {
player.gotoAndPlay("attack2");
} else if (((Key.getCode() == _local5) && (player._currentframe == 1)) && (_root.special > 0)) {
player.gotoAndPlay("attack5");
_root.special = _root.special - 1;
} else if (((Key.getCode() == _local3) && (player._currentframe == 1)) && (_root.attackCount == 0)) {
player.gotoAndPlay("attack1");
}
}
function moveOn(player) {
var _local3 = 10;
var _local4 = 30;
var _local2 = 37;
if ((Key.isDown(39) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x + _local3;
} else if ((Key.isDown(37) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x - _local3;
} else if ((Key.isDown(38) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y - _local3;
} else if ((Key.isDown(40) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y + _local3;
}
}
function moveOnWithWep(player) {
var _local3 = 10;
var _local4 = 264;
var _local2 = 271;
if ((Key.isDown(39) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x + _local3;
} else if ((Key.isDown(37) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x - _local3;
} else if ((Key.isDown(38) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y - _local3;
} else if ((Key.isDown(40) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y + _local3;
}
}
function moveOnTo(player) {
var _local3 = 10;
var _local4 = 28;
var _local2 = 35;
if ((Key.isDown(39) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x + _local3;
} else if ((Key.isDown(37) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._x = player._x - _local3;
} else if ((Key.isDown(38) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y - _local3;
} else if ((Key.isDown(40) && (player._currentframe >= _local4)) && (player._currentframe <= _local2)) {
player._y = player._y + _local3;
}
}
function moveAround(cpuChar, userChar) {
var _local4 = 89;
var _local6 = "";
var _local5 = int(Math.random() * 25000);
var _local7 = 5500;
var _local9 = 7500;
var _local8 = 2500;
var _local3 = 15;
trace(_local5);
trace(_local6);
if (((!userChar.hitTest(cpuChar)) && (userChar._x < cpuChar._x)) && (cpuChar._currentframe < _local4)) {
cpuChar._x = cpuChar._x + _local3;
cpuChar.gotoAndPlay("walking");
} else if (((!userChar.hitTest(cpuChar)) && (userChar._x < cpuChar._x)) && (cpuChar._currentframe < _local4)) {
cpuChar._x = cpuChar._x - _local3;
cpuChar.gotoAndPlay("walking");
} else if (((!userChar.hitTest(cpuChar)) && (userChar._x > cpuChar._x)) && (cpuChar._currentframe < _local4)) {
cpuChar._x = cpuChar._x + _local3;
cpuChar.gotoAndPlay("walking");
} else if (((((_local5 <= _local7) && (_local5 >= _local8)) && (!userChar.hitTest(cpuChar))) && (userChar._x > cpuChar._x)) && (cpuChar._currentframe < _local4)) {
cpuChar._x = cpuChar._x - _local3;
cpuChar.gotoAndPlay("walking");
}
}
function reverseX(character, amount, badguy, player) {
if (Key.isDown(37)) {
character._xscale = -amount;
} else if (Key.isDown(39)) {
character._xscale = amount;
}
}
function limit(movieClip) {
var _local1 = 525;
beginVal = 10;
if (movieClip._x >= _local1) {
movieClip._x = _local1;
} else if (movieClip._x <= beginVal) {
movieClip._x = beginVal;
}
}
function getHurt(who, opponent) {
var _local2 = 85;
if (opponent.hit.hitTest(who) && (who._currentframe < _local2)) {
who.gotoAndPlay("damage");
_root.score = _root.score + 100;
}
}
function smashThis(player, otherPlayer, lifeVar) {
var _local3 = 89;
var _local2 = 20;
if (player.smash.hitTest(otherPlayer) && (lifeVar > 0)) {
otherPlayer.gotoAndPlay("defeated");
} else if (((otherPlayer._currentframe > _local3) && (player._x < otherPlayer._x)) && (lifeVar > 0)) {
otherPlayer._x = otherPlayer._x + _local2;
_local2 = _local2 - 5;
} else if (((_local2 <= 0) && (otherPlayer._currentframe < _local3)) && (lifeVar > 0)) {
_local2 = 0;
} else if (((otherPlayer._currentframe > _local3) && (player._x > otherPlayer._x)) && (lifeVar > 0)) {
otherPlayer._x = otherPlayer._x - _local2;
_local2 = _local2 - 5;
}
}
function findUser(badguy, xSpeed, spaceAway, deathVar) {
distance = spaceAway;
badGuySpeed = xSpeed;
move = deathVar;
if ((badguy._x <= (_root.user._x - distance)) && (_root.user._x > badguy._x)) {
badguy._x = badguy._x + badGuySpeed;
} else if ((badguy._x >= (_root.user._x + distance)) && (_root.user._x < badguy._x)) {
badguy._x = badguy._x - badGuySpeed;
}
}
function findUserY(badguy, ySpeed, evenYpos) {
moveUpSpeed = ySpeed;
evenItOut = -evenYpos;
var _local3 = 85;
if ((badguy._y >= (_root.user._y + evenItOut)) && (badguy._currentframe < _local3)) {
badguy._y = badguy._y - moveUpSpeed;
} else if ((badguy._y < (_root.user._y - evenItOut)) && (badguy._currentframe < _local3)) {
badguy._y = badguy._y + moveUpSpeed;
}
}
function walkCpu(player, obstruction) {
if ((player._currentframe == 1) && (!player.hitTest(obstruction))) {
player.gotoAndPlay("walking");
}
}
function touchTeam(badguy, team1, team2, team3, team4, team5, spaceAway) {
if (badguy.hitTest(team1) && (team1._x > badguy._x)) {
badguy._x = badguy._x - spaceAway;
} else if (badguy.hitTest(team1) && (team1._x < badguy._x)) {
badguy._x = badguy._x + spaceAway;
} else if (badguy.hitTest(team2) && (team2._x < badguy._x)) {
badguy._x = badguy._x + spaceAway;
} else if (badguy.hitTest(team2) && (team2._x > badguy._x)) {
badguy._x = badguy._x - spaceAway;
} else if (badguy.hitTest(team3) && (team3._x > badguy._x)) {
badguy._x = badguy._x - spaceAway;
} else if (badguy.hitTest(team3) && (team3._x < badguy._x)) {
badguy._x = badguy._x + spaceAway;
}
}
function userHurt(badguy, player, lifeVar) {
var _local4 = 20;
if ((badguy.hit.hitTest(player) && (_root.withWeapon == false)) && (player._currentframe < 272)) {
player.gotoAndPlay("damage");
} else if (badguy.smash.hitTest(player)) {
player.gotoAndPlay("defeated");
lifeVar = lifeVar - _local4;
} else if (badguy.hit.hitTest(player) && (_root.withWeapon == true)) {
player.gotoAndPlay("damage2");
_root.withWeapon = false;
}
}
function getLife(badguy) {
if (badguy.hit.hitTest(_root.user)) {
_root.hp = _root.hp - 2;
}
}
function killCpu(who, lifeVar, frameNum) {
if (lifeVar <= 0) {
who.gotoAndStop(frameNum);
}
}
function removeCpu(badguy, deathVar, curFrame) {
if (((deathVar == true) && (badguy._currentframe > curFrame)) && (badguy._alpha < 0)) {
badguy._visible = false;
badguy._x = -1000;
}
}
function getLife(badguy, amount) {
if (badguy.hit.hitTest(_root.user)) {
_root.userHp = _root.userHp - amount;
}
}
function reborn(lifeVar, otherLifeVar, player, frame) {
if (((lifeVar <= 0) && (otherLifeVar > 0)) && (player._currentframe < frame)) {
player.gotoAndPlay("defeated");
}
}
gotIt = false;
wepType = "none";
onOb = false;
onIt = false;
myCountX = 0;
killClock = 0;
downKey = false;
released = false;
currentRound = "round1";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 72 MovieClip "nextRd" in Frame 30 (118 B)
onClipEvent (enterFrame) {
if ((_root.passThru == true) && (_root.user.hitTest(this))) {
_root.play();
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 30 (2.3 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp3 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 149 MovieClip "cpu7" in Frame 30 (5.78 KiB) ● ●
onClipEvent (enterFrame) {
var anyNum = 89;
if (_root.user._y > (this._y - 100)) {
if ((_root.user.hit.hitTest(this) && (this._currentframe == 1)) && (_root.user._x < this._x)) {
this.gotoAndPlay("break");
} else if ((_root.user.hit.hitTest(this) && (this._currentframe == 1)) && (_root.user._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.user.smash.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if (_root.user.smash.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.user.hitTest(this) && (this._currentframe == 1)) && (_root.user._currentframe >= anyNum)) {
this.gotoAndPlay("break");
} else if (((_root.user.hitTest(this) && (this._currentframe == 1)) && (_root.user._currentframe >= anyNum)) && (_root.user._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu2.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._currentframe >= anyNum)) && (_root.cpu2._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu2.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._currentframe >= anyNum)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu.hitTest(this) && (this._currentframe == 1)) && (_root.cpu._currentframe >= anyNum)) && (_root.cpu._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu.hitTest(this) && (this._currentframe == 1)) && (_root.cpu._currentframe >= anyNum)) && (_root.cpu._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu4.hitTest(this) && (this._currentframe == 1)) && (_root.cpu4._currentframe >= anyNum)) && (_root.cpu4._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu4.hitTest(this) && (this._currentframe == 1)) && (_root.cpu4._currentframe >= anyNum)) && (_root.cpu4._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu5.hitTest(this) && (this._currentframe == 1)) && (_root.cpu5._currentframe >= anyNum)) && (_root.cpu5._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu5.hitTest(this) && (this._currentframe == 1)) && (_root.cpu5._currentframe >= anyNum)) && (_root.cpu5._x > this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu10.hitTest(this) && (this._currentframe == 1)) && (_root.cpu10._currentframe >= anyNum)) && (_root.cpu10._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu10.hitTest(this) && (this._currentframe == 1)) && (_root.cpu10._currentframe >= anyNum)) && (_root.cpu10._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
this._xscale = -50;
} else if (_root.cpu2.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu2.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu3.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu3.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu4.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu4.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu5.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu5.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu10.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu10.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
if (_root.user._y > 200) {
this.swapDepths(0);
} else if (_root.user._y < this._y) {
this.swapDepths(100);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 30 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 30 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 10 MovieClip in Frame 30 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 30 (248 B)
onClipEvent (enterFrame) {
if ((((_root.dead3 == true) && (_root.dead4 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 35 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 39 (1.63 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage1");
mySound.start(0.005, 9999);
f++;
}
stop();
gotIt = false;
wepType = "none";
currentRound = "round2";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 381 MovieClip "cpu8" in Frame 39 (5.51 KiB) ● ●
onClipEvent (enterFrame) {
var anyNum = 89;
if ((_root.user.hit.hitTest(this) && (this._currentframe == 1)) && (_root.user._x < this._x)) {
this.gotoAndPlay("break");
} else if ((_root.user.hit.hitTest(this) && (this._currentframe == 1)) && (_root.user._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.user.smash.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if (_root.user.smash.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.user.hitTest(this) && (this._currentframe == 1)) && (_root.user._currentframe >= anyNum)) {
this.gotoAndPlay("break");
} else if (((_root.user.hitTest(this) && (this._currentframe == 1)) && (_root.user._currentframe >= anyNum)) && (_root.user._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu2.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._currentframe >= anyNum)) && (_root.cpu2._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu2.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._currentframe >= anyNum)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu.hitTest(this) && (this._currentframe == 1)) && (_root.cpu._currentframe >= anyNum)) && (_root.cpu._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu.hitTest(this) && (this._currentframe == 1)) && (_root.cpu._currentframe >= anyNum)) && (_root.cpu._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu3.hitTest(this) && (this._currentframe == 1)) && (_root.cpu3._currentframe >= anyNum)) && (_root.cpu3._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu4.hitTest(this) && (this._currentframe == 1)) && (_root.cpu4._currentframe >= anyNum)) && (_root.cpu4._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu4.hitTest(this) && (this._currentframe == 1)) && (_root.cpu4._currentframe >= anyNum)) && (_root.cpu4._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (((_root.cpu5.hitTest(this) && (this._currentframe == 1)) && (_root.cpu5._currentframe >= anyNum)) && (_root.cpu5._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu5.hitTest(this) && (this._currentframe == 1)) && (_root.cpu5._currentframe >= anyNum)) && (_root.cpu5._x > this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu10.hitTest(this) && (this._currentframe == 1)) && (_root.cpu10._currentframe >= anyNum)) && (_root.cpu10._x < this._x)) {
this.gotoAndPlay("break");
} else if (((_root.cpu10.hitTest(this) && (this._currentframe == 1)) && (_root.cpu10._currentframe >= anyNum)) && (_root.cpu10._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
this._xscale = -50;
} else if (_root.cpu2.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu2.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu3.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu3.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu4.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu4.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu5.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu5.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
} else if (_root.cpu10.hit.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndPlay("break");
} else if ((_root.cpu10.hit.hitTest(this) && (this._currentframe == 1)) && (_root.cpu2._x > this._x)) {
this.gotoAndPlay("break");
this._xscale = -50;
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 39 (2.3 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 39 (2.28 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 39 (2.26 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 39 (2.22 KiB) ●
onClipEvent (enterFrame) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 39 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 39 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 39 (318 B)
onClipEvent (enterFrame) {
if ((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 45 (265 B)
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 50 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage1");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round3";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 425 MovieClip "sword" in Frame 50 (389 B)
onClipEvent (enterFrame) {
if ((((_root.user.hitTest(this) && (_root.user._x < (this._x + 20))) && (Key.isDown(17))) && (_root.withWeapon == false)) && (_root.gotIt == false)) {
_root.gotIt = true;
_root.user.gotoAndPlay("grab");
this._visible = false;
_root.withWeapon = true;
_root.wepType = "sword";
_root.user.weapon.gotoAndPlay(2);
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 50 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 50 (2.33 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp8 > 0) && (_root.dead3 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu7" in Frame 50 (2.35 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp9 > 0) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead9);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter9);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp9, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp9);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp9 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp9 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter9 < 31)) {
_root.counter9++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter9 == 30) {
_root.counter9 = _root.counter9 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp9 > 0)) {
_root.cpuhp9 = _root.cpuhp9 - val1;
} else if (_root.cpuhp9 <= 0) {
_root.dead9 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp9 > 0)) {
_root.cpuhp9 = _root.cpuhp9 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp9 <= 0) {
this.gotoAndStop(101);
_root.dead9 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead9, 100);
}
onClipEvent (enterFrame) {
if (_root.dead9 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp9 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 50 (2.28 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 50 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 50 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 50 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 50 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 55 (265 B)
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 60 (152 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
Frame 65 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round4";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 500;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 431 MovieClip "life" in Frame 65 (183 B)
onClipEvent (enterFrame) {
var haveLife = false;
if (_root.user.hitTest(this) && (this._visible == true)) {
_root.userHp = _root.userHp + 50;
this._visible = false;
}
}
Instance of Symbol 469 MovieClip "cpu6" in Frame 65 (2.86 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp10 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.getHurt(_root.user, this);
_root.findUser(this, 4, 30, _root.dead10);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter10);
_root.userHurt(this, _root.user, _root.userHp);
_root.killCpu(this, _root.cpuhp10, 101);
_root.lifeDeduct(_root.user, this, 10, 20, _root.cpuhp10);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp10 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp10 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter10 < 11)) {
_root.counter10++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 4);
if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 3)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter10 == 10) {
_root.counter10 = _root.counter10 - 10;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp10 > 0)) {
_root.cpuhp10 = _root.cpuhp10 - val1;
} else if (_root.cpuhp10 <= 0) {
_root.dead10 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp10 > 0)) {
_root.cpuhp10 = _root.cpuhp10 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp10 <= 0) {
this.gotoAndStop(101);
_root.dead10 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead10, 100);
}
onClipEvent (enterFrame) {
if (_root.dead10 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp10 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
onClipEvent (enterFrame) {
if (_root.cpu6.smash.hitTest(_root.user)) {
_root.userHp = _root.userHp - 2;
}
}
onClipEvent (enterFrame) {
if ((((this._alpha <= 0) && (_root.dead6 == true)) && (_root.dead3 == true)) && (_root.dead8 == true)) {
_root.play();
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 65 (2.24 KiB) ●
onClipEvent (enterFrame) {
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 65 (2.34 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp10 < 200) && (_root.dead8 == false)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 65 (2.36 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp10 < 200) && (_root.dead6 == false)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 65 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 65 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Frame 70 (265 B)
_root.user.removeMovieClip();
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 75 (152 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
Frame 80 (408 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 85 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round5";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 134 MovieClip "cpu4" in Frame 85 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (((_root.cpuhp6 > 0) && (_root.dead3 == true)) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 26)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 25) {
_root.counter6 = _root.counter6 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 606 MovieClip "cpu2" in Frame 85 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 15;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -15;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu" in Frame 85 (2.3 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 85 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 85 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 85 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 90 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 95 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round6";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 134 MovieClip "cpu" in Frame 95 (2.3 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 606 MovieClip "cpu2" in Frame 95 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 15;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -15;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 420 MovieClip "cpu4" in Frame 95 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (((_root.cpuhp6 > 0) && (_root.dead3 == true)) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 26)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 25) {
_root.counter6 = _root.counter6 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 95 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 95 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 95 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 100 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 105 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round7";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 134 MovieClip "cpu" in Frame 105 (2.3 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 105 (2.28 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 105 (2.26 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 105 (2.22 KiB) ●
onClipEvent (enterFrame) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 105 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 105 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 105 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 110 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 115 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round8";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 431 MovieClip "life" in Frame 115 (183 B)
onClipEvent (enterFrame) {
var haveLife = false;
if (_root.user.hitTest(this) && (this._visible == true)) {
_root.userHp = _root.userHp + 50;
this._visible = false;
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 115 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 134 MovieClip "cpu5" in Frame 115 (2.37 KiB) ●
onClipEvent (enterFrame) {
if (((_root.cpuhp8 > 0) && (_root.dead3 == true)) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 115 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 420 MovieClip "cpu4" in Frame 115 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (((_root.cpuhp6 > 0) && (_root.dead3 == true)) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 26)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter6 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 25) {
_root.counter6 = _root.counter6 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 115 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 115 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 115 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 121 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 126 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round9";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 134 MovieClip "cpu" in Frame 126 (2.28 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp3 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 126 (2.33 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp8 > 0) && (_root.dead3 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu7" in Frame 126 (2.35 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp9 > 0) && (_root.dead4 == true)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead9);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter9);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp9, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp9);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp9 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp9 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter9 < 31)) {
_root.counter9++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter9 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp9 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter9 == 30) {
_root.counter9 = _root.counter9 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp9 > 0)) {
_root.cpuhp9 = _root.cpuhp9 - val1;
} else if (_root.cpuhp9 <= 0) {
_root.dead9 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp9 > 0)) {
_root.cpuhp9 = _root.cpuhp9 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp9 <= 0) {
this.gotoAndStop(101);
_root.dead9 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead9, 100);
}
onClipEvent (enterFrame) {
if (_root.dead9 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp9 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 126 (2.28 KiB) ●
onClipEvent (enterFrame) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 343 MovieClip "cpu2" in Frame 126 (2.26 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp4 > 0) {
_root.getHurt(this, _root.user);
_root.findUser(this, 3, 38, _root.dead3);
_root.findUserY(this, 5, -5);
_root.walkCpu(this, _root.user);
_root.touchTeam(this, _root.cpu3, _root.cpu, _root.cpu0, _root.cpu5, _root.cpu6, 5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp4, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp4);
_root.getLife(this, 2);
trace(_root.cpuhp3);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp4 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp4 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter4 < 31)) {
_root.counter4++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter4 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter4 == 30) {
_root.counter4 = _root.counter4 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead4 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp4 > 0)) {
_root.cpuhp4 = _root.cpuhp4 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp4 <= 0) {
this.gotoAndStop(101);
_root.dead4 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead4, 100);
}
onClipEvent (enterFrame) {
if (_root.dead4 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp4 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 126 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Instance of Symbol 10 MovieClip in Frame 126 (194 B)
onClipEvent (enterFrame) {
this._width = _root.userHp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else if (this._width <= 0) {
this._width = 0;
}
}
Instance of Symbol 349 MovieClip in Frame 126 (353 B)
onClipEvent (enterFrame) {
if (((((((_root.dead3 == true) && (_root.dead4 == true)) && (_root.dead6 == true)) && (_root.dead8 == true)) && (_root.dead9 == true)) && (this._currentframe == 1)) && (_root.havegone == false)) {
this.gotoAndPlay("go");
_root.havegone = true;
_root.passThru = true;
}
}
Frame 131 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 135 (421 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("preboss2");
mySound.start(0.005, 9999);
f++;
}
stop();
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 141 (1.6 KiB) ●
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("start");
mySound.start(0.005, 9999);
f++;
}
stop();
currentRound = "round10";
attackCount = 0;
timeOnFrame = 1;
kickCount = 0;
passThru = false;
superbar = 100;
cpuDead = false;
cpuGettingHurt = false;
cpuAttacking = false;
cpuBlocking = false;
userDead = false;
userGettingHurt = false;
userAttacking = false;
userBlocking = false;
userCharge = 0;
cpuCharge = 0;
inAir = false;
myY = 176.8;
jumping = false;
cpuhp0 = 125;
cpuhp1 = 125;
cpuhp2 = 125;
cpuhp3 = 125;
cpuhp4 = 125;
cpuhp5 = 125;
cpuhp6 = 125;
cpuhp7 = 125;
cpuhp8 = 125;
cpuhp9 = 125;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
havegone = false;
Instance of Symbol 431 MovieClip "life" in Frame 141 (183 B)
onClipEvent (enterFrame) {
var haveLife = false;
if (_root.user.hitTest(this) && (this._visible == true)) {
_root.userHp = _root.userHp + 50;
this._visible = false;
}
}
Instance of Symbol 675 MovieClip "cpu6" in Frame 141 (2.86 KiB) ●
onClipEvent (enterFrame) {
if (_root.cpuhp10 > 0) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.getHurt(_root.user, this);
_root.findUser(this, 4, 30, _root.dead10);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter10);
_root.userHurt(this, _root.user, _root.userHp);
_root.killCpu(this, _root.cpuhp10, 101);
_root.lifeDeduct(_root.user, this, 10, 20, _root.cpuhp10);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp10 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp10 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter10 < 11)) {
_root.counter10++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 4);
if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
} else if (((((_root.counter10 == 10) && (this._currentframe == 1)) && (either == 3)) && (_root.cpuhp10 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack4");
}
}
onClipEvent (enterFrame) {
if (_root.counter10 == 10) {
_root.counter10 = _root.counter10 - 10;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp10 > 0)) {
_root.cpuhp10 = _root.cpuhp10 - val1;
} else if (_root.cpuhp10 <= 0) {
_root.dead10 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp10 > 0)) {
_root.cpuhp10 = _root.cpuhp10 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp10 <= 0) {
this.gotoAndStop(101);
_root.dead10 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead10, 100);
}
onClipEvent (enterFrame) {
if (_root.dead10 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp10 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
onClipEvent (enterFrame) {
if (_root.cpu6.smash.hitTest(_root.user)) {
_root.userHp = _root.userHp - 2;
}
}
onClipEvent (enterFrame) {
if ((((this._alpha <= 0) && (_root.dead6 == true)) && (_root.dead3 == true)) && (_root.dead8 == true)) {
_root.play();
}
}
Instance of Symbol 134 MovieClip "cpu" in Frame 141 (2.32 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp10 < 400) && (_root.dead6 == false)) {
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead2);
_root.findUserY(this, 5, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter3);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp3, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp3);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
_root.limit(this);
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp3 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp3 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter3 < 16)) {
_root.counter3++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter3 == 15) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp3 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter3 == 15) {
_root.counter3 = _root.counter3 - 15;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val1;
} else if (_root.cpuhp4 <= 0) {
_root.dead3 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp3 > 0)) {
_root.cpuhp3 = _root.cpuhp3 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp3 <= 0) {
this.gotoAndStop(101);
_root.dead3 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead3, 100);
}
onClipEvent (enterFrame) {
if (_root.dead3 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp3 = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 420 MovieClip "cpu5" in Frame 141 (2.34 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp10 < 200) && (_root.dead8 == false)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 2, 30, _root.dead8);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter8);
_root.userHurt(this, _root.user);
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0, _root.cpu4, _root.cpu6, 5);
_root.killCpu(this, _root.cpuhp8, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp8);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp8 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp8 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter8 < 26)) {
_root.counter8++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack1");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack2");
} else if ((((_root.counter8 == 25) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp8 > 0)) {
this.gotoAndPlay("attack3");
}
}
onClipEvent (enterFrame) {
if (_root.counter8 == 25) {
_root.counter8 = _root.counter8 - 25;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val1;
} else if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp8 > 0)) {
_root.cpuhp8 = _root.cpuhp8 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
this.gotoAndStop(101);
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 100);
}
onClipEvent (enterFrame) {
if (_root.dead8 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp8 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(2);
} else if (this._y < 200) {
this.swapDepths(51);
}
}
Instance of Symbol 343 MovieClip "cpu4" in Frame 141 (2.36 KiB) ●
onClipEvent (enterFrame) {
if ((_root.cpuhp10 < 200) && (_root.dead6 == false)) {
_root.limit(this);
_root.getHurt(this, _root.user);
_root.findUser(this, 4, 30, _root.dead6);
_root.findUserY(this, 2, -10);
_root.walkCpu(this, _root.user);
trace(_root.counter5);
_root.userHurt(this, _root.user);
_root.killCpu(this, _root.cpuhp6, 101);
_root.lifeDeduct(_root.user, this, 5, 20, _root.cpuhp6);
_root.getLife(this, 2);
}
}
onClipEvent (enterFrame) {
if ((_root.user._x < this._x) && (_root.cpuhp6 > 0)) {
this._xscale = 30;
} else if ((_root.user._x > this._x) && (_root.cpuhp6 > 0)) {
this._xscale = -30;
}
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && (_root.counter6 < 31)) {
_root.counter6++;
}
}
onClipEvent (enterFrame) {
var either = int(Math.random() * 3);
if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 0)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack1");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 1)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
} else if (((((_root.counter6 == 30) && (this._currentframe == 1)) && (either == 2)) && (_root.cpuhp6 > 0)) && (_root.userHp > 0)) {
this.gotoAndPlay("attack2");
}
}
onClipEvent (enterFrame) {
if (_root.counter6 == 30) {
_root.counter6 = _root.counter6 - 30;
}
}
onClipEvent (enterFrame) {
var val1 = 5;
var val2 = 10;
if (_root.user.hit.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val1;
} else if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
} else if (_root.user.smash.hitTest(this) && (_root.cpuhp6 > 0)) {
_root.cpuhp6 = _root.cpuhp6 - val2;
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
this.gotoAndStop(101);
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 100);
}
onClipEvent (enterFrame) {
if (_root.dead6 == true) {
this._alpha = this._alpha - 10;
_root.cpuhp6 = 0;
}
}
onClipEvent (enterFrame) {
if (((this._y > 200) && (_root.dead3 == true)) && (_root.dead4 == true)) {
this.swapDepths(1);
} else if (this._y < 200) {
this.swapDepths(50);
}
}
Instance of Symbol 303 MovieClip "user" in Frame 141 (5.11 KiB) ● ●
onClipEvent (load) {
if ((this._currentframe < 272) && (_root.withWeapon == true)) {
this.gotoAndPlay(272);
}
}
onClipEvent (enterFrame) {
_root.walk(this);
_root.walkWep(this);
_root.moveOn(this);
_root.moveOnWithWep(this);
_root.reverseX(this, 30, _root.cpu);
_root.jumpAround(this);
_root.gravityPull(this);
_root.smashThis(this, _root.cpu, _root.cpuhp3);
_root.smashThis(this, _root.cpu2, _root.cpuhp4);
_root.smashThis(this, _root.cpu3, _root.cpuhp5);
_root.smashThis(this, _root.cpu4, _root.cpuhp6);
_root.smashThis(this, _root.cpu5, _root.cpuhp7);
_root.smashThis(this, _root.cpu6, _root.cpuhp8);
_root.smashThis(this, _root.cpu7, _root.cpuhp9);
_root.smashThis(this, _root.cpu8, _root.cpuhp10);
}
onClipEvent (enterFrame) {
if (_root.attackCount == 6) {
_root.attackCount = _root.attackCount - 6;
}
}
onClipEvent (enterFrame) {
if (_root.kickCount == 3) {
_root.kickCount = _root.kickCount - 3;
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else if (this._x < 10) {
this._x = 10;
} else if (this._y < 88) {
this._y = 88;
} else if (this._y > 300) {
this._y = 300;
}
}
onClipEvent (enterFrame) {
if (this._y > 200) {
this.swapDepths(50);
} else if (this._y < 200) {
this.swapDepths(0);
}
}
onClipEvent (enterFrame) {
if (((_root.userHp <= 0) && (this._currentframe == 62)) && (_root.killClock > 30)) {
_root.gotoAndPlay("gameOver");
trace(_root.killClock);
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
this.gotoAndPlay(61);
}
}
onClipEvent (enterFrame) {
if (_root.withWeapon == false) {
if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 0)) {
this.gotoAndPlay("whack");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 1)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 2)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("attack3");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 4)) {
this.gotoAndPlay("attack1");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(17) && (this._currentframe == 1)) && (_root.downKey == false)) && (_root.attackCount == 5)) {
this.gotoAndPlay("attack4");
_root.downKey = true;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount < 3)) {
this.gotoAndPlay("attack5");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((Key.isDown(16) && (this._currentframe == 1)) && (_root.special > 0)) {
this.gotoAndPlay("jumpKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swiftKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if (((Key.isDown(32) && (this._currentframe == 1)) && (_root.special > 0)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("dropKick");
_root.special = _root.special - 1;
_root.attackCount = _root.attackCount + 1;
} else if ((this._currentframe == 1) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
trace(_root.withWeapon);
if (_root.withWeapon == true) {
var myFrame = 272;
if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount <= 2)) {
this.gotoAndPlay("swingWeapon");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount == 3)) {
this.gotoAndPlay("swingWeapon2");
_root.downKey = true;
_root.attackCount++;
} else if (((Key.isDown(17) && (this._currentframe == myFrame)) && (_root.downKey == false)) && (_root.attackCount >= 4)) {
this.gotoAndPlay("swingWeapon3");
_root.downKey = true;
_root.attackCount++;
} else if ((this._currentframe == myFrame) && (!Key.isDown(17))) {
_root.downKey = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.userHp <= 0) {
_root.killClock++;
}
}
Frame 146 (264 B)
removeMovieClip(_root.user);
_root.cpu.removeMovieClip();
_root.cpu2.removeMovieClip();
_root.cpu3.removeMovieClip();
_root.cpu4.removeMovieClip();
_root.cpu5.removeMovieClip();
_root.cpu6.removeMovieClip();
_root.cpu7.removeMovieClip();
passThru = false;
Frame 161 (153 B)
stopAllSounds();
f = 0;
while (f < 1) {
mySound = new Sound();
mySound.attachSound("stage2");
mySound.start(0.005, 9999);
f++;
}
stop();
Symbol 29 Button (47 B)
on (press) {
_root.gotoAndPlay("preStage1");
}
Symbol 36 Button (44 B)
on (press) {
_root.gotoAndPlay("round1");
}
Symbol 49 Button (160 B)
on (press) {
if (_root.continues > 0) {
_root.gotoAndPlay(_root.currentRound);
_root.userHp = 100;
_root.continues--;
_root._root.special = 10;
}
}
Symbol 50 Button (38 B)
on (press) {
gotoAndPlay ("title");
}
Symbol 51 Button (70 B)
on (press) {
getURL ("http://www.relentlesscreations.com", _blank);
}
Symbol 134 MovieClip Frame 1 (8 B)
stop();
Symbol 134 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 25 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 45 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 69 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 88 (23 B)
gotoAndPlay ("still");
Symbol 134 MovieClip Frame 110 (23 B)
gotoAndPlay ("still");
Symbol 149 MovieClip Frame 1 (8 B)
stop();
Symbol 149 MovieClip Frame 7 (8 B)
stop();
Symbol 278 MovieClip Frame 1 (8 B)
stop();
Symbol 278 MovieClip Frame 2 (8 B)
stop();
Symbol 303 MovieClip Frame 1 (8 B)
stop();
Symbol 303 MovieClip Frame 8 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 27 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 44 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 49 (1 B)
Symbol 303 MovieClip Frame 63 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 68 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 81 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 111 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 136 (8 B)
stop();
Symbol 303 MovieClip Frame 160 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 170 (24 B)
gotoAndPlay ("still2");
Symbol 303 MovieClip Frame 187 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 201 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 202 (1 B)
Symbol 303 MovieClip Frame 218 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 250 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 263 (24 B)
gotoAndPlay ("still2");
Symbol 303 MovieClip Frame 271 (24 B)
gotoAndPlay ("still2");
Symbol 303 MovieClip Frame 272 (8 B)
stop();
Symbol 303 MovieClip Frame 279 (23 B)
gotoAndPlay ("still");
Symbol 303 MovieClip Frame 288 (24 B)
gotoAndPlay ("still2");
Symbol 303 MovieClip Frame 301 (24 B)
gotoAndPlay ("still2");
Symbol 343 MovieClip Frame 1 (8 B)
stop();
Symbol 343 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 343 MovieClip Frame 25 (23 B)
gotoAndPlay ("still");
Symbol 343 MovieClip Frame 35 (23 B)
gotoAndPlay ("still");
Symbol 343 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 343 MovieClip Frame 105 (23 B)
gotoAndPlay ("still");
Symbol 349 MovieClip Frame 1 (8 B)
stop();
Symbol 349 MovieClip Frame 59 (17 B)
gotoAndPlay (1);
Symbol 368 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 368 MovieClip "tire" in Symbol 369 MovieClip Frame 1 (204 B)
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else if (Key.isDown(37) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 368 MovieClip "tire2" in Symbol 369 MovieClip Frame 1 (204 B)
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else if (Key.isDown(37) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
}
}
Symbol 381 MovieClip Frame 1 (8 B)
stop();
Symbol 381 MovieClip Frame 17 (17 B)
gotoAndPlay (6);
Symbol 420 MovieClip Frame 1 (8 B)
stop();
Symbol 420 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 25 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 57 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 69 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 89 (23 B)
gotoAndPlay ("still");
Symbol 420 MovieClip Frame 105 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 1 (8 B)
stop();
Symbol 469 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 25 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 45 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 69 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 89 (23 B)
gotoAndPlay ("still");
Symbol 469 MovieClip Frame 109 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 1 (8 B)
stop();
Symbol 535 MovieClip Frame 9 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 27 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 44 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 49 (1 B)
Symbol 535 MovieClip Frame 63 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 68 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 89 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 111 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 136 (8 B)
stop();
Symbol 535 MovieClip Frame 160 (23 B)
gotoAndPlay ("still");
Symbol 535 MovieClip Frame 171 (23 B)
gotoAndPlay ("still");
Symbol 538 Button (28 B)
on (press) {
nextFrame();
}
Symbol 545 Button (44 B)
on (press) {
_root.gotoAndPlay("round4");
}
Symbol 547 MovieClip Frame 30 (8 B)
stop();
Symbol 547 MovieClip Frame 31 (8 B)
stop();
Symbol 547 MovieClip Frame 32 (8 B)
stop();
Symbol 547 MovieClip Frame 33 (8 B)
stop();
Symbol 547 MovieClip Frame 34 (8 B)
stop();
Symbol 547 MovieClip Frame 35 (8 B)
stop();
Symbol 547 MovieClip Frame 36 (8 B)
stop();
Symbol 556 Button (44 B)
on (press) {
_root.gotoAndPlay("round6");
}
Symbol 558 MovieClip Frame 20 (8 B)
stop();
Symbol 558 MovieClip Frame 21 (8 B)
stop();
Symbol 558 MovieClip Frame 22 (8 B)
stop();
Symbol 606 MovieClip Frame 1 (8 B)
stop();
Symbol 606 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 17 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 27 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 58 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 79 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 606 MovieClip Frame 110 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 1 (8 B)
stop();
Symbol 675 MovieClip Frame 10 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 25 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 37 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 45 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 69 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 84 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 89 (23 B)
gotoAndPlay ("still");
Symbol 675 MovieClip Frame 105 (23 B)
gotoAndPlay ("still");
Symbol 685 Button (45 B)
on (press) {
_root.gotoAndPlay("round13");
}
Symbol 687 MovieClip Frame 30 (8 B)
stop();
Symbol 687 MovieClip Frame 31 (8 B)
stop();
Symbol 687 MovieClip Frame 32 (8 B)
stop();
Symbol 687 MovieClip Frame 33 (8 B)
stop();
Symbol 687 MovieClip Frame 34 (8 B)
stop();
Symbol 687 MovieClip Frame 35 (8 B)
stop();
Symbol 687 MovieClip Frame 36 (8 B)
stop();
Symbol 687 MovieClip Frame 37 (8 B)
stop();