Frame 9
_root.firing = 0;
_root.airfiring = 0;
_root.p2firing = 0;
_root.enemyhit = 0;
_root.kills = 0;
_root.bgflash = 0;
_root.SP = 0;
_root.Combo = 0;
_root.ComboTimer = 0;
_root.KO = 0;
Frame 10
stop();
Instance of Symbol 39 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.bgflash == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 41 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = _root.guy._x;
}
Instance of Symbol 176 MovieClip "guy" in Frame 10
onClipEvent (load) {
this.hp = 100;
this.atk = 40;
this.attdmg = 100;
this.def = 50;
this.speed = 15;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.jumps = 2;
this.dbljump = 0;
this.gravity = 4;
this.fallspeed = 0;
this.specialmax = 3;
this.special = 0;
this.alive = 1;
this.attacking = 0;
this.canatt = 1;
this.canhit = 0;
this.stanceidle = 0;
this.crouch = 0;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 0;
this.blockhit = 0;
this.dash = 0;
this.throwing = 0;
this.throwhit = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.attALP = 0;
this.attAHP = 0;
this.attALK = 0;
gotoAndStop (1);
this.btnLP = 90;
this.btnHP = 65;
this.btnLK = 88;
this.btnHK = 83;
this.btnCounter = 81;
this.btnBlock = 87;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.hp < 100) {
this.hp = this.hp + 0.1;
}
if (_root.enemyhit == 1) {
gotoAndStop (9);
this.counter = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.moving = 0;
this.crouch = 0;
this.attacking = 0;
this.countering = 0;
this.blocking = 0;
this.throwing = 0;
this.throwhit = 0;
if (Key.isDown(87)) {
if ((this.canatt == 1) && (this._y < 400)) {
this.counter = 0;
this.blocking = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.throwing = 0;
}
}
} else if (this._y < 400) {
this.crouch = 0;
if (Key.isDown(90)) {
if (this.canatt == 1) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 1;
this.attALK = 0;
this.attAHP = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (Key.isDown(88)) {
if (this.canatt == 1) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 0;
this.attALK = 1;
this.attAHP = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (Key.isDown(65)) {
if (((this.canatt == 1) && (_root.SP > 9)) && (_root.airfiring == 0)) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 0;
this.attALK = 0;
this.attAHP = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (this.jumping == 0) {
this.fallspeed = this.fallspeed + this.gravity;
this._y = this._y + this.fallspeed;
if (this.attALP == 0) {
gotoAndStop (2);
}
this.falling = 1;
if (Key.isDown(37)) {
if (this._x > 0) {
this._x = this._x - this.speed;
}
this._xscale = -100;
}
if (Key.isDown(39)) {
if (this._x < 700) {
this._x = this._x + this.speed;
this._xscale = 100;
}
}
} else if (this.jumping == 1) {
this.fallspeed = this.fallspeed + this.gravity;
this._y = this._y + this.fallspeed;
if (((this.attALP == 0) && (this.attAHP == 0)) && (this.attALK == 0)) {
gotoAndStop (5);
}
this.falling = 1;
if (Key.isDown(37)) {
if (this._x > 0) {
this._x = this._x - this.speed;
if (this.dash == 1) {
this._x = this._x - this.speed;
}
}
this._xscale = -100;
}
if (Key.isDown(39)) {
if (this._x < 700) {
this._x = this._x + this.speed;
if (this.dash == 1) {
this._x = this._x + this.speed;
}
}
this._xscale = 100;
}
if (this.attALP == 1) {
gotoAndStop (21);
}
if (this.attAHP == 1) {
gotoAndStop (22);
}
if (this.attALK == 1) {
gotoAndStop (25);
if (this._xscale == -100) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
if (Key.isDown(38)) {
if (this.dbljump == 2) {
this.dbljump = 1;
this.fallspeed = -40;
gotoAndStop (3);
gotoAndStop (2);
this.jumping = 0;
this.blocking = 0;
}
}
}
} else {
if (this.hp < 1) {
this.alive = 0;
this.blocking = 0;
this.countering = 0;
this.counterhit = 0;
this.throwing = 0;
}
if (this.attALP == 1) {
this.canhit = 0;
this.attALP = 0;
}
if (this.attALK == 1) {
this.canhit = 0;
this.attALK = 0;
this.attacking = 0;
}
if (this.attAHP == 1) {
this.canhit = 0;
this.attAHP = 0;
}
this._y = 401;
this.jumping = 0;
this.dbljump = 1;
if (Key.isDown(87)) {
if (this.canatt == 1) {
this.throwing = 0;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
if (Key.isDown(32)) {
if (this.canatt == 1) {
this.attacking = 1;
this.throwing = 1;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
if (Key.isDown(81)) {
if (this.canatt == 1) {
if (Key.isDown(37) || (Key.isDown(39))) {
this.throwing = 0;
this.counter = 0;
this.dash = 1;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.countering = 0;
} else {
this.throwing = 0;
this.counter = 1;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
}
if (Key.isDown(90)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1;
this.attLP = 1;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.dash = 0;
}
}
if (Key.isDown(88)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1.2;
this.attLP = 0;
this.attHP = 0;
this.attLK = 1;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.dash = 0;
}
}
if (Key.isDown(83)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 2.5;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 1;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.canatt = 0;
this.dash = 0;
}
}
if (Key.isDown(65)) {
if ((this.canatt == 1) && (_root.firing == 0)) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1;
this.attLP = 0;
this.attHP = 1;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.canatt = 0;
this.dash = 0;
}
}
if (Key.isDown(38) && (this.attHK != 1)) {
this.throwing = 0;
this.fallspeed = -40;
this.blocking = 0;
this._y = 395;
this.jumping = 1;
this.falling = 1;
this.stanceidle = 0;
this.attacking = 0;
this.dash = 0;
}
if (Key.isDown(37)) {
if (this.attacking == 0) {
if (this._x > 0) {
if (this.crouch == 1) {
this._x = this._x - (this.speed / 2);
} else {
this._x = this._x - this.speed;
}
this.stanceidle = 0;
this.moving = 1;
}
this._xscale = -100;
}
} else if (Key.isDown(39)) {
if (this.attacking == 0) {
if (this._x < 700) {
if (this.crouch != 0) {
this._x = this._x + (this.speed / 2);
} else {
this._x = this._x + this.speed;
}
this.stanceidle = 0;
this.moving = 1;
}
this._xscale = 100;
}
} else {
this.moving = 0;
this.dash = 0;
this.stanceidle = 1;
}
if (Key.isDown(40)) {
if (this.crouch == 0) {
this.crouch = 2;
this.dash = 0;
}
}
if (this.counter == 1) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
if (this.counterhit == 0) {
gotoAndStop (19);
} else {
gotoAndStop (20);
}
}
if (this.blocking == 1) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
gotoAndStop (23);
}
if (this.attHK == 0) {
if (this.attLP == 1) {
if (this.crouch == 1) {
gotoAndStop (16);
} else {
this.crouch = 0;
gotoAndStop (7);
}
this.stanceidle = 0;
this.moving = 0;
}
if (this.attHP == 1) {
if (this.crouch == 1) {
gotoAndStop (17);
} else {
this.crouch = 0;
gotoAndStop (8);
}
this.stanceidle = 0;
this.moving = 0;
}
if (this.attLK == 1) {
if (this.crouch == 1) {
gotoAndStop (18);
} else {
this.crouch = 0;
gotoAndStop (10);
}
this.stanceidle = 0;
this.moving = 0;
}
}
if (this.attHK == 1) {
gotoAndStop (11);
this.stanceidle = 0;
this.moving = 0;
this.attacking = 1;
this.crouch = 0;
}
if (this.throwing == 1) {
if (this.throwhit == 1) {
gotoAndStop (27);
} else {
gotoAndStop (26);
}
this.attacking = 1;
this.canatt = 0;
this.stanceidle = 0;
this.moving = 0;
}
if ((this.falling == 1) && (this.jumping == 0)) {
gotoAndStop (3);
this.fallspeed = 0;
this.moving = 0;
this.stanceidle = 0;
}
if (this.stanceidle == 1) {
if (this.crouch == 2) {
gotoAndStop (13);
} else if (this.crouch == 1) {
gotoAndStop (12);
if (Key.isDown(40)) {
} else {
this.crouch = 3;
}
} else if (this.crouch == 3) {
gotoAndStop (14);
} else {
gotoAndStop (1);
this.crouch = 0;
}
this.falling = 0;
}
if ((this.moving == 1) && (this.dash == 0)) {
if (this.crouch == 1) {
gotoAndStop (15);
} else {
gotoAndStop (6);
}
}
if (this.dash == 1) {
gotoAndStop (24);
this.canatt = 0;
}
if (this.attacking == 0) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.canatt = 1;
}
}
} else {
gotoAndStop (4);
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 10
onClipEvent (load) {
this.hp = 300;
this.attack = 7;
this.defense = random(80);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 249 MovieClip "fireball" in Frame 10
onClipEvent (load) {
this.speed = 25;
this.damage = 20;
this.exists = 1;
this.aim = _root.guy._xscale;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.firing == 1) {
this.aim = _root.guy._xscale;
this._xscale = _root.guy._xscale;
this._x = _root.guy._x + (50 * (this.aim / 100));
this._y = _root.guy._y - 70;
_root.firing = 2;
}
if ((this._x > 750) || (this._x < -50)) {
_root.firing = 0;
this.gotoAndStop(1);
}
this._x = this._x + (this.speed * (this.aim / 100));
}
Instance of Symbol 249 MovieClip "airfireball" in Frame 10
onClipEvent (load) {
this.speed = 15;
this.fallspeed = 15;
this.damage = 10;
this.exists = 1;
this.aim = _root.guy._xscale;
gotoAndStop (4);
}
onClipEvent (enterFrame) {
if (_root.airfiring == 1) {
this.aim = _root.guy._xscale;
this._xscale = _root.guy._xscale;
this._x = _root.guy._x + (50 * (this.aim / 100));
this._y = _root.guy._y - 70;
_root.airfiring = 2;
}
if ((this._x > 750) || (this._x < -50)) {
_root.airfiring = 0;
this._y = 810;
this.gotoAndStop(3);
}
if (this._y < 400) {
this._x = this._x + (this.speed * (this.aim / 100));
this._y = this._y + this.fallspeed;
} else if (this._y < 799) {
gotoAndStop (4);
}
}
Instance of Symbol 275 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.Combo > 3) {
gotoAndStop (2);
_root.ComboTimer = _root.ComboTimer - 2;
}
if (_root.ComboTimer < 1) {
_root.Combo = 0;
gotoAndStop (1);
}
}
Frame 12
stop();
Instance of Symbol 39 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.bgflash == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 41 MovieClip in Frame 12
onClipEvent (enterFrame) {
this._x = _root.guy._x;
}
Instance of Symbol 176 MovieClip "guy" in Frame 12
onClipEvent (load) {
this.hp = 100;
this.atk = 100;
this.attdmg = 100;
this.def = 50;
this.speed = 15;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.jumps = 2;
this.dbljump = 0;
this.gravity = 4;
this.fallspeed = 0;
this.specialmax = 3;
this.special = 0;
this.alive = 1;
this.attacking = 0;
this.canatt = 1;
this.canhit = 0;
this.stanceidle = 0;
this.crouch = 0;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 0;
this.blockhit = 0;
this.dash = 0;
this.throwing = 0;
this.throwhit = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.attALP = 0;
this.attAHP = 0;
this.attALK = 0;
gotoAndStop (1);
this.btnLP = 90;
this.btnHP = 65;
this.btnLK = 88;
this.btnHK = 83;
this.btnCounter = 81;
this.btnBlock = 87;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.hp < 100) {
this.hp = this.hp + 0.1;
}
if (_root.enemyhit == 1) {
gotoAndStop (9);
this.counter = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.moving = 0;
this.crouch = 0;
this.attacking = 0;
this.countering = 0;
this.blocking = 0;
this.throwing = 0;
this.throwhit = 0;
if (Key.isDown(87)) {
if ((this.canatt == 1) && (this._y < 400)) {
this.counter = 0;
this.blocking = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.throwing = 0;
}
}
} else if (this._y < 400) {
this.crouch = 0;
if (Key.isDown(90)) {
if (this.canatt == 1) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 1;
this.attALK = 0;
this.attAHP = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (Key.isDown(88)) {
if (this.canatt == 1) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 0;
this.attALK = 1;
this.attAHP = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (Key.isDown(65)) {
if (((this.canatt == 1) && (_root.SP > 9)) && (_root.airfiring == 0)) {
this.attacking = 1;
this.attdmg = this.atk * 1;
this.attALP = 0;
this.attALK = 0;
this.attAHP = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.blocking = 0;
this.throwing = 0;
}
}
if (this.jumping == 0) {
this.fallspeed = this.fallspeed + this.gravity;
this._y = this._y + this.fallspeed;
if (this.attALP == 0) {
gotoAndStop (2);
}
this.falling = 1;
if (Key.isDown(37)) {
if (this._x > 0) {
this._x = this._x - this.speed;
}
this._xscale = -100;
}
if (Key.isDown(39)) {
if (this._x < 700) {
this._x = this._x + this.speed;
this._xscale = 100;
}
}
} else if (this.jumping == 1) {
this.fallspeed = this.fallspeed + this.gravity;
this._y = this._y + this.fallspeed;
if (((this.attALP == 0) && (this.attAHP == 0)) && (this.attALK == 0)) {
gotoAndStop (5);
}
this.falling = 1;
if (Key.isDown(37)) {
if (this._x > 0) {
this._x = this._x - this.speed;
if (this.dash == 1) {
this._x = this._x - this.speed;
}
}
this._xscale = -100;
}
if (Key.isDown(39)) {
if (this._x < 700) {
this._x = this._x + this.speed;
if (this.dash == 1) {
this._x = this._x + this.speed;
}
}
this._xscale = 100;
}
if (this.attALP == 1) {
gotoAndStop (21);
}
if (this.attAHP == 1) {
gotoAndStop (22);
}
if (this.attALK == 1) {
gotoAndStop (25);
if (this._xscale == -100) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
if (Key.isDown(38)) {
if (this.dbljump == 2) {
this.dbljump = 1;
this.fallspeed = -40;
gotoAndStop (3);
gotoAndStop (2);
this.jumping = 0;
this.blocking = 0;
this.attHK = 0;
}
}
}
} else {
if (this.hp < 1) {
this.alive = 0;
this.blocking = 0;
this.countering = 0;
this.counterhit = 0;
this.throwing = 0;
}
if (this.attALP == 1) {
this.canhit = 0;
this.attALP = 0;
}
if (this.attALK == 1) {
this.canhit = 0;
this.attALK = 0;
this.attacking = 0;
}
if (this.attAHP == 1) {
this.canhit = 0;
this.attAHP = 0;
}
this._y = 401;
this.jumping = 0;
this.dbljump = 1;
if (Key.isDown(87)) {
if (this.canatt == 1) {
this.throwing = 0;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 1;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
if (Key.isDown(32)) {
if (this.canatt == 1) {
this.attacking = 1;
this.throwing = 1;
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
if (Key.isDown(81)) {
if (this.canatt == 1) {
if (Key.isDown(37) || (Key.isDown(39))) {
this.throwing = 0;
this.counter = 0;
this.dash = 1;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.countering = 0;
} else {
this.throwing = 0;
this.counter = 1;
this.blocking = 0;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.attacking = 0;
this.canhit = 0;
this.dash = 0;
}
}
}
if (Key.isDown(90)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1;
this.attLP = 1;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.dash = 0;
}
}
if (Key.isDown(88)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1.2;
this.attLP = 0;
this.attHP = 0;
this.attLK = 1;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.dash = 0;
}
}
if (Key.isDown(83)) {
if (this.canatt == 1) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 2.5;
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 1;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.canatt = 0;
this.dash = 0;
}
}
if (Key.isDown(65)) {
if ((this.canatt == 1) && (_root.firing == 0)) {
this.throwing = 0;
this.attacking = 1;
this.blocking = 0;
this.attdmg = this.atk * 1;
this.attLP = 0;
this.attHP = 1;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
this.canatt = 0;
this.dash = 0;
}
}
if (Key.isDown(38)) {
this.throwing = 0;
this.fallspeed = -40;
this.blocking = 0;
this._y = 395;
this.attHK = 0;
this.jumping = 1;
this.falling = 1;
this.stanceidle = 0;
this.attacking = 0;
this.dash = 0;
}
if (Key.isDown(37)) {
if (this.attacking == 0) {
if (this._x > 0) {
if (this.crouch == 1) {
this._x = this._x - (this.speed / 2);
} else {
this._x = this._x - this.speed;
}
this.stanceidle = 0;
this.moving = 1;
}
this._xscale = -100;
}
} else if (Key.isDown(39)) {
if (this.attacking == 0) {
if (this._x < 700) {
if (this.crouch != 0) {
this._x = this._x + (this.speed / 2);
} else {
this._x = this._x + this.speed;
}
this.stanceidle = 0;
this.moving = 1;
}
this._xscale = 100;
}
} else {
this.moving = 0;
this.dash = 0;
this.stanceidle = 1;
}
if (Key.isDown(40)) {
if (this.crouch == 0) {
this.crouch = 2;
this.dash = 0;
}
}
if (this.counter == 1) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
if (this.counterhit == 0) {
gotoAndStop (19);
} else {
gotoAndStop (20);
}
}
if (this.blocking == 1) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.stanceidle = 0;
this.moving = 0;
this.falling = 0;
this.jumping = 0;
gotoAndStop (23);
}
if (this.attHK == 0) {
if (this.attLP == 1) {
if (this.crouch == 1) {
gotoAndStop (16);
} else {
this.crouch = 0;
gotoAndStop (7);
}
this.stanceidle = 0;
this.moving = 0;
}
if (this.attHP == 1) {
if (this.crouch == 1) {
gotoAndStop (17);
} else {
this.crouch = 0;
gotoAndStop (8);
}
this.stanceidle = 0;
this.moving = 0;
}
if (this.attLK == 1) {
if (this.crouch == 1) {
gotoAndStop (18);
} else {
this.crouch = 0;
gotoAndStop (10);
}
this.stanceidle = 0;
this.moving = 0;
}
}
if (this.attHK == 1) {
gotoAndStop (11);
this.stanceidle = 0;
this.moving = 0;
this.attacking = 1;
this.crouch = 0;
}
if (this.throwing == 1) {
if (this.throwhit == 1) {
gotoAndStop (27);
} else {
gotoAndStop (26);
}
this.attacking = 1;
this.canatt = 0;
this.stanceidle = 0;
this.moving = 0;
}
if ((this.falling == 1) && (this.jumping == 0)) {
gotoAndStop (3);
this.fallspeed = 0;
this.moving = 0;
this.stanceidle = 0;
}
if (this.stanceidle == 1) {
if (this.crouch == 2) {
gotoAndStop (13);
} else if (this.crouch == 1) {
gotoAndStop (12);
if (Key.isDown(40)) {
} else {
this.crouch = 3;
}
} else if (this.crouch == 3) {
gotoAndStop (14);
} else {
gotoAndStop (1);
this.crouch = 0;
}
this.falling = 0;
}
if ((this.moving == 1) && (this.dash == 0)) {
if (this.crouch == 1) {
gotoAndStop (15);
} else {
gotoAndStop (6);
}
}
if (this.dash == 1) {
gotoAndStop (24);
this.canatt = 0;
}
if (this.attacking == 0) {
this.attLP = 0;
this.attHP = 0;
this.attLK = 0;
this.attHK = 0;
this.canatt = 1;
}
}
} else {
gotoAndStop (4);
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
}
}
Instance of Symbol 320 MovieClip "boss" in Frame 12
onClipEvent (load) {
this.hpmax = 1000;
this.hp = 1000;
this.hit = 0;
this.canhit = 0;
this.attacking = 0;
this.attack = 0;
this.strategy = 0;
this.strategytime = 5;
this.teleport = 0;
}
onClipEvent (enterFrame) {
if (this.hp > 1) {
if (this.attacking != 1) {
if (_root.guy._x < this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
if (((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (this.teleport != 1)) && (this.attacking != 1)) {
this.hit = 1;
this.hp = this.hp - (_root.guy.attdmg / 50);
} else if (this.hitTest(_root.guy) && (_root.guy.canhit == 1)) {
this.hp = this.hp - (_root.guy.attdmg / 50);
} else if ((this.hitTest(_root.fireball) && (this.teleport != 1)) && (this.attacking != 1)) {
this.hit = 1;
this.hp = this.hp - (_root.fireball.damage / 3);
_root.fireball.gotoAndStop(2);
} else if ((this.hitTest(_root.airfireball) && (this.teleport != 1)) && (this.attacking != 1)) {
this.hit = 1;
this.hp = this.hp - (_root.airfireball.damage / 3);
} else {
this.hit = 0;
}
if (this.hit == 1) {
gotoAndStop (2);
} else if (this.teleport == 1) {
gotoAndStop (3);
} else if (this.attacking == 1) {
if (this.attack == "Missile") {
gotoAndStop (4);
} else if (this.attack == "Crash") {
gotoAndStop (5);
}
} else {
gotoAndStop (1);
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
this.attacking = 0;
if (this.strategy < 1) {
this.teleport = 1;
} else if (this.strategy < 2) {
this.attacking = 1;
this.attack = "Missile";
this.strategytime = 66;
} else if (this.strategy < 3) {
this.attacking = 1;
this.attack = "Crash";
this.strategytime = 82;
} else {
this.teleport = 0;
}
}
this.strategytime = this.strategytime - 1;
} else {
gotoAndStop (6);
}
}
Instance of Symbol 223 MovieClip in Frame 12
onClipEvent (load) {
this.hp = 300;
this.attack = 5;
this.defense = random(50);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 223 MovieClip in Frame 12
onClipEvent (load) {
this.hp = 300;
this.attack = 5;
this.defense = random(50);
this.alive = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 0;
this.strategytime = 5;
this.hit = 0;
this.inrange = 0;
this.counterhit = 0;
this.blockhit = 0;
this.blocking = 0;
this.thrown = 0;
this.throwhit = 0;
}
onClipEvent (enterFrame) {
if (this.alive == 1) {
if (this.counterhit == 1) {
gotoAndStop (7);
} else if (this.blockhit == 1) {
gotoAndStop (8);
} else if (this.thrown == 1) {
gotoAndStop (10);
} else {
if (this.hitTest(_root.guy) && (this.attacking == 0)) {
this.inrange = 1;
}
if (this.hitTest(_root.fireball)) {
this.hit = 3;
this.hp = this.hp - _root.fireball.damage;
_root.fireball.gotoAndStop(2);
}
if (this.hitTest(_root.airfireball)) {
this.hit = 3;
this.hp = this.hp - _root.airfireball.damage;
}
if ((this.hitTest(_root.guy) && (_root.guy.canhit == 1)) && (_root.guy.throwhit != 1)) {
if (_root.guy.throwing == 1) {
_root.guy.throwhit = 1;
this.blocking = 0;
this.blockhit = 0;
this.moving = 0;
this.attacking = 0;
this.strategy = 2;
this.strategytime = 150;
this.thrown = 1;
} else if (this.blocking == 0) {
this.hit = 1;
_root.guy.canhit = 0;
this.hp = (this.hp - _root.guy.attdmg) - this.defense;
} else {
this.blocking = 0;
this.blockhit = 1;
this.moving = 0;
this.attacking = 0;
this.strategy = 3;
}
}
if (this.hit != 0) {
gotoAndStop (2);
this.moving = 0;
this.attacking = 0;
this.inrange = 0;
} else {
if (this.blocking == 1) {
this.attacking = 0;
this.inrange = 0;
this.moving = 0;
}
if (this.inrange == 1) {
this.attacking = 1;
this.inrange = 0;
this.moving = 0;
}
if (this.attacking == 1) {
gotoAndStop (6);
this.moving = 0;
this.inrange = 0;
} else if ((this.moving == 1) || (this.moving == 2)) {
gotoAndStop (3);
this.inrange = 0;
} else if (this.blocking == 1) {
gotoAndStop (9);
} else {
gotoAndStop (1);
}
}
this.strategytime = this.strategytime - 1;
if (this.strategy < 2) {
this.moving = 0;
this.blocking = 0;
} else if (this.strategy < 3) {
this.moving = 1;
this.blocking = 0;
} else if (this.strategy < 4) {
this.moving = 2;
this.blocking = 0;
} else if (this.strategy < 5) {
this.moving = 0;
this.blocking = 1;
}
if (this.strategytime < 0) {
this.strategy = random(5);
this.strategytime = random(40);
if (this.strategy == 3) {
this.strategytime = random(20);
}
}
if ((this.hit == 0) && (this.attacking == 0)) {
if (this.moving == 1) {
if (_root.guy._x < this._x) {
this._x = this._x - 5;
this._xscale = 100;
} else {
this._x = this._x + 5;
this._xscale = -100;
}
}
if (this.moving == 2) {
if (_root.guy._x < this._x) {
this._x = this._x + 2;
this._xscale = 100;
} else {
this._x = this._x - 2;
this._xscale = -100;
}
}
}
if (this.hp < 1) {
if ((_root.guy.attHK == 1) || (_root.guy.attHP == 1)) {
this.alive = 2;
} else {
this.alive = 0;
}
}
}
} else {
if (this.alive == 2) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
this.hit = 0;
}
}
Instance of Symbol 249 MovieClip "fireball" in Frame 12
onClipEvent (load) {
this.speed = 25;
this.damage = 20;
this.exists = 1;
this.aim = _root.guy._xscale;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.firing == 1) {
this.aim = _root.guy._xscale;
this._xscale = _root.guy._xscale;
this._x = _root.guy._x + (50 * (this.aim / 100));
this._y = _root.guy._y - 70;
_root.firing = 2;
}
if ((this._x > 750) || (this._x < -50)) {
_root.firing = 0;
this.gotoAndStop(1);
}
this._x = this._x + (this.speed * (this.aim / 100));
}
Instance of Symbol 249 MovieClip "airfireball" in Frame 12
onClipEvent (load) {
this.speed = 15;
this.fallspeed = 15;
this.damage = 10;
this.exists = 1;
this.aim = _root.guy._xscale;
gotoAndStop (4);
}
onClipEvent (enterFrame) {
if (_root.airfiring == 1) {
this.aim = _root.guy._xscale;
this._xscale = _root.guy._xscale;
this._x = _root.guy._x + (50 * (this.aim / 100));
this._y = _root.guy._y - 70;
_root.airfiring = 2;
}
if ((this._x > 750) || (this._x < -50)) {
_root.airfiring = 0;
this._y = 810;
this.gotoAndStop(3);
}
if (this._y < 400) {
this._x = this._x + (this.speed * (this.aim / 100));
this._y = this._y + this.fallspeed;
} else if (this._y < 799) {
gotoAndStop (4);
}
}
Instance of Symbol 275 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.Combo > 3) {
gotoAndStop (2);
_root.ComboTimer = _root.ComboTimer - 2;
}
if (_root.ComboTimer < 1) {
_root.Combo = 0;
gotoAndStop (1);
}
}
Symbol 21 Button
on (release) {
_root.play();
}
Symbol 22 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 38 MovieClip Frame 15
_root.bgflash = 0;
Instance of Symbol 47 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.guy.hp > 0) {
_parent.gotoAndStop(Math.round(101 - _root.guy.hp));
} else {
_parent.gotoAndStop(100);
}
}
Instance of Symbol 64 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.guy.hp > 0) {
_parent.gotoAndStop(Math.round(101 - _root.guy.hp));
} else {
_parent.gotoAndStop(100);
}
}
Symbol 92 MovieClip Frame 19
gotoAndPlay (8);
Symbol 94 MovieClip Frame 9
_parent.falling = 0;
_parent.stanceidle = 1;
Symbol 106 MovieClip Frame 20
stop();
Instance of Symbol 96 MovieClip in Symbol 106 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.enemyhit == 1) {
_parent.gotoAndPlay(21);
_root.enemyhit = 0;
}
}
Symbol 106 MovieClip Frame 27
gotoAndStop (20);
Symbol 108 MovieClip Frame 8
_parent.dbljump = 2;
Symbol 108 MovieClip Frame 19
gotoAndPlay (8);
Symbol 119 MovieClip Frame 3
_parent.canhit = 1;
Symbol 119 MovieClip Frame 5
_parent.canhit = 0;
Symbol 119 MovieClip Frame 7
_parent.attacking = 0;
_parent.attLP = 0;
Symbol 125 MovieClip Frame 7
_parent.canhit = 1;
_root.fbname = fb + random(500);
if (_root.SP > 9) {
_root.firing = 1;
_root.SP = _root.SP - 10;
}
Symbol 125 MovieClip Frame 10
_parent.canhit = 0;
Symbol 125 MovieClip Frame 16
_parent.attacking = 0;
_parent.attHP = 0;
Symbol 134 MovieClip Frame 2
_root.SP = _root.SP + 5;
Symbol 134 MovieClip Frame 7
_root.enemyhit = 0;
Symbol 136 MovieClip Frame 3
_parent.canhit = 1;
Symbol 136 MovieClip Frame 5
_parent.canhit = 0;
Symbol 136 MovieClip Frame 7
_parent.attacking = 0;
_parent.attLK = 0;
Symbol 137 MovieClip Frame 3
_parent.canhit = 1;
Symbol 137 MovieClip Frame 5
_parent.canhit = 0;
Symbol 137 MovieClip Frame 15
_parent.attacking = 0;
_parent.attHK = 0;
Symbol 140 MovieClip Frame 5
_parent.crouch = 1;
Symbol 141 MovieClip Frame 5
_parent.crouch = 0;
Symbol 144 MovieClip Frame 3
_parent.canhit = 1;
Symbol 144 MovieClip Frame 5
_parent.canhit = 0;
Symbol 144 MovieClip Frame 7
_parent.attacking = 0;
_parent.attLP = 0;
Symbol 145 MovieClip Frame 6
_parent.canhit = 1;
Symbol 145 MovieClip Frame 8
_parent.canhit = 0;
Symbol 145 MovieClip Frame 10
_parent.attacking = 0;
_parent.attLP = 0;
Symbol 146 MovieClip Frame 4
_parent.canhit = 1;
Symbol 146 MovieClip Frame 6
_parent.canhit = 0;
Symbol 146 MovieClip Frame 7
_parent.attacking = 0;
_parent.attLP = 0;
Symbol 147 MovieClip Frame 3
_parent.countering = 1;
Symbol 147 MovieClip Frame 8
_parent.countering = 0;
Symbol 147 MovieClip Frame 20
_parent.counter = 0;
Symbol 163 MovieClip Frame 7
if (_root.guy._xscale == -100) {
_root.guy._x = _root.guy._x - 45;
} else {
_root.guy._x = _root.guy._x + 45;
}
_root.bgflash = 1;
Symbol 163 MovieClip Frame 8
if (_root.guy._xscale == -100) {
_root.guy._x = _root.guy._x - 45;
} else {
_root.guy._x = _root.guy._x + 45;
}
Symbol 163 MovieClip Frame 9
if (_root.guy._xscale == -100) {
_root.guy._x = _root.guy._x - 45;
} else {
_root.guy._x = _root.guy._x + 45;
}
Symbol 163 MovieClip Frame 10
if (_root.guy._xscale == -100) {
_root.guy._x = _root.guy._x - 45;
} else {
_root.guy._x = _root.guy._x + 45;
}
Symbol 163 MovieClip Frame 11
if (_root.guy._xscale == -100) {
_root.guy._x = _root.guy._x - 45;
} else {
_root.guy._x = _root.guy._x + 45;
}
Symbol 163 MovieClip Frame 20
_parent.counter = 0;
_parent.counterhit = 0;
_parent.countering = 0;
Symbol 165 MovieClip Frame 5
_root.guy.canhit = 1;
Symbol 165 MovieClip Frame 6
_parent.fallspeed = 0;
Symbol 165 MovieClip Frame 7
_parent.fallspeed = _parent.fallspeed - 5;
Symbol 165 MovieClip Frame 8
_parent.fallspeed = _parent.fallspeed - 5;
Symbol 165 MovieClip Frame 9
_parent.fallspeed = _parent.fallspeed - 5;
Symbol 165 MovieClip Frame 10
_root.guy.canhit = 0;
_parent.attALP = 0;
_parent.attacking = 0;
Symbol 166 MovieClip Frame 6
_parent.fallspeed = _parent.fallspeed - 10;
Symbol 166 MovieClip Frame 7
_parent.fallspeed = _parent.fallspeed - 10;
Symbol 166 MovieClip Frame 8
_parent.fallspeed = _parent.fallspeed - 10;
_root.airfiring = 1;
_root.SP = _root.SP - 10;
Symbol 166 MovieClip Frame 9
_parent.fallspeed = _parent.fallspeed - 10;
Symbol 166 MovieClip Frame 10
_root.guy.canhit = 0;
_parent.attAHP = 0;
_parent.attacking = 0;
Symbol 167 MovieClip Frame 2
this.counter = 0;
this.countering = 0;
this.counterhit = 0;
Symbol 167 MovieClip Frame 9
if (Key.isDown(87)) {
gotoAndPlay (5);
}
Symbol 167 MovieClip Frame 13
_parent.blocking = 0;
Symbol 170 MovieClip Frame 1
if (_parent._xscale == -100) {
_parent._x = _parent._x - 5;
} else {
_parent._x = _parent._x + 5;
}
_parent.falling = 0;
Symbol 170 MovieClip Frame 2
if (_parent._xscale == -100) {
_parent._x = _parent._x - 15;
} else {
_parent._x = _parent._x + 15;
}
Symbol 170 MovieClip Frame 3
if (_parent._xscale == -100) {
_parent._x = _parent._x - 25;
} else {
_parent._x = _parent._x + 25;
}
Symbol 170 MovieClip Frame 4
if (_parent._xscale == -100) {
_parent._x = _parent._x - 20;
} else {
_parent._x = _parent._x + 20;
}
Symbol 170 MovieClip Frame 5
if (_parent._xscale == -100) {
_parent._x = _parent._x - 15;
} else {
_parent._x = _parent._x + 15;
}
Symbol 170 MovieClip Frame 6
if (_parent._xscale == -100) {
_parent._x = _parent._x - 10;
} else {
_parent._x = _parent._x + 10;
}
Symbol 170 MovieClip Frame 7
if (_parent._xscale == -100) {
_parent._x = _parent._x - 5;
} else {
_parent._x = _parent._x + 5;
}
Symbol 170 MovieClip Frame 8
if (_parent._xscale == -100) {
_parent._x = _parent._x - 3;
} else {
_parent._x = _parent._x + 3;
}
Symbol 170 MovieClip Frame 9
if (_parent._xscale == -100) {
_parent._x = _parent._x - 1;
} else {
_parent._x = _parent._x + 1;
}
Symbol 170 MovieClip Frame 10
_root.guy.dash = 0;
_root.guy.attacking = 0;
_root.guy.moving = 1;
Symbol 172 MovieClip Frame 2
_root.guy.canhit = 1;
Symbol 172 MovieClip Frame 3
_parent.fallspeed = 5;
Symbol 172 MovieClip Frame 4
_parent.fallspeed = 10;
stop();
Symbol 173 MovieClip Frame 6
_parent.canhit = 1;
Symbol 173 MovieClip Frame 10
_parent.canhit = 0;
Symbol 173 MovieClip Frame 20
_parent.canatt = 1;
_parent.throwing = 0;
_parent.throwhit = 0;
_parent.attacking = 0;
Symbol 175 MovieClip Frame 20
_parent.canatt = 1;
_parent.throwing = 0;
_parent.throwhit = 0;
_parent.attacking = 0;
_parent.canhit = 0;
Instance of Symbol 184 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.hp > 0) {
_parent.gotoAndStop(101 - Math.round(_parent._parent._parent.hp / 3));
} else {
_parent.gotoAndStop(100);
}
}
Symbol 202 MovieClip Frame 1
if (_parent._xscale == 100) {
_parent._x = _parent._x + 5;
} else {
_parent._x = _parent._x - 5;
}
if (_parent.hit != 2) {
_parent.hit = 2;
}
Symbol 202 MovieClip Frame 2
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
if (_parent._xscale == 100) {
_parent._x = _parent._x + 4;
} else {
_parent._x = _parent._x - 4;
}
Instance of Symbol 201 MovieClip in Symbol 202 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(1 + random(3));
}
onClipEvent (enterFrame) {
if (_parent._parent.hit == 1) {
_parent.gotoAndPlay(1);
}
}
Symbol 202 MovieClip Frame 3
if (_parent._xscale == 100) {
_parent._x = _parent._x + 3;
} else {
_parent._x = _parent._x - 3;
}
Symbol 202 MovieClip Frame 4
if (_parent._xscale == 100) {
_parent._x = _parent._x + 2;
} else {
_parent._x = _parent._x - 2;
}
Symbol 202 MovieClip Frame 5
if (_parent._xscale == 100) {
_parent._x = _parent._x + 1;
} else {
_parent._x = _parent._x - 1;
}
Symbol 202 MovieClip Frame 13
_parent.hit = 0;
Symbol 205 MovieClip Frame 2
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
_parent.attacking = 0;
_root.KO = _root.KO + 1;
_root.kills = _root.kills + 1;
_root.SP = _root.SP + 5;
Symbol 205 MovieClip Frame 108
_parent._x = random(800) - 200;
Symbol 205 MovieClip Frame 120
_parent.alive = 1;
_parent.hp = 300;
_parent.defense = random(60);
Symbol 206 MovieClip Frame 2
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
_parent.attacking = 0;
_root.KO = _root.KO + 1;
_root.kills = _root.kills + 1;
_root.SP = _root.SP + 5;
Symbol 206 MovieClip Frame 108
_parent._x = random(800) - 200;
Symbol 206 MovieClip Frame 120
_parent.alive = 1;
_parent.hp = 300;
_parent.defense = random(60);
Symbol 208 MovieClip Frame 12
if ((_root.guy.countering == 1) && (_parent.hitTest(_root.guy))) {
_parent.counterhit = 1;
_root.guy.counterhit = 1;
} else if ((_root.guy.blocking == 1) && (_parent.hitTest(_root.guy))) {
_parent.blockhit = 1;
} else if (_parent.hitTest(_root.guy) || (_root.guy.alive == 0)) {
_root.enemyhit = 1;
_root.guy.hp = _root.guy.hp - _parent.attack;
}
Symbol 208 MovieClip Frame 29
if ((_root.guy.countering == 1) && (_parent.hitTest(_root.guy))) {
_parent.counterhit = 1;
_root.guy.counterhit = 1;
} else if ((_root.guy.blocking == 1) && (_parent.hitTest(_root.guy))) {
_parent.blockhit = 1;
} else if (_parent.hitTest(_root.guy) || (_root.guy.alive == 0)) {
_root.enemyhit = 1;
_root.guy.hp = _root.guy.hp - _parent.attack;
}
Symbol 208 MovieClip Frame 32
_parent.attacking = 0;
_parent.inrange = 0;
Symbol 216 MovieClip Frame 2
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 7
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 8
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 9
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 10
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 11
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
Symbol 216 MovieClip Frame 13
_parent.alive = 0;
_parent.counterhit = 0;
Symbol 220 MovieClip Frame 1
if (_parent._xscale == 100) {
_parent._x = _parent._x + 5;
} else {
_parent._x = _parent._x - 5;
}
Symbol 220 MovieClip Frame 2
if (_parent._xscale == 100) {
_parent._x = _parent._x + 4;
} else {
_parent._x = _parent._x - 4;
}
Symbol 220 MovieClip Frame 3
if (_parent._xscale == 100) {
_parent._x = _parent._x + 3;
} else {
_parent._x = _parent._x - 3;
}
Symbol 220 MovieClip Frame 4
if (_parent._xscale == 100) {
_parent._x = _parent._x + 2;
} else {
_parent._x = _parent._x - 2;
}
Symbol 220 MovieClip Frame 5
if (_parent._xscale == 100) {
_parent._x = _parent._x + 1;
} else {
_parent._x = _parent._x - 1;
}
Symbol 220 MovieClip Frame 14
_parent.attacking = 0;
_parent.inrange = 0;
_parent.blockhit = 0;
Symbol 222 MovieClip Frame 11
if (_parent._xscale == 100) {
_parent._x = _parent._x + 40;
} else {
_parent._x = _parent._x - 40;
}
Symbol 222 MovieClip Frame 12
if (_parent._xscale == 100) {
_parent._x = _parent._x + 40;
} else {
_parent._x = _parent._x - 40;
}
Symbol 222 MovieClip Frame 13
if (_parent._xscale == 100) {
_parent._x = _parent._x + 40;
} else {
_parent._x = _parent._x - 40;
}
Symbol 222 MovieClip Frame 14
if (_parent._xscale == 100) {
_parent._x = _parent._x + 40;
} else {
_parent._x = _parent._x - 40;
}
Symbol 222 MovieClip Frame 15
if (_parent._xscale == 100) {
_parent._x = _parent._x + 40;
} else {
_parent._x = _parent._x - 40;
}
Symbol 222 MovieClip Frame 16
if (_parent._xscale == 100) {
_parent._x = _parent._x + 30;
} else {
_parent._x = _parent._x - 30;
}
Symbol 222 MovieClip Frame 17
if (_parent._xscale == 100) {
_parent._x = _parent._x + 15;
} else {
_parent._x = _parent._x - 15;
}
Symbol 222 MovieClip Frame 18
if (_parent._xscale == 100) {
_parent._x = _parent._x + 7;
} else {
_parent._x = _parent._x - 7;
}
Symbol 222 MovieClip Frame 19
if (_parent._xscale == 100) {
_parent._x = _parent._x + 5;
} else {
_parent._x = _parent._x - 5;
}
Symbol 222 MovieClip Frame 20
if (_parent._xscale == 100) {
_parent._x = _parent._x + 3;
} else {
_parent._x = _parent._x - 3;
}
Symbol 222 MovieClip Frame 27
_parent.thrown = 0;
Symbol 245 MovieClip Frame 2
_root.bgflash = 1;
Symbol 245 MovieClip Frame 13
stop();
Symbol 248 MovieClip Frame 2
_root.bgflash = 1;
Symbol 248 MovieClip Frame 13
stop();
_parent._y = 800;
_parent._x = 800;
Instance of Symbol 253 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.guy.hp;
}
Instance of Symbol 258 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.SP;
if (_root.SP > 100) {
_root.SP = 100;
}
}
Symbol 263 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 265 Button
on (release) {
_root.gotoAndStop(12);
_root.Combo = 0;
_root.ComboTimer = 0;
}
Symbol 268 MovieClip Frame 7
stop();
Symbol 272 MovieClip Frame 7
stop();
Symbol 286 MovieClip Frame 2
_root.Combo = _root.Combo + 1;
_root.ComboTimer = 90;
_root.SP = _root.SP + 1;
Symbol 286 MovieClip Frame 4
stop();
Symbol 287 MovieClip Frame 11
stop();
Symbol 289 MovieClip Frame 2
_root.bgflash = 1;
Symbol 289 MovieClip Frame 6
_root.boss._x = random(700);
Symbol 289 MovieClip Frame 10
_root.boss.strategytime = 0;
Symbol 301 MovieClip Frame 28
_root.bgflash = 1;
Instance of Symbol 299 MovieClip in Symbol 301 MovieClip Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
_root.guy.hp = _root.guy.hp - 1.3;
_root.enemyhit = 1;
_root.guy.canatt = 0;
_root.guy.attacking = 0;
}
}
Symbol 301 MovieClip Frame 34
_root.bgflash = 1;
Instance of Symbol 299 MovieClip in Symbol 301 MovieClip Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
_root.guy.hp = _root.guy.hp - 1.3;
_root.enemyhit = 1;
_root.guy.canatt = 0;
_root.guy.attacking = 0;
}
}
Symbol 301 MovieClip Frame 51
_parent.attacking = 0;
_parent.strategytime = 0;
Symbol 317 MovieClip Frame 32
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 33
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 34
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 35
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 36
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 37
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 38
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 39
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 40
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 41
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 42
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 43
_root.boss._x = _root.guy._x;
Symbol 317 MovieClip Frame 44
_root.boss._x = _root.guy._x;
Instance of Symbol 280 MovieClip in Symbol 317 MovieClip Frame 53
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
_root.guy.hp = _root.guy.hp - 20;
_root.enemyhit = 1;
_root.guy.canatt = 0;
_root.guy.attacking = 0;
}
}
Symbol 317 MovieClip Frame 59
_root.bgflash = 1;
Symbol 317 MovieClip Frame 82
_parent.attacking = 0;
_parent.strategytime = 0;
Symbol 319 MovieClip Frame 62
_root.bgflash = 1;
Symbol 319 MovieClip Frame 78
stop();
Instance of Symbol 253 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.boss.hp / 10;
}