Frame 1
function myOpenURL() {
getURL ("http://www.godlimations.com");
}
_root.savefile = SharedObject.getLocal("XUNMATO");
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var OpenURL = new ContextMenuItem("www.godlimations.com", myOpenURL);
myContextMenu.customItems.push(OpenURL);
_root.menu = myContextMenu;
_root.poo = new Sound();
_root.poo.attachSound("poo");
_root.poo.start(0, 0);
_root.config = 1;
_root.set_volume = 195;
Instance of Symbol 63 MovieClip "vol_bar" in Frame 1
onClipEvent (load) {
this.bar._x = _root.set_volume;
}
onClipEvent (enterFrame) {
_root.set_volume = this.bar._x;
_root.poo.setVolume((this.bar._x - 4.9) / 1.5);
}
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
function myOpenURL() {
getURL ("http://www.godlimations.com");
}
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var OpenURL = new ContextMenuItem("www.godlimations.com", myOpenURL);
myContextMenu.customItems.push(OpenURL);
Mouse.show();
_root.menu = myContextMenu;
stop();
_root.p1_selected = 4;
_root.p2_selected = 3;
_root.lvl_selected = 1;
_root.p1_dead = 0;
_root.p2_dead = 0;
_root.player_type = 2;
Instance of Symbol 63 MovieClip "vol_bar" in Frame 6
onClipEvent (load) {
this.bar._x = _root.set_volume;
}
onClipEvent (enterFrame) {
_root.set_volume = this.bar._x;
_root.poo.setVolume((this.bar._x - 4.9) / 1.5);
}
Frame 7
stop();
Frame 8
stop();
_root.char1_select.gotoAndStop(1);
Frame 9
_root.char1_select.gotoAndStop(2);
Frame 10
if ((_root.p1_selected == 1) && (_root.p2_selected == 1)) {
_root.p2_selected = 4;
}
if ((_root.p1_selected == 2) && (_root.p2_selected == 2)) {
_root.p2_selected = 3;
}
if ((_root.p1_selected == 3) && (_root.p2_selected == 3)) {
_root.p2_selected = 4;
}
if ((_root.p1_selected == 4) && (_root.p2_selected == 4)) {
_root.p2_selected = 1;
}
Frame 13
_root.lvl_at = 1;
_root.spook_dead = 0;
_root.story = 1;
_root.kills = 0;
_root.viewed = 0;
_root.garudi_dead = 0;
_root.portal_movie = 0;
_root.load_x = 200;
_root.load_y = 300;
_root.patrick_said = 0;
_root.sorceress_said = 0;
_root.spook_said = 0;
_root.barb_said = 0;
_root.garudi_movie = 0;
_root.barb_movie = 0;
_root.killrate = 5;
_root.sdive_ability = 0;
_root.wwind_ability = 0;
_root.chaos_ability = 0;
_root.heal_ability = 0;
_root.kills_required = 5;
_root.points = 100;
_root.level = 1;
_root.strength = 8;
_root.armor = 8;
_root.vitality = 8;
_root.energy = 8;
_root.agility = 8;
_root.aman_hp = _root.vitality * 20;
_root.aman_en = _root.energy * 6;
_root.god = 0;
_root.p1_selected = 3;
_root.wwind_cost = 300;
_root.sdive_cost = 200;
_root.chaos_cost = 500;
_root.heal_cost = 300;
_root.barb_hp = 1200;
_root.garudi_hp = 800;
_root.spook_hp = 400;
Frame 14
stop();
_root.amano_made = 0;
Instance of Symbol 1327 MovieClip "lvl" in Frame 14
onClipEvent (load) {
stand = 1;
walk = 10;
attack = 20;
hit = 30;
impact = 40;
dead = 100;
_root.load_x = -999;
_root.load_y = -999;
_root.b_type = 2;
count = 0;
_root.blood_cnt = 2000;
_root.en_cnt = 400;
}
onClipEvent (enterFrame) {
if (_root.god == 1) {
_root.aman_hp = _root.vitality * 20;
_root.aman_en = _root.energy * 6;
}
if (Key.isDown(65)) {
_root.a_cnt++;
} else {
_root.a_cnt = 0;
}
if (_root.strength > 50) {
_root.strength = 50;
}
if (_root.armor > 50) {
_root.armor = 50;
}
if (_root.vitality > 50) {
_root.vitality = 50;
}
if (_root.energy > 50) {
_root.energy = 50;
}
if (_root.agility > 50) {
_root.agility = 50;
}
_root.exper = _root.kills * 10;
_root.strength_cost = _root.strength;
_root.armor_cost = _root.armor;
_root.vitality_cost = _root.vitality;
_root.energy_cost = _root.energy;
_root.agility_cost = _root.agility;
_root.aman_en = Math.round(_root.aman_en);
_root.aman_hp = Math.round(_root.aman_hp);
load_val = random(2) + 1;
if (load_val == 2) {
_root.load_x = 800;
} else {
_root.load_x = -50;
}
if (this._currentframe < 20) {
this.gotoAndStop(_root.lvl_at + 1);
_root.nogo.gotoAndStop(_root.lvl_at);
}
count++;
if (count >= (15 - (_root.energy / 10))) {
if (_root.aman_en < (_root.energy * 6)) {
_root.aman_en = _root.aman_en + 1;
}
count = 0;
}
if (_root.en_cnt > 404) {
_root.en_cnt = 400;
}
if (_root.blood_cnt > 2050) {
_root.blood_cnt = 2000;
}
if ((_root.kills >= _root.kills_required) && (this._currentframe < 20)) {
_root.lvl_up.play();
}
a = 400;
while (a < 405) {
_root.lvl["en" + a].onEnterFrame = function () {
if (_root.lvl._currentframe != this.loaded_frame) {
this.removeMovieClip();
}
if (_root.fade._currentframe == 30) {
if (this.real_x > 700) {
this._x = 700 - _root.lvl._x;
}
if (this.real_x < 0) {
this._x = -_root.lvl._x;
}
if (this.hp <= 0) {
if (this._currentframe < 100) {
_root.kills = _root.kills + this.food;
_root.en_choice = random(4) + 1;
this.gotoAndStop(dead);
}
}
if (this._currentframe <= walk) {
if (this._x < _root.lvl.amano._x) {
this.dir = 0;
this._xscale = this.scayle;
} else {
this.dir = 1;
this._xscale = -this.scayle;
}
}
if (this._x < (_root.lvl.amano._x - (this.attack_dist - 20))) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
this.key_t = false;
this.key_d = true;
} else {
this.key_d = false;
}
if (this._x > (_root.lvl.amano._x + (this.attack_dist - 20))) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
this.key_t = false;
this.key_a = true;
} else {
this.key_a = false;
}
if (this.ai_attack_delay > 0) {
this.ai_attack_delay--;
}
if ((((this.ai_attack_delay == 0) && (this._currentframe <= walk)) && (this._x < (_root.lvl.amano._x + 90))) && (this._x > (_root.lvl.amano._x - 90))) {
this.ai_attack_delay = 50;
this.key_t = true;
} else {
this.key_t = false;
}
this.real_x = this._x + _root.lvl._x;
this.real_y = this._y + _root.lvl._y;
if (((this._x < (_root.lvl.amano._x + 90)) && (this._x > (_root.lvl.amano._x - 90))) && (this._currentframe <= attack)) {
if ((((this._alpha == 100) && (_root.lvl.amano.frenz._currentframe < 70)) && ((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1))) && ((((this._x < (_root.lvl.amano._x + 150)) && (this._x > _root.lvl.amano._x)) && (_root.lvl.amano.dir == 0)) || (((this._x > (_root.lvl.amano._x - 150)) && (this._x < _root.lvl.amano._x)) && (_root.lvl.amano.dir == 1)))) {
this.gotoAndStop(hit);
}
if (((((_root.lvl.amano.air_att._currentframe > 12) || (_root.lvl.amano.frenz._currentframe > 70)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) {
this.gotoAndStop(impact);
}
if (((_root.lvl.amano._alpha == 100) && (this.attack_anim._currentframe > 2)) && (this.attack_anim._currentframe < 8)) {
if (((_root.lvl.amano._currentframe <= _root.lvl.amano.run) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) {
_root.aman_hp = _root.aman_hp - ((random(10) + this.strength) / (_root.armor / 10));
_root.lvl.amano.gotoAndStop(_root.lvl.amano.hit);
}
if (((_root.lvl.amano._currentframe == _root.lvl.amano.crouch) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) {
_root.aman_hp = _root.aman_hp - ((random(10) + this.strength) / (_root.armor / 10));
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
}
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.aman_hp = _root.aman_hp - ((random(10) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.aman_hp = _root.aman_hp - ((random(10) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
}
}
if (this._currentframe == hit) {
this.alpha_cnt = 30;
}
if (this.alpha_cnt > 0) {
this._alpha = 50;
this.alpha_cnt = this.alpha_cnt - 4;
} else {
this._alpha = 100;
}
if ((this._currentframe == knockback) || (this._currentframe == impact)) {
this.alpha_cnt = 40;
if (this.dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (this._currentframe <= walk) {
if (this.key_a) {
this.dir = 1;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - (this.spd * 0.8);
}
if (this.key_d) {
this.dir = 0;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + (this.spd * 0.8);
}
}
if (this._currentframe == walk) {
if ((!this.key_d) && (!this.key_a)) {
this.gotoAndStop(stand);
}
}
if (_root.chaos._currentframe > 15) {
if (this._currentframe < 100) {
this.gotoAndStop(impact);
this.hp = this.hp - 15;
}
}
if (this.key_t) {
if (this._currentframe <= walk) {
this.gotoAndStop(attack);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
this._x = this._x - (this.spd * 0.8);
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
this._x = this._x + (this.spd * 0.8);
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
}
};
a++;
}
}
Instance of Symbol 1375 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.lvl._currentframe < 20) {
this._visible = true;
} else {
this._visible = false;
}
this.dis.gotoAndStop(3);
if (_root.aman_hp < 0) {
_root.aman_hp = 0;
}
if (_root.aman_en < 0) {
_root.aman_en = 0;
}
this.hp._width = _root.aman_hp / ((_root.vitality * 20) / 160);
this.en._width = _root.aman_en / ((_root.energy * 6) / 160);
}
Instance of Symbol 63 MovieClip "vol_bar" in Frame 14
onClipEvent (load) {
this.bar._x = _root.set_volume;
}
onClipEvent (enterFrame) {
_root.set_volume = this.bar._x;
_root.poo.setVolume((this.bar._x - 4.9) / 1.5);
}
Instance of Symbol 1375 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.spook_hp = Math.round(_root.spook_hp);
_root.barb_hp = Math.round(_root.barb_hp);
_root.garudi_hp = Math.round(_root.garudi_hp);
this.en._width = 160;
if ((_root.lvl._currentframe == 8) && (_root.spook_hp > 0)) {
this._visible = true;
this.dis.gotoAndStop(5);
this.hp._width = _root.spook_hp / 2.5;
} else if ((_root.lvl._currentframe == 18) && (_root.garudi_hp > 0)) {
this._visible = true;
this.dis.gotoAndStop(6);
this.hp._width = _root.garudi_hp / 5;
} else if ((_root.lvl._currentframe == 19) && (_root.barb_hp > 0)) {
this._visible = true;
this.dis.gotoAndStop(7);
this.hp._width = _root.barb_hp / 7.5;
} else {
this._visible = false;
}
}
Instance of Symbol 1627 MovieClip "t_box" in Frame 14
onClipEvent (enterFrame) {
if (((!_root.lvl._currentframe) == 3) && ((!_root.lvl._currentframe) == 12)) {
this.gotoAndStop(1);
}
if (this._currentframe > 1) {
_root.lvl.amano._x = 0;
}
}
Instance of Symbol 1689 MovieClip "men" in Frame 14
onClipEvent (enterFrame) {
if (_root.lvl._currentframe < 20) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 15
_root.lvl_at = 17;
Frame 16
_root.lvl_at = 18;
if (_root.barb_movie == 0) {
_root.barb_movie = 1;
} else {
stop();
_root.gotoAndStop(14);
}
Frame 19
_root.lvl_at = 7;
_root.load_x = 200;
_root.load_y = 200;
Frame 20
_root.lvl_at = 12;
Frame 21
function myOpenURL() {
getURL ("http://www.godlimations.com");
}
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var OpenURL = new ContextMenuItem("www.godlimations.com", myOpenURL);
myContextMenu.customItems.push(OpenURL);
Mouse.show();
_root.menu = myContextMenu;
stop();
Instance of Symbol 63 MovieClip "vol_bar" in Frame 21
onClipEvent (load) {
this.bar._x = _root.set_volume;
}
onClipEvent (enterFrame) {
_root.set_volume = this.bar._x;
_root.poo.setVolume((this.bar._x - 4.9) / 1.5);
}
Frame 22
function myOpenURL() {
getURL ("http://www.godlimations.com");
}
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var OpenURL = new ContextMenuItem("www.godlimations.com", myOpenURL);
myContextMenu.customItems.push(OpenURL);
Mouse.show();
_root.menu = myContextMenu;
_root.barb_hp = 220;
_root.barb_en = 70;
_root.sora_hp = 200;
_root.sora_en = 70;
_root.aman_hp = 200;
_root.aman_en = 60;
_root.viol_hp = 180;
_root.viol_en = 100;
stop();
_root.story = 0;
_root.arrow_cnt = 201;
_root.fireball_cnt = 221;
_root.firewall_cnt = 231;
_root.golemmade = 0;
_root.armor = 5;
Instance of Symbol 2133 MovieClip "lvl" in Frame 22
onClipEvent (load) {
_root.blood_cnt = 2000;
count = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lvl_selected);
_root.nogo.gotoAndStop(_root.lvl_selected);
if (this._currentframe == 1) {
if (this._x > 170) {
this._x = 170;
}
if (this._x < -300) {
this._x = -300;
}
}
if (this._currentframe == 2) {
if (this._x > 600) {
this._x = 600;
}
if (this._x < -500) {
this._x = -500;
}
}
if (this._currentframe == 3) {
if (this._x > 150) {
this._x = 150;
}
if (this._x < -600) {
this._x = -600;
}
}
if (_root.blood_cnt > 2050) {
_root.blood_cnt = 2000;
}
count++;
if (count >= 26) {
if (_root.viol_en < 100) {
_root.viol_en = _root.viol_en + 2;
}
if (_root.barb_en < 70) {
_root.barb_en = _root.barb_en + 2;
}
if (_root.aman_en < 60) {
_root.aman_en = _root.aman_en + 2;
}
if (_root.sora_en < 70) {
_root.sora_en = _root.sora_en + 2;
}
count = 0;
}
if (_root.arrow_cnt > 219) {
_root.arrow_cnt = 201;
}
if (_root.fireball_cnt > 239) {
_root.fireball_cnt = 221;
}
if (_root.firewall_cnt > 259) {
_root.firewall_cnt = 231;
}
}
Instance of Symbol 1375 MovieClip in Frame 22
onClipEvent (enterFrame) {
this.dis.gotoAndStop(_root.p2_selected);
if (_root.p2_selected == 1) {
this.hp._width = _root.barb_hp / 1.375;
this.en._width = _root.barb_en / 0.4375;
}
if (_root.p2_selected == 2) {
this.hp._width = _root.sora_hp / 1.25;
this.en._width = _root.sora_en / 0.4375;
}
if (_root.p2_selected == 3) {
this.hp._width = _root.aman_hp / 1.25;
this.en._width = _root.aman_en / 0.375;
}
if (_root.p2_selected == 4) {
this.hp._width = _root.viol_hp / 1.125;
this.en._width = _root.viol_en / 0.625;
}
}
Instance of Symbol 1375 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.barb_hp < 0) {
_root.barb_hp = 0;
}
if (_root.aman_hp < 0) {
_root.aman_hp = 0;
}
if (_root.sora_hp < 0) {
_root.sora_hp = 0;
}
if (_root.viol_hp > 180) {
_root.viol_hp = 180;
}
if (_root.viol_hp < 0) {
_root.viol_hp = 0;
}
if (_root.barb_en < 0) {
_root.barb_en = 0;
}
if (_root.aman_en < 0) {
_root.aman_en = 0;
}
if (_root.sora_en < 0) {
_root.sora_en = 0;
}
if (_root.viol_en < 0) {
_root.viol_en = 0;
}
this.dis.gotoAndStop(_root.p1_selected);
if (_root.p1_selected == 1) {
this.hp._width = _root.barb_hp / 1.375;
this.en._width = _root.barb_en / 0.4375;
}
if (_root.p1_selected == 2) {
this.hp._width = _root.sora_hp / 1.25;
this.en._width = _root.sora_en / 0.4375;
}
if (_root.p1_selected == 3) {
this.hp._width = _root.aman_hp / 1.25;
this.en._width = _root.aman_en / 0.375;
}
if (_root.p1_selected == 4) {
this.hp._width = _root.viol_hp / 1.125;
this.en._width = _root.viol_en / 0.625;
}
}
Instance of Symbol 63 MovieClip "vol_bar" in Frame 22
onClipEvent (load) {
this.bar._x = _root.set_volume;
}
onClipEvent (enterFrame) {
_root.set_volume = this.bar._x;
_root.poo.setVolume((this.bar._x - 4.9) / 1.5);
}
Frame 23
if (_root.p2_dead == 1) {
if (_root.p1_selected == 1) {
_root.victor = 3;
}
if (_root.p1_selected == 2) {
_root.victor = 4;
}
if (_root.p1_selected == 3) {
_root.victor = 1;
}
if (_root.p1_selected == 4) {
_root.victor = 2;
}
} else if (_root.p1_dead == 1) {
if (_root.p2_selected == 1) {
_root.victor = 3;
}
if (_root.p2_selected == 2) {
_root.victor = 4;
}
if (_root.p2_selected == 3) {
_root.victor = 1;
}
if (_root.p2_selected == 4) {
_root.victor = 2;
}
}
Symbol 16 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 18 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 27 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 28 MovieClip Frame 55
stop();
_root.enemies--;
Symbol 29 MovieClip Frame 51
stop();
_root.enemies--;
Symbol 30 MovieClip [Zomboid] Frame 1
stop();
Symbol 30 MovieClip [Zomboid] Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 30 MovieClip [Zomboid] Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 30 MovieClip [Zomboid] Frame 100
if ((_root.en_choice == 1) || (_root.en_choice == 2)) {
gotoAndStop (110);
}
Symbol 35 Button
on (press) {
getURL ("http://www.armorgames.com");
}
Symbol 43 Button
on (release) {
_root.play();
}
Symbol 44 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 44 MovieClip Frame 2
gotoAndPlay (1);
Symbol 50 Button
on (press, keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Instance of Symbol 61 MovieClip "bar" in Symbol 63 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
this.startDrag(true, 5, 5, 195, 5);
updateAfterEvent();
};
this.onRelease = function () {
this.stopDrag();
};
if (!_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
this.stopDrag();
}
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Symbol 71 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 75 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 82 MovieClip Frame 1
stopAllSounds();
Symbol 82 MovieClip Frame 81
_root.nextFrame();
Symbol 86 Button
on (release) {
play();
}
Symbol 104 Button
on (press) {
getURL ("http://www.godlimations.com", "_blank");
}
Symbol 187 Button
on (press) {
getURL ("http://www.godlimations.com");
}
Symbol 188 MovieClip Frame 1
stopAllSounds();
Symbol 188 MovieClip Frame 212
_root.nextFrame();
Symbol 209 MovieClip Frame 1
stopAllSounds();
Symbol 209 MovieClip Frame 132
_root.dupe = 1;
Symbol 209 MovieClip Frame 316
stop();
_root.nextFrame();
Symbol 210 MovieClip Frame 1
_root.star_cnt = 1;
_root.dupe = 1;
_root._play = 0;
Instance of Symbol 190 MovieClip "star" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 100;
this._x = random(100) + 300;
this._y = random(100) + 150;
}
onClipEvent (enterFrame) {
x_calc = this._x - 350;
y_calc = this._y - 200;
scale = Math.sqrt(Math.pow(this._y - 200, 2)) + 1;
this._width = scale / 30;
this._height = scale / 30;
this._y = this._y + (y_calc / 10);
this._x = this._x + (x_calc / 10);
if ((this._name == "star") && (_root.dupe == 1)) {
this._x = 350;
this._y = 200;
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
if (star_cnt > 100) {
_root.star_cnt = 1;
}
} else if ((((this._x > 700) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
Symbol 319 MovieClip Frame 1
stopAllSounds();
Symbol 319 MovieClip Frame 938
_root.play();
Symbol 330 MovieClip Frame 14
stop();
Symbol 337 MovieClip Frame 14
stop();
Symbol 338 Button
on (release) {
getURL ("http://www.armorgames.com");
}
Symbol 342 MovieClip Frame 14
stop();
Symbol 344 MovieClip Frame 14
stop();
Symbol 345 Button
on (release) {
gotoAndStop (12);
}
Symbol 348 MovieClip Frame 14
stop();
Symbol 355 MovieClip Frame 14
stop();
Symbol 356 Button
on (release) {
play();
}
Symbol 359 MovieClip Frame 14
stop();
Symbol 361 MovieClip Frame 14
stop();
Symbol 362 Button
on (release) {
gotoAndStop (8);
}
Symbol 365 MovieClip Frame 14
stop();
Symbol 367 MovieClip Frame 14
stop();
Symbol 368 Button
on (release) {
gotoAndStop (21);
}
Symbol 369 Button
on (press, keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 377 Button
on (release) {
gotoAndPlay (6);
}
Symbol 385 Button
on (press) {
this.startDrag(false, 390.5, 18, 390.5, 185);
}
on (release) {
this.stopDrag();
}
Instance of Symbol 381 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (mouseDown) {
md = true;
}
onClipEvent (mouseUp) {
md = false;
}
onClipEvent (enterFrame) {
if (md) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_parent.Dragger._y - 2) > 18) {
_parent.Dragger._y = _parent.Dragger._y - 2;
} else {
_parent.Dragger._y = 18;
}
}
}
}
Instance of Symbol 383 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (mouseDown) {
md = true;
}
onClipEvent (mouseUp) {
md = false;
}
onClipEvent (enterFrame) {
if (md) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_parent.Dragger._y + 2) < 185) {
_parent.Dragger._y = _parent.Dragger._y + 2;
} else {
_parent.Dragger._y = 185;
}
}
}
}
Instance of Symbol 386 MovieClip "Dragger" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
Text = _parent.Text;
TextH = (_parent.Text._height - 233) + 20;
DragYTot = 167;
_y = 18;
}
onClipEvent (enterFrame) {
DragY = _y - 18;
DragYPerc = DragY / DragYTot;
Text._y = (-DragYPerc) * TextH;
}
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 4
stop();
Symbol 403 MovieClip Frame 5
stop();
Symbol 407 Button
on (press) {
_root.tip.nextFrame();
}
Symbol 408 Button
on (press) {
_root.tip.prevFrame();
}
Symbol 423 MovieClip Frame 72
stop();
Symbol 433 Button
on (press) {
if (_root.p2_selected == 4) {
_root.p2_selected = 3;
}
_root.p1_selected = 4;
_root.char1_select._x = 400;
_root.char1_select._y = 44;
}
Symbol 444 MovieClip Frame 79
stop();
Symbol 450 Button
on (press) {
if (_root.p2_selected == 3) {
_root.p2_selected = 4;
}
_root.p1_selected = 3;
_root.char1_select._x = 537;
_root.char1_select._y = 44;
}
Symbol 452 MovieClip Frame 27
gotoAndPlay (19);
Symbol 462 MovieClip Frame 162
stop();
Symbol 470 Button
on (press) {
_root.p1_selected = 1;
_root.char1_select._x = 398.6;
_root.char1_select._y = 189.1;
}
Symbol 499 MovieClip Frame 47
stop();
Symbol 504 Button
on (press) {
_root.p1_selected = 2;
_root.char1_select._x = 537;
_root.char1_select._y = 189.1;
}
Symbol 512 MovieClip Frame 1
stop();
Symbol 514 Button
on (release) {
gotoAndPlay (6);
}
Symbol 515 Button
on (release) {
gotoAndStop (6);
}
Symbol 519 Button
on (release) {
nextFrame();
}
Symbol 520 Button
on (press) {
_root.player_type = 2;
_root.p2_selected = 4;
_root.char2_select._x = 400;
_root.char2_select._y = 44;
}
Symbol 521 Button
on (press) {
_root.player_type = 2;
_root.p2_selected = 3;
_root.char2_select._x = 537;
_root.char2_select._y = 44;
}
Symbol 522 Button
on (press) {
_root.player_type = 2;
_root.p2_selected = 1;
_root.char2_select._x = 398.6;
_root.char2_select._y = 189.1;
}
Symbol 526 Button
on (press) {
_root.p2_selected = random(4) + 1;
_root.player_type = 3;
nextFrame();
}
Symbol 527 Button
on (press) {
_root.player_type = 2;
_root.p2_selected = 2;
_root.char2_select._x = 537;
_root.char2_select._y = 189.1;
}
Symbol 529 Button
on (release) {
prevFrame();
}
Symbol 540 MovieClip Frame 12
stop();
Symbol 541 Button
on (press) {
_root.lvl_selected = 3;
_root.lvl_select._x = 337.8;
_root.lvl_select._y = 204.4;
}
Symbol 545 MovieClip Frame 15
stop();
Symbol 546 Button
on (press) {
_root.lvl_selected = 2;
_root.lvl_select._x = 172.3;
_root.lvl_select._y = 204.4;
}
Symbol 550 MovieClip Frame 13
stop();
Symbol 551 Button
on (press) {
_root.lvl_selected = 1;
_root.lvl_select._x = 5.5;
_root.lvl_select._y = 204.4;
}
Symbol 557 Button
on (press) {
nextFrame();
}
Symbol 558 Button
on (release) {
gotoAndStop (8);
}
Symbol 562 MovieClip Frame 57
_root.gotoAndStop(22);
Symbol 659 MovieClip Frame 1162
_root.nextFrame();
Symbol 660 Button
on (release) {
nextFrame();
}
Symbol 764 MovieClip Frame 769
_root.nextFrame();
Symbol 769 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 2
_root.aman_hp = _root.vitality * 20;
if (_root.heal_type == 1) {
_root.heal_type = 0;
_root.aman_en = _root.energy * 6;
}
Symbol 769 MovieClip Frame 36
Symbol 772 MovieClip Frame 17
_parent.gotoAndStop(16);
Symbol 789 MovieClip Frame 12
_root.lvl.amano.y_spd = -40;
Symbol 789 MovieClip Frame 17
_root.lvl.amano.y_spd = -20;
Symbol 789 MovieClip Frame 26
_parent.gotoAndStop(1);
Symbol 803 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 804 Button
on (keyPress "a") {
if ((_root.story == 1) && (_root.a_cnt < 11)) {
gotoAndPlay (13);
}
}
Symbol 805 Button
on (keyPress "a") {
if (_root.a_cnt < 11) {
gotoAndPlay (26);
}
}
Symbol 806 Button
on (keyPress "a") {
if (_root.a_cnt < 11) {
gotoAndPlay (40);
}
}
Symbol 807 Button
on (keyPress "a") {
if (_root.a_cnt < 11) {
gotoAndPlay (56);
}
}
Symbol 814 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 814 MovieClip Frame 25
_parent.gotoAndStop(1);
Symbol 814 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 814 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 814 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 833 MovieClip Frame 11
_parent.gotoAndStop(105);
Symbol 835 MovieClip Frame 4
_parent.gotoAndStop(105);
Symbol 837 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 838 MovieClip Frame 17
_parent.gotoAndStop(105);
Symbol 839 MovieClip Frame 4
_parent.gotoAndStop(145);
Symbol 840 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 842 MovieClip Frame 6
_parent.gotoAndStop(145);
Symbol 845 MovieClip Frame 4
_parent.gotoAndStop(232);
Symbol 846 MovieClip Frame 5
_parent.gotoAndStop(105);
Symbol 847 MovieClip Frame 4
_parent.gotoAndStop(232);
Symbol 849 MovieClip Frame 5
_parent.gotoAndStop(232);
Symbol 850 MovieClip Frame 4
_parent.gotoAndStop(145);
Symbol 852 MovieClip Frame 3
_parent.gotoAndStop(105);
Symbol 853 MovieClip Frame 6
_parent.gotoAndStop(232);
Symbol 855 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 856 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 859 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 860 MovieClip Frame 58
stop();
if (_root.story == 1) {
_root.fade.play();
}
Symbol 862 MovieClip Frame 53
stop();
if (_root.story == 1) {
_root.fade.play();
}
Symbol 865 MovieClip Frame 75
gotoAndPlay (3);
_root.fade.play();
Symbol 865 MovieClip Frame 76
gotoAndPlay (3);
_root.fade.play();
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 30
_root.aman_en = _root.aman_en - 10;
Symbol 866 MovieClip Frame 41
_root.aman_en = _root.aman_en - 10;
Symbol 866 MovieClip Frame 54
_root.aman_en = _root.aman_en - 20;
Symbol 866 MovieClip Frame 76
_root.aman_en = _root.aman_en - 20;
Symbol 866 MovieClip Frame 155
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.aman_hp = _root.aman_hp - (random(10) + 5);
}
Symbol 866 MovieClip Frame 246
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.aman_hp = _root.aman_hp - (random(10) + 5);
}
Symbol 866 MovieClip Frame 284
_root.b_type = _root.lvl.amano.b_type;
_root.blood_x = _root.lvl.amano._x;
_root.blood_y = _root.lvl.amano._y - 70;
_root.sfx.gotoAndStop(4);
Symbol 866 MovieClip Frame 294
_root.b_type = _root.lvl.amano.b_type;
_root.blood_x = _root.lvl.amano._x;
_root.blood_y = _root.lvl.amano._y - 70;
_root.sfx.gotoAndStop(4);
Symbol 866 MovieClip Frame 309
_root.b_type = _root.lvl.amano.b_type;
_root.blood_x = _root.lvl.amano._x;
_root.blood_y = _root.lvl.amano._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 866 MovieClip Frame 313
_root.b_type = _root.lvl.amano.b_type;
_root.blood_x = _root.lvl.amano._x;
_root.blood_y = _root.lvl.amano._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 866 MovieClip Frame 322
_root.b_type = _root.lvl.amano.b_type;
_root.blood_x = _root.lvl.amano._x;
_root.blood_y = _root.lvl.amano._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 866 MovieClip Frame 329
if (_root.choice == 2) {
gotoAndStop (335);
}
Symbol 884 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 885 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 895 MovieClip Frame 91
stop();
_root.enemies--;
Symbol 897 MovieClip Frame 82
stop();
_root.enemies--;
Symbol 911 MovieClip Frame 91
stop();
_root.enemies--;
Symbol 913 MovieClip Frame 82
stop();
_root.enemies--;
Symbol 914 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 914 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 914 MovieClip Frame 50
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
Symbol 914 MovieClip Frame 100
if (_root.en_choice == 2) {
gotoAndStop (110);
}
if (_root.en_choice == 3) {
gotoAndStop (120);
}
if (_root.en_choice == 4) {
gotoAndStop (130);
}
Symbol 921 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 927 MovieClip Frame 28
stop();
_root.enemies--;
Symbol 928 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 929 MovieClip Frame 1
stop();
Symbol 929 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 929 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 947 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 948 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 949 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 950 MovieClip Frame 42
stop();
_root.enemies--;
Symbol 951 MovieClip Frame 1
stop();
Symbol 951 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 951 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 951 MovieClip Frame 50
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
Symbol 955 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 956 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 957 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 959 MovieClip Frame 20
stop();
_root.enemies--;
Symbol 960 MovieClip Frame 1
stop();
Symbol 960 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 960 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 960 MovieClip Frame 50
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
Symbol 975 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 976 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 977 MovieClip Frame 36
stop();
_root.enemies--;
Symbol 978 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 978 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 995 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 996 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 997 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 999 MovieClip Frame 43
stop();
_root.enemies--;
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1000 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1000 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1008 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1009 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 1011 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 1015 MovieClip Frame 47
stop();
_root.enemies--;
Symbol 1016 MovieClip Frame 1
stop();
Symbol 1016 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1016 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 1111 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 1113 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 1114 MovieClip Frame 43
stop();
_root.spook_dead = 1;
_root.kills = _root.kills + 100;
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 30
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
Symbol 1115 MovieClip Frame 40
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
this.hp = this.hp - (random(10) + (_root.strength / 2));
Symbol 1119 MovieClip Frame 920
gotoAndPlay (30);
Symbol 1145 MovieClip Frame 1
stop();
Symbol 1205 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 1258 MovieClip Frame 58
stop();
_parent.gotoAndStop(1);
Symbol 1259 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 1260 MovieClip Frame 11
stop();
_parent.gotoAndStop(1);
Symbol 1261 MovieClip Frame 68
stop();
_parent.gotoAndStop(1);
Symbol 1262 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 1263 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 1264 MovieClip Frame 50
Symbol 1264 MovieClip Frame 51
_root.lvl.mus.stop();
Symbol 1264 MovieClip Frame 150
stop();
_root.lvl.mus.play();
_root.garudi_dead = 1;
_root.kills = _root.kills + 1000;
Symbol 1265 MovieClip Frame 1
stop();
Symbol 1265 MovieClip Frame 80
_root.b_type = 2;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.garudi_hp = _root.garudi_hp - (random(10) + (_root.strength / 4));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1265 MovieClip Frame 90
_root.b_type = 2;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.garudi_hp = _root.garudi_hp - (random(20) + (_root.strength / 4));
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1276 MovieClip Frame 1
_root.no_walk = 0;
Symbol 1277 MovieClip Frame 18
_parent._parent.no_walk = 1;
Symbol 1277 MovieClip Frame 23
_parent._parent.no_walk = 0;
Symbol 1277 MovieClip Frame 42
_parent._parent.no_walk = 1;
Symbol 1277 MovieClip Frame 47
_parent._parent.no_walk = 0;
Symbol 1280 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 1287 MovieClip Frame 90
stop();
_parent.gotoAndStop(1);
Symbol 1290 MovieClip Frame 48
stop();
_parent.gotoAndStop(1);
Symbol 1292 MovieClip Frame 7
_parent.gotoAndStop(59);
Symbol 1294 MovieClip Frame 5
_parent.gotoAndStop(59);
Symbol 1295 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 1306 MovieClip Frame 47
stop();
if (_root.story == 1) {
_root.lvl.amano.gotoAndStop(341);
}
Symbol 1308 MovieClip Frame 80
stop();
_root.fade.play();
Symbol 1309 MovieClip Frame 1
stop();
Symbol 1309 MovieClip Frame 25
_root.barb_en = _root.barb_en - 15;
Symbol 1309 MovieClip Frame 43
_root.barb_en = _root.barb_en - 15;
Symbol 1309 MovieClip Frame 71
if (_root.barb_en > 5) {
_root.barb_en = _root.barb_en - 5;
} else {
_root.b_type = 2;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.barb_hp = _root.barb_hp - (random(10) + 5);
}
Symbol 1309 MovieClip Frame 79
_root.barb_hp = _root.barb_hp - (random(10) + 6);
_root.barb_en = _root.barb_en - 0;
_root.b_type = 2;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1312 MovieClip Frame 10
stop();
Symbol 1315 MovieClip Frame 14
stop();
Symbol 1317 MovieClip Frame 14
stop();
Symbol 1318 Button
on (release) {
_root.fade.gotoAndPlay(1);
_root.lvl.amano._x = 400 - _root.lvl._x;
_root.lvl.amano._y = 200 - _root.lvl._y;
_root.lvl.amano.gotoAndStop(1);
_root.lvl.amano.y_spd = 0;
_root.lvl.amano.spd = 0;
gotoAndStop (1);
stopAllSounds();
}
Symbol 1321 MovieClip Frame 14
stop();
Symbol 1323 MovieClip Frame 14
stop();
Symbol 1324 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(6);
}
Symbol 1326 MovieClip Frame 39
stop();
Instance of Symbol 866 MovieClip "amano" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (_root.amano_made == 1) {
this.swapDepths(140);
this.removeMovieClip();
}
this.b_type = 2;
alpha_cnt = 0;
y_spd = 0;
player_type = 1;
dir = 0;
right_tap_time = 0;
left_tap_time = 0;
this.no_walk = 0;
scale = this._xscale;
this.swapDepths(999);
}
onClipEvent (enterFrame) {
if ((_root.fade._currentframe > 15) && (_root.fade._currentframe < 31)) {
if (_root.aman_hp <= 30) {
if (warning == 0) {
_root.sfx.gotoAndStop(5);
}
warning = 1;
} else {
warning = 0;
}
spd = (_root.agility / 8) + 5;
_root.amano_made = 1;
if (real_x > 700) {
if (_root.lvl._currentframe == 8) {
if (_root.spook_dead == 1) {
this._x = 100 - _root.lvl._x;
_root.lvl_at++;
}
} else {
this._x = 100 - _root.lvl._x;
_root.lvl_at++;
}
}
if (real_x < 0) {
this._x = 600 - _root.lvl._x;
_root.lvl_at--;
}
if ((real_x > 650) and (_root.can_right == 0)) {
this._x = 650 - _root.lvl._x;
}
if ((real_x < 50) and (_root.can_left == 0)) {
this._x = 50 - _root.lvl._x;
}
if ((_root.aman_hp <= 0) && (this._currentframe <= run)) {
_root.choice = random(2) + 1;
this.gotoAndStop(dead1);
}
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
key_r = Key.isDown(65);
key_y = Key.isDown(68);
if (_root.wwind_ability == 1) {
key_t = Key.isDown(83);
} else {
key_t = false;
}
stand = 1;
walk = 9;
run = 16;
jump = 23;
attackair = 30;
run_attack = 41;
attack1 = 48;
attack2 = 54;
crouchattack1 = 64;
crouchattack2 = 76;
crouching = 91;
crouch = 105;
rising = 115;
rolling = 124;
blocking = 132;
block = 145;
unblocking = 140;
blockhit = 155;
blockwalk = 163;
blockwalkback = 173;
crouchblocking = 188;
uncrouchblocking = 200;
crouchblock = 232;
crouchblockhit = 246;
crouchhit = 284;
crouchknockback = 284;
blocktocrouchblock = 207;
crouchblocktoblock = 260;
hit = 309;
knockback = 313;
impact = 322;
dead1 = 329;
dead2 = 335;
victory = 341;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (_root.scrollable == 1) {
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if ((!key_a) && (key_d)) {
right_tap_time = 4;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if ((!key_d) && (key_a)) {
left_tap_time = 4;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (((!key_d) && (key_a)) && (this._currentframe <= jump)) {
dir = 1;
this._xscale = -scale;
if (this._currentframe <= walk) {
left_tap_time = 6;
this._x = this._x - (spd * 0.8);
this.gotoAndStop(walk);
}
}
if (((!key_a) && (key_d)) && (this._currentframe <= jump)) {
dir = 0;
this._xscale = scale;
if (this._currentframe <= walk) {
right_tap_time = 6;
this.gotoAndStop(walk);
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (((this._currentframe == attack2) || (this._currentframe == crouchattack2)) || (this._currentframe == jump)) {
if (key_a) {
this._x = this._x - (spd * 1.6);
}
if (key_d) {
this._x = this._x + (spd * 1.6);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((key_y && (key_d)) && (!key_a)) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if ((key_y && (key_a)) && (!key_d)) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 1.6);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (wind_time > 0) {
wind_time--;
} else if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (((this._currentframe == jump) && (key_r)) && (_root.sdive_ability == 1)) {
if (_root.aman_en > 10) {
this.gotoAndStop(attackair);
}
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd + 24);
} else {
this._x = this._x + (spd + 24);
}
}
if (key_t) {
if ((this._currentframe <= run) && (_root.aman_en > 20)) {
if (_root.aman_en > 20) {
wind_time = 50;
_root.sfx.gotoAndStop(2);
this.gotoAndStop(attack2);
}
}
if ((((_root.heal_ability == 1) && (this._currentframe == crouch)) && (_root.aman_hp < (_root.vitality * 20))) && (_root.aman_en > 40)) {
_root.aman_en = _root.aman_en - 40;
this.heal.play();
}
}
if (key_r) {
if (this._currentframe == run) {
if (_root.aman_en > 10) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
}
if (this._currentframe < run) {
this.gotoAndStop(attack1);
}
if (((_root.chaos_ability == 1) && (this._currentframe == crouch)) and (_root.chaos._currentframe == 1)) {
if (_root.aman_en >= 60) {
this.gotoAndStop(crouchattack1);
_root.aman_en = _root.aman_en - 60;
_root.chaos.play();
}
}
}
if (key_s) {
if (this._currentframe == block) {
this.gotoAndStop(blocktocrouchblock);
}
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (((key_d && ((!dir) == 1)) || ((key_a && (dir == 1)) && (this._currentframe == crouch))) || (this._currentframe == run)) {
this.gotoAndStop(rolling);
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (key_w) {
if (this._currentframe == crouchblock) {
this.gotoAndStop(crouchblocktoblock);
}
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.8);
} else if (this._currentframe == run) {
this._x = this._x - (this.spd * 1.6);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.8);
} else if (this._currentframe == run) {
this._x = this._x + (this.spd * 1.6);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
Instance of Symbol 914 MovieClip "zombie" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.b_type = 3;
this.food = 2;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 30 + _root.lvl_at;
this.spd = 4;
this.y_spd = 0;
this.strength = 5 + _root.lvl_at;
}
Instance of Symbol 929 MovieClip "spider" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 4;
_root.lvl.spider._y = -999;
_root.lvl.spider._x = -999;
this.b_type = 2;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 60 + _root.lvl_at;
this.spd = 10;
this.y_spd = 0;
this.strength = 10 + _root.lvl_at;
}
Instance of Symbol 951 MovieClip "skeleton" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 6;
_root.lvl.skeleton._y = -999;
_root.lvl.skeleton._x = -999;
this.b_type = 1;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 80 + _root.lvl_at;
this.spd = 6;
this.y_spd = 0;
this.strength = 15 + _root.lvl_at;
}
Instance of Symbol 960 MovieClip "wasp" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 1;
_root.lvl.wasp._y = -999;
_root.lvl.wasp._x = -999;
this.b_type = 4;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 20 + _root.lvl_at;
this.spd = 7;
this.y_spd = 0;
this.strength = 5 + _root.lvl_at;
}
Instance of Symbol 965 MovieClip "blood" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
loadedframe = _root.lvl._currentframe;
this.gotoAndStop(_root.b_type);
this._y = _root.blood_y;
this._x = _root.blood_x;
this._width = random(5) + 1;
y_spd = random(20) - 10;
x_spd = random(20) - 10;
}
onClipEvent (enterFrame) {
this._height = this._width;
if (_name == "blood") {
this._x = -500;
this._y = -500;
} else {
if (_root.lvl._currentframe != loadedframe) {
this.removeMovieClip();
}
this.real_x = this._x + _root.lvl._x;
this.real_y = this._y + _root.lvl._y;
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
this.removeMovieClip();
} else {
this._x = this._x + x_spd;
this._y = this._y - y_spd;
y_spd--;
x_spd = x_spd * 0.96;
}
}
}
Instance of Symbol 30 MovieClip [Zomboid] "zombiod" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 10;
_root.lvl.zombiod._y = -999;
_root.lvl.zombiod._x = -999;
this.b_type = 2;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 100 + _root.lvl_at;
this.spd = 7;
this.y_spd = 0;
this.strength = 20 + _root.lvl_at;
}
Instance of Symbol 978 MovieClip "ninja" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 8;
_root.lvl.ninja._y = -999;
_root.lvl.ninja._x = -999;
this.b_type = 2;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 70 + _root.lvl_at;
this.spd = 12;
this.y_spd = 0;
this.strength = 10 + _root.lvl_at;
}
Instance of Symbol 1000 MovieClip "blog" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 20;
_root.lvl.blog._y = -999;
_root.lvl.blog._x = -999;
this.b_type = 2;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 120 + _root.lvl_at;
this.spd = 5;
this.y_spd = 0;
this.strength = 30 + _root.lvl_at;
}
Instance of Symbol 1016 MovieClip "shrum" in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "en405") {
this.removeMovieClip();
}
this.food = 2;
_root.lvl.shrum._y = -999;
_root.lvl.shrum._x = -999;
this.b_type = 4;
this.loaded_frame = _root.lvl._currentframe;
this._x = _root.load_x - _root.lvl._x;
this._y = 300 - _root.lvl._y;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = 50 + _root.lvl_at;
this.spd = 15;
this.y_spd = 0;
this.strength = 10 + _root.lvl_at;
}
Symbol 1327 MovieClip Frame 2
_root.scrollable = 0;
onEnterFrame = function () {
_root.can_right = 1;
_root.can_left = 0;
};
if (_root.barb_said == 0) {
_root.barb_said = 1;
_root.sfx.gotoAndStop(8);
}
if (_root.garudi_dead == 1) {
_root.fade.play();
}
Instance of Symbol 1022 MovieClip in Symbol 1327 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.lvl._currentframe < 2) || (_root.lvl._currentframe > 3)) {
this.removeMovieClip();
}
}
Symbol 1327 MovieClip Frame 3
_quality = "HIGH";
onEnterFrame = function () {
_root.can_right = 1;
_root.can_left = 1;
};
_root.en_cnt = 400;
_root.enemies = 0;
if (_root.patrick_said == 0) {
_root.patrick_said = 1;
_root.sfx.gotoAndStop(3);
}
Instance of Symbol 1033 MovieClip "patty" in Symbol 1327 MovieClip Frame 3
onClipEvent (load) {
scale = this._xscale;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.lvl.amano) && (Key.isDown(69))) && (_root.t_box._currentframe == 1)) {
_root.t_box.gotoAndStop(2);
}
if (_root.lvl.amano._x > this._x) {
this._xscale = scale;
} else {
this._xscale = -scale;
}
}
Instance of Symbol 1035 MovieClip in Symbol 1327 MovieClip Frame 3
onClipEvent (enterFrame) {
this._alpha--;
}
Instance of Symbol 1037 MovieClip "healing" in Symbol 1327 MovieClip Frame 3
onClipEvent (enterFrame) {
this.swapDepths(9999);
if (_root.lvl._currentframe != 3) {
this.removeMovieClip();
}
}
Instance of Symbol 1039 MovieClip in Symbol 1327 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.lvl._currentframe != 3) {
this.removeMovieClip();
}
this.swapDepths(1000);
}
Instance of Symbol 1044 MovieClip in Symbol 1327 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.garudi_dead == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Symbol 1327 MovieClip Frame 4
_quality = "HIGH";
_quality = _root.set_quality;
_root.enemies = 0;
_root.en_cnt = 400;
_root.t_box.gotoAndStop(1);
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 20) {
_root.can_right = 0;
this._visible = false;
} else {
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
_root.can_right = 1;
}
}
Symbol 1327 MovieClip Frame 5
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 5
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 40) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 6
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 6
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 70) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 7
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 7
onClipEvent (enterFrame) {
this.danger._alpha = 100;
_root.can_left = 1;
if (_root.kills < 120) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 8
if ((_root.spook_hp > 0) && (_root.spook_dead == 0)) {
_root.spook_hp = 400;
} else {
_root.spook_hp = 0;
}
_root.enemies = 0;
_root.en_cnt = 400;
if (_root.spook_said == 0) {
_root.fade.play();
_root.spook_said = 1;
} else {
if (_root.spook_said == 1) {
_root.spook_said = 2;
_root.sfx.gotoAndStop(7);
}
_root.fade.gotoAndPlay(1);
}
Instance of Symbol 1115 MovieClip "en400" in Symbol 1327 MovieClip Frame 8
onClipEvent (load) {
this.swapDepths(400);
this.food = 1;
this.b_type = 2;
this.loaded_frame = _root.lvl._currentframe;
this.ai_attack_delay = 10;
this.attack_dist = 100;
this.key_a = false;
this.key_d = false;
this.key_t = false;
this.scayle = this._xscale;
this.dir = 1;
this.hp = _root.spook_hp;
this.spd = 10;
this.y_spd = 0;
this.strength = 20;
if (_root.spook_dead == 1) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this.swapDepths(400);
_root.spook_hp = this.hp;
}
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.spook_hp > 0) {
_root.can_right = 0;
_root.can_left = 0;
this._visible = false;
} else {
_root.poo.removeMovieClip();
_root.can_left = 1;
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 9
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 350) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 10
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1126 MovieClip in Symbol 1327 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.lvl._currentframe != 10) {
this.removeMovieClip();
}
this.swapDepths(1001);
}
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 10
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 420) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 11
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.can_left = 1;
if (_root.kills < 500) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 12
_root.enemies = 0;
_root.en_cnt = 400;
if (_root.sorceress_said == 0) {
_root.sorceress_said = 1;
_root.sfx.gotoAndStop(6);
}
Instance of Symbol 1145 MovieClip in Symbol 1327 MovieClip Frame 12
onClipEvent (load) {
scale = this._xscale;
}
onClipEvent (enterFrame) {
if (_root.fade._currentframe == 30) {
if ((((_root.lvl.amano._x < 50) && (this.hitTest(_root.lvl.amano))) && (Key.isDown(69))) && (_root.t_box._currentframe == 1)) {
_root.t_box.gotoAndStop(2);
}
if (_root.lvl.amano._x > this._x) {
this._xscale = scale;
} else {
this._xscale = -scale;
}
}
}
Instance of Symbol 1147 MovieClip in Symbol 1327 MovieClip Frame 12
onClipEvent (enterFrame) {
this._alpha--;
}
Instance of Symbol 1035 MovieClip in Symbol 1327 MovieClip Frame 12
onClipEvent (enterFrame) {
this._alpha--;
}
Instance of Symbol 1022 MovieClip in Symbol 1327 MovieClip Frame 12
onClipEvent (enterFrame) {
if ((_root.lvl._currentframe < 2) || (_root.lvl._currentframe > 3)) {
this.removeMovieClip();
}
}
Instance of Symbol 1153 MovieClip in Symbol 1327 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.fade._currentframe == 30) {
_root.can_right = 0;
_root.can_left = 1;
if (_root.lvl.amano._x > 100) {
if (Key.isDown(69)) {
if (_root.portal_movie == 0) {
_root.portal_movie = 1;
_root.fade.play();
} else {
_root.fade.gotoAndPlay(14);
_root.lvl.amano._x = _root.lvl.amano._x - 350;
_root.lvl.amano._y = _root.lvl.amano._y - 80;
_root.lvl_at++;
}
}
}
}
}
Symbol 1327 MovieClip Frame 13
_root.enemies = 0;
_root.en_cnt = 400;
_root.can_left = 0;
_root.t_box.gotoAndStop(1);
Instance of Symbol 1160 MovieClip in Symbol 1327 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.lvl._currentframe != 13) {
this.removeMovieClip();
}
this.swapDepths(1000);
}
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.kills < 700) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Instance of Symbol 1153 MovieClip in Symbol 1327 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.fade._currentframe == 30) {
_root.can_left = 0;
if (_root.lvl.amano._x < -200) {
if (Key.isDown(69)) {
_root.fade.gotoAndPlay(14);
_root.lvl.amano._x = _root.lvl.amano._x + 350;
_root.lvl.amano._y = _root.lvl.amano._y + 100;
_root.lvl_at--;
}
}
}
}
Symbol 1327 MovieClip Frame 14
_root.enemies = 0;
_root.en_cnt = 400;
onEnterFrame = function () {
_root.can_right = 1;
_root.can_left = 1;
};
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.kills < 900) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 15
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_root.kills < 1100) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 16
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.kills < 1300) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 17
_root.enemies = 0;
_root.en_cnt = 400;
Instance of Symbol 1054 MovieClip in Symbol 1327 MovieClip Frame 17
onClipEvent (enterFrame) {
this.danger._alpha = 100;
if (_root.kills < 2000) {
_root.can_right = 0;
this._visible = false;
} else {
_root.can_right = 1;
if (_root.garudi_dead == 0) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Symbol 1327 MovieClip Frame 18
_root.enemies = 0;
_root.en_cnt = 400;
if (_root.garudi_movie == 0) {
_root.fade.play();
_root.garudi_movie = 1;
}
onEnterFrame = function () {
if (_root.garudi_dead == 0) {
_root.can_left = 0;
} else {
_root.can_left = 1;
}
_root.can_right = 0;
};
if ((_root.garudi_hp > 0) && (_root.garudi_dead == 0)) {
_root.garudi_hp = 800;
} else {
_root.garudi_hp = 0;
}
Instance of Symbol 1265 MovieClip "garudi" in Symbol 1327 MovieClip Frame 18
onClipEvent (load) {
this.strength = 30;
_root.garudi_ai_attack_time = 10;
_root.garudi_ai_attack_delay = 10;
attack_dist = 90;
_root.garudi_key_w = false;
_root.garudi_key_a = false;
_root.garudi_key_s = false;
_root.garudi_key_d = false;
_root.garudi_key_r = false;
_root.garudi_key_t = false;
_root.garudi_key_y = false;
alpha_cnt = 0;
y_spd = 0;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
if (_root.garudi_dead == 1) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((_root.garudi_dead == 1) || (_root.lvl._currentframe != 18)) {
this.removeMovieClip();
}
if ((_root.garudi_hp <= 0) && (this._currentframe <= run)) {
this.gotoAndStop(dead);
}
if (_root.fade._currentframe == 30) {
this.swapDepths(141);
if (this._currentframe <= run) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
_root.garudi_ai_attack_delay = 5;
_root.garudi_key_d = true;
} else {
_root.garudi_key_d = false;
}
if (this._x > (_root.lvl.amano._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
_root.garudi_ai_attack_delay = 5;
_root.garudi_key_a = true;
} else {
_root.garudi_key_a = false;
}
if (_root.garudi_ai_attack_time > 0) {
_root.garudi_ai_attack_time--;
} else {
_root.garudi_key_r = false;
_root.garudi_key_t = false;
_root.garudi_key_y = false;
_root.garudi_key_s = false;
_root.garudi_ai_attack = 0;
}
if (_root.garudi_ai_attack_delay > 0) {
_root.garudi_ai_attack_delay--;
}
if ((_root.garudi_ai_attack_delay == 0) && (_root.garudi_ai_attack == 0)) {
_root.garudi_ai_attack = random(3) + 1;
}
if (_root.garudi_ai_attack == 1) {
if (_root.garudi_ai_attack_delay == 0) {
_root.garudi_ai_attack_delay = 50;
_root.garudi_ai_attack_time = 10;
}
_root.garudi_key_w = false;
_root.garudi_key_r = true;
_root.garudi_key_t = false;
} else {
_root.garudi_key_r = false;
}
if (_root.garudi_ai_attack == 2) {
if (_root.garudi_ai_attack_delay == 0) {
_root.garudi_ai_attack_delay = 50;
_root.garudi_ai_attack_time = 10;
}
_root.garudi_key_r = false;
_root.garudi_key_w = false;
_root.garudi_key_t = true;
} else {
_root.garudi_key_t = false;
}
if (_root.garudi_ai_attack == 3) {
if (_root.garudi_ai_attack_delay == 0) {
_root.garudi_ai_attack_delay = 50;
_root.garudi_ai_attack_time = 10;
}
_root.garudi_key_r = false;
_root.garudi_key_t = false;
_root.garudi_key_w = true;
} else {
_root.garudi_key_w = false;
}
right_tap_time = 4;
left_tap_time = 4;
stand = 1;
walk = 10;
run = 20;
jump = 30;
attack1 = 40;
run_attack = 50;
attackair = 60;
attack2 = 70;
hit = 80;
knockback = 90;
dead = 100;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if ((this._x < (_root.lvl.amano._x + 100)) && (this._x > (_root.lvl.amano._x - 100))) {
if (this._currentframe <= attack1) {
if ((((this._alpha == 100) && (_root.lvl.amano.frenz._currentframe < 70)) && (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) && ((((this._x < (_root.lvl.amano._x + 150)) && (this._x > _root.lvl.amano._x)) && (_root.lvl.amano.dir == 0)) || (((this._x > (_root.lvl.amano._x - 150)) && (this._x < _root.lvl.amano._x)) && (_root.lvl.amano.dir == 1)))) {
this.gotoAndStop(hit);
}
if (((((_root.lvl.amano.air_att._currentframe > 12) || (_root.lvl.amano.frenz._currentframe > 70)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) {
this.gotoAndStop(knockback);
}
}
if ((((_root.lvl.amano._alpha == 100) && (this._currentframe >= jump)) && (this._currentframe <= attack2)) && (this._y < (_root.lvl.amano._y + 150))) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.knockback);
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
} else {
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
_root.lvl.amano.gotoAndStop(_root.lvl.amano.impact);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.knockback);
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
}
}
if (this._currentframe == hit) {
this.alpha_cnt = 30;
}
if (this.alpha_cnt > 0) {
this._alpha = 50;
this.alpha_cnt = this.alpha_cnt - 4;
} else {
this._alpha = 100;
}
if (this._currentframe == knockback) {
this.alpha_cnt = 40;
if (this.dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (this._currentframe == walk) {
if ((!this._root.garudi_key_d) && (!this._root.garudi_key_a)) {
this.gotoAndStop(stand);
}
}
if (_root.chaos._currentframe > 15) {
if (this._currentframe < 100) {
this.gotoAndStop(knockback);
this.hp = this.hp - 15;
}
}
if (_root.garudi_key_a && (_root.garudi_key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (_root.garudi_key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (_root.garudi_key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!_root.garudi_key_a) && (_root.garudi_key_d)) && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!_root.garudi_key_d) && (_root.garudi_key_a)) && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!_root.garudi_key_a) && (!_root.garudi_key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (_root.garudi_key_a) {
dir = 1;
}
if (_root.garudi_key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!_root.garudi_key_d) && (_root.garudi_key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - (spd * 0.8);
}
if (((!_root.garudi_key_a) && (_root.garudi_key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (this._currentframe == jump) {
if (_root.garudi_key_a) {
this._x = this._x - (spd * 1.6);
}
if (_root.garudi_key_d) {
this._x = this._x + (spd * 1.6);
}
}
if ((this._currentframe == jump) && (_root.garudi_key_r)) {
this.gotoAndStop(attackair);
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 5);
} else {
this._x = this._x + (spd * 5);
}
}
if (_root.garudi_key_t) {
if (this._currentframe <= run) {
this.gotoAndStop(attack2);
}
}
if (_root.garudi_key_r) {
if (this._currentframe == run) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if (this._currentframe < run) {
this.gotoAndStop(attack1);
}
}
if (_root.garudi_key_w) {
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.81);
} else {
this._x = this._x - (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.81);
} else {
this._x = this._x + (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
Symbol 1327 MovieClip Frame 19
onEnterFrame = function () {
_root.can_left = 0;
_root.can_right = 0;
};
if (_root.barb_hp > 0) {
_root.barb_hp = 1200;
} else {
_root.barb_hp = 0;
}
_root.fade.gotoAndPlay(1);
_root.lvl.amano._x = _root.lvl.amano._x + 400;
Instance of Symbol 1309 MovieClip "barbus" in Symbol 1327 MovieClip Frame 19
onClipEvent (load) {
this.strength = 50;
ai_attack_time = 10;
ai_attack_delay = 10;
key_w = false;
key_a = false;
key_s = false;
key_d = false;
key_r = false;
key_t = false;
key_y = false;
alpha_cnt = 0;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
y_spd = 0;
}
onClipEvent (enterFrame) {
if (_root.lvl._currentframe != 19) {
this.removeMovieClip();
}
if ((_root.fade._currentframe == 30) && (this._currentframe < 83)) {
if (_root.barb_hp <= 0) {
this.gotoAndStop(dying);
}
this.swapDepths(111);
if (this._currentframe <= run) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.amano._x + 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_a = true;
} else {
key_a = false;
}
if (ai_attack_time > 0) {
ai_attack_time--;
} else {
key_r = false;
key_t = false;
key_y = false;
ai_attack = 0;
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if (((ai_attack_delay == 0) && ((this._currentframe <= run) || (this._currentframe == block))) && ((this.hitTest(_root.lvl.amano) || (this.hitTest(_root.lvl.sora))) || (this.hitTest(_root.lvl.violet)))) {
ai_attack = random(3) + 1;
}
if (ai_attack == 1) {
if (ai_attack_delay == 0) {
ai_attack_delay = 60;
ai_attack_time = 50;
}
key_r = true;
} else {
key_r = false;
}
if (ai_attack == 2) {
if (ai_attack_delay == 0) {
ai_attack_delay = 70;
ai_attack_time = 10;
}
key_t = true;
} else {
key_t = false;
}
if (ai_attack == 3) {
if (ai_attack_delay == 0) {
ai_attack_delay = 60;
ai_attack_time = 50;
}
key_y = true;
} else {
key_y = false;
}
right_tap_time = 4;
left_tap_time = 4;
stand = 1;
walk = 9;
run = 17;
run_attack = 25;
attack1 = 34;
attack2 = 43;
blocking = 49;
block = 59;
blockhit = 71;
hit = 79;
dying = 83;
victory = 90;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if (this.hitTest(_root.lvl.amano)) {
if (this._currentframe <= run) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) {
this.gotoAndStop(hit);
}
}
if (this._currentframe == block) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) {
this.gotoAndStop(blockhit);
}
}
}
}
if (((this._x < (_root.lvl.amano._x + 120)) && (this._x > (_root.lvl.amano._x - 120))) && (this._y < (_root.lvl.amano._y + 150))) {
if (((_root.lvl.amano._alpha == 100) && (this._currentframe >= 25)) && (this._currentframe <= 49)) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.knockback);
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
}
if ((_root.lvl.amano._currentframe < 132) || (_root.lvl.amano._currentframe > 284)) {
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
_root.lvl.amano.gotoAndStop(_root.lvl.amano.impact);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.knockback);
_root.aman_hp = _root.aman_hp - ((random(20) + this.strength) / (_root.armor / 10));
}
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (_root.chaos._currentframe > 15) {
if (this._currentframe < 100) {
this.gotoAndStop(hit);
this.hp = this.hp - 15;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(stand);
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.6);
} else {
this._x = this._x - (spd * 1.2);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.6);
} else {
this._x = this._x + (spd * 1.2);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe < run_attack) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (key_d && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.2);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (key_a && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.2);
}
}
}
if (key_a && (key_d)) {
this.gotoAndStop(stand);
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
if (this._currentframe <= walk) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - (spd * 0.6);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + (spd * 0.6);
}
}
if ((this.run_attack_anim._currentframe > 5) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 5);
} else {
this._x = this._x + (spd * 5);
}
}
if (key_t) {
if (this._currentframe < run) {
this.gotoAndStop(attack2);
}
}
if (key_r) {
if (this._currentframe == run) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if (this._currentframe < run) {
this.gotoAndStop(attack1);
}
}
if (key_y) {
if (this._currentframe <= run) {
this.gotoAndStop(blocking);
}
} else if (this._currentframe == block) {
this.gotoAndStop(stand);
}
if (((this.attack1_anim._currentframe == 20) || (this.attack1_anim._currentframe == 27)) || (this.attack1_anim._currentframe == 47)) {
if (!key_r) {
this.gotoAndStop(1);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.61);
} else {
this._x = this._x - (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.61);
} else {
this._x = this._x + (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
Symbol 1327 MovieClip Frame 20
if (_root.lvl_at < 11) {
_root.lvl_at = 1;
} else {
_root.lvl_at = 10;
}
_root.aman_hp = _root.vitality * 20;
_root.aman_en = _root.energy * 6;
_root.points = _root.points / 2;
_root.points = Math.round(_root.points);
_root.fade.gotoAndPlay(15);
Instance of Symbol 1326 MovieClip "star" in Symbol 1327 MovieClip Frame 20
onClipEvent (load) {
if (this._name == "star") {
_root.star_cnt = 3000;
}
this._width = random(5) + 5;
this._x = random(700) - _root.lvl._x;
this._y = random(400) - _root.lvl._y;
}
onClipEvent (enterFrame) {
this._height = this._width;
if (_root.star_cnt > 3100) {
_root.star_cnt = 3000;
}
if (this._name == "star") {
this._x = -_root.lvl._x;
this._y = -_root.lvl._y;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
duplicateMovieClip (this, _root.star + _root.star_cnt, _root.star_cnt);
_root.star_cnt++;
} else {
this._rotation = this._rotation + 10;
if (this._currentframe > 38) {
this.removeMovieClip();
}
}
}
Symbol 1344 MovieClip Frame 1
stop();
Symbol 1344 MovieClip Frame 2
gotoAndStop (1);
Symbol 1344 MovieClip Frame 3
gotoAndStop (1);
Symbol 1344 MovieClip Frame 4
if (_quality == "HIGH") {
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
duplicateMovieClip (_root.lvl.blood, "blood" + _root.blood_cnt, _root.blood_cnt);
_root.blood_cnt++;
}
gotoAndStop (1);
Symbol 1344 MovieClip Frame 5
gotoAndStop (1);
Symbol 1344 MovieClip Frame 6
gotoAndStop (1);
Symbol 1344 MovieClip Frame 7
gotoAndStop (1);
Symbol 1344 MovieClip Frame 8
gotoAndStop (1);
Symbol 1345 MovieClip Frame 1
if ((_root.enemies < 4) && (((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 4)) || (_root.lvl._currentframe == 5))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.zombie, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 10
if ((_root.enemies < 4) && (((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 11)) || (_root.lvl._currentframe == 10)) || (_root.lvl._currentframe == 6)) || (_root.lvl._currentframe == 7))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.spider, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 20
if ((_root.enemies < 4) && ((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 4)) || (_root.lvl._currentframe == 5)) || (_root.lvl._currentframe == 6))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.wasp, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 30
if ((_root.enemies < 4) && ((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 11)) || (_root.lvl._currentframe == 7)) || (_root.lvl._currentframe == 9))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.skeleton, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 40
if ((_root.enemies < 4) && ((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 10)) || (_root.lvl._currentframe == 11)) || (_root.lvl._currentframe == 9))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.zombiod, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 50
if ((_root.enemies < 4) && ((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 17)) || (_root.lvl._currentframe == 15)) || (_root.lvl._currentframe == 14))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.ninja, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 60
if ((_root.enemies < 4) && (((((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 17)) || (_root.lvl._currentframe == 16)) || (_root.lvl._currentframe == 15)) || (_root.lvl._currentframe == 13))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.blog, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1345 MovieClip Frame 70
if ((_root.enemies < 4) && (((_root.lvl._currentframe == 19) || (_root.lvl._currentframe == 17)) || (_root.lvl._currentframe == 16))) {
_root.enemies++;
duplicateMovieClip (_root.lvl.shrum, "en" + _root.en_cnt, _root.en_cnt);
_root.en_cnt++;
}
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 2
gotoAndStop (1);
Symbol 1350 MovieClip Frame 3
gotoAndStop (1);
Symbol 1350 MovieClip Frame 4
gotoAndStop (1);
Symbol 1350 MovieClip Frame 5
gotoAndStop (1);
Symbol 1350 MovieClip Frame 6
gotoAndStop (1);
Symbol 1350 MovieClip Frame 7
gotoAndStop (1);
Symbol 1375 MovieClip Frame 1
stop();
Symbol 1376 Button
on (press, keyPress "q") {
if (_quality == "HIGH") {
_root.set_quality = "MEDIUM";
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
_root.set_quality = "LOW";
} else if (_quality == "LOW") {
_root.set_quality = "HIGH";
_quality = "HIGH";
}
}
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1381 MovieClip Frame 1
stop();
Symbol 1381 MovieClip Frame 2
_root.kills_required = _root.kills_required + _root.killrate;
_root.killrate = _root.killrate + 5;
_root.level++;
_root.lvl_up.play();
_root.points = _root.points + (50 + (_root.level * 2));
_root.viewed = 0;
_root.exper_req = Math.round(_root.kills_required * 10);
Symbol 1389 MovieClip Frame 1
stop();
Symbol 1393 Button
on (press) {
gotoAndStop (13);
}
Symbol 1394 Button
on (press) {
gotoAndStop (3);
}
Symbol 1395 Button
on (press) {
gotoAndStop (1);
}
Symbol 1396 Button
on (press) {
if ((_root.aman_hp < (_root.vitality * 20)) || (_root.aman_en < (_root.energy * 6))) {
_root.heal_type = 1;
_root.lvl.amano.heal.play();
}
}
Symbol 1399 Button
on (press) {
gotoAndStop (4);
}
Symbol 1400 Button
on (press) {
gotoAndStop (2);
}
Symbol 1401 Button
on (press) {
gotoAndStop (8);
}
Symbol 1402 Button
on (press) {
gotoAndStop (14);
}
Symbol 1442 Button
on (press) {
prevFrame();
}
Symbol 1443 Button
on (press) {
nextFrame();
}
Symbol 1614 Button
on (press) {
_root.savefile.data.lvl_at = _root.lvl_at;
_root.savefile.data.barb_said = _root.barb_said;
_root.savefile.data.garudi_dead = _root.garudi_dead;
_root.savefile.data.garudi_movie = _root.garudi_movie;
_root.savefile.data.barb_movie = _root.barb_movie;
_root.savefile.data.spook_dead = _root.spook_dead;
_root.savefile.data.kills = _root.kills;
_root.savefile.data.patrick_said = _root.patrick_said;
_root.savefile.data.sorceress_said = _root.sorceress_said;
_root.savefile.data.spook_said = _root.spook_said;
_root.savefile.data.killrate = _root.killrate;
_root.savefile.data.sdive_ability = _root.sdive_ability;
_root.savefile.data.wwind_ability = _root.wwind_ability;
_root.savefile.data.chaos_ability = _root.chaos_ability;
_root.savefile.data.heal_ability = _root.heal_ability;
_root.savefile.data.kills_required = _root.kills_required;
_root.savefile.data.points = _root.points;
_root.savefile.data.level = _root.level;
_root.savefile.data.strength = _root.strength;
_root.savefile.data.armor = _root.armor;
_root.savefile.data.vitality = _root.vitality;
_root.savefile.data.energy = _root.energy;
_root.savefile.data.agility = _root.agility;
_root.savefile.data.aman_hp = _root.aman_hp;
_root.savefile.data.aman_en = _root.aman_en;
_root.savefile.data.spook_hp = _root.spook_hp;
_root.savefile.data.kills_required = _root.kills_required;
_root.savefile.data.killrate = _root.killrate;
_root.savefile.data.level = _root.level;
_root.savefile.data.spook_hp = _root.spook_hp;
_root.savefile.flush();
gotoAndStop (2);
}
Symbol 1615 Button
on (press) {
if (_root.savefile.data.lvl_at == undefined) {
} else {
_root.barb_said = _root.savefile.data.barb_said;
_root.garudi_dead = _root.savefile.data.garudi_dead;
_root.garudi_movie = _root.savefile.data.garudi_movie;
_root.barb_movie = _root.savefile.data.barb_movie;
_root.lvl_at = _root.savefile.data.lvl_at;
_root.spook_dead = _root.savefile.data.spook_dead;
_root.kills = _root.savefile.data.kills;
_root.viewed = _root.savefile.data.viewed;
_root.patrick_said = _root.savefile.data.patrick_said;
_root.sorceress_said = _root.savefile.data.sorceress_said;
_root.spook_said = _root.savefile.data.spook_said;
_root.killrate = _root.savefile.data.killrate;
_root.sdive_ability = _root.savefile.data.sdive_ability;
_root.wwind_ability = _root.savefile.data.wwind_ability;
_root.chaos_ability = _root.savefile.data.chaos_ability;
_root.heal_ability = _root.savefile.data.heal_ability;
_root.kills_required = _root.savefile.data.kills_required;
_root.points = _root.savefile.data.points;
_root.level = _root.savefile.data.level;
_root.strength = _root.savefile.data.strength;
_root.armor = _root.savefile.data.armor;
_root.vitality = _root.savefile.data.vitality;
_root.energy = _root.savefile.data.energy;
_root.agility = _root.savefile.data.agility;
_root.aman_hp = _root.savefile.data.aman_hp;
_root.aman_en = _root.savefile.data.aman_en;
_root.spook_hp = _root.savefile.data.spook_hp;
_root.kills_required = _root.savefile.data.kills_required;
_root.killrate = _root.savefile.data.killrate;
_root.level = _root.savefile.data.level;
_root.fade.gotoAndPlay(15);
gotoAndStop (1);
}
}
Symbol 1627 MovieClip Frame 1
stop();
Instance of Symbol 1389 MovieClip in Symbol 1627 MovieClip Frame 2
onClipEvent (load) {
if (_root.lvl._currentframe == 3) {
this.gotoAndStop(2);
}
}
Symbol 1627 MovieClip Frame 14
_root.cheat = "";
Symbol 1627 MovieClip Frame 15
_root.sho = "Cheat failed!";
if (_root.cheat == "vindiesel") {
if (_root.god == 0) {
_root.god = 1;
_root.sho = "God mode activated!";
} else {
_root.sho = "God mode de-activated!";
_root.god = 0;
}
}
if (_root.cheat == "arnold") {
_root.strength = _root.strength + 5;
_root.sho = "Strength +5!";
}
if (_root.cheat == "theflash") {
_root.agility = _root.agility + 5;
_root.sho = "Agility +5!";
}
if (_root.cheat == "coffee") {
_root.energy = _root.energy + 5;
_root.sho = "Energy +5!";
}
if (_root.cheat == "Doctordoctor") {
_root.vitality = _root.vitality + 5;
_root.sho = "Vitality +5!";
}
if (_root.cheat == "ironman") {
_root.armor = _root.armor + 5;
_root.sho = "Armor +5!";
}
if (_root.cheat == "sensai") {
_root.sdive_ability = 1;
_root.wwind_ability = 1;
_root.chaos_ability = 1;
_root.heal_ability = 1;
_root.sho = "All skills have been learnt!";
}
if (_root.cheat == "steroids") {
_root.strength = _root.strength + 5;
_root.agility = _root.agility + 5;
_root.energy = _root.energy + 5;
_root.armor = _root.armor + 5;
_root.vitality = _root.vitality + 5;
_root.sho = "All attributes +5!";
}
if (_root.cheat == "chucknorris") {
_root.sdive_ability = 1;
_root.wwind_ability = 1;
_root.chaos_ability = 1;
_root.heal_ability = 1;
_root.strength = 50;
_root.agility = 50;
_root.energy = 50;
_root.armor = 50;
_root.vitality = 50;
if (_root.god == 0) {
_root.god = 1;
_root.sho = "God mode activated, Everything mastered!";
} else {
_root.sho = "God mode de-activated, Everything mastered!";
_root.god = 0;
}
}
if (_root.cheat == "upupandaway") {
_root.kills = _root.kills_required;
_root.sho = "Level up!";
}
Symbol 1628 Button
on (keyPress "<Space>") {
play();
}
Symbol 1634 Button
on (press) {
if ((_root.points >= _root.strength_cost) && (_root.strength < 50)) {
_root.points = _root.points - _root.strength_cost;
_root.strength++;
}
}
Symbol 1635 Button
on (press) {
if ((_root.points >= _root.agility_cost) && (_root.agility < 50)) {
_root.points = _root.points - _root.agility_cost;
_root.agility++;
}
}
Symbol 1636 Button
on (press) {
if ((_root.points >= _root.energy_cost) && (_root.energy < 50)) {
_root.points = _root.points - _root.energy_cost;
_root.energy++;
}
}
Symbol 1637 Button
on (press) {
if ((_root.points >= _root.vitality_cost) && (_root.vitality < 50)) {
_root.points = _root.points - _root.vitality_cost;
_root.vitality++;
}
}
Symbol 1638 Button
on (press) {
if ((_root.points >= _root.armor_cost) && (_root.armor < 50)) {
_root.points = _root.points - _root.armor_cost;
_root.armor++;
}
}
Symbol 1639 Button
on (press) {
if ((_root.points >= _root.wwind_cost) && (_root.wwind_ability == 0)) {
_root.points = _root.points - _root.wwind_cost;
_root.wwind_cost = 0;
_root.wwind_ability = 1;
}
}
Symbol 1640 Button
on (press) {
if ((_root.points >= _root.sdive_cost) && (_root.sdive_ability == 0)) {
_root.points = _root.points - _root.sdive_cost;
_root.sdive_cost = 0;
_root.sdive_ability = 1;
}
}
Symbol 1641 Button
on (press) {
if ((_root.points >= _root.chaos_cost) && (_root.chaos_ability == 0)) {
_root.points = _root.points - _root.chaos_cost;
_root.chaos_cost = 0;
_root.chaos_ability = 1;
}
}
Symbol 1642 Button
on (press) {
if ((_root.points >= _root.heal_cost) && (_root.heal_ability == 0)) {
_root.points = _root.points - _root.heal_cost;
_root.heal_cost = 0;
_root.heal_ability = 1;
}
}
Symbol 1689 MovieClip Frame 1
stop();
Instance of Symbol 1630 MovieClip "info" in Symbol 1689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.viewed == 0) {
if (_root.points > 0) {
this.prompt = ("You have " + _root.points) + " unused stat points, push 'SPACE'";
}
} else {
this.prompt = "";
}
}
Symbol 1689 MovieClip Frame 2
_root.viewed = 1;
Symbol 1689 MovieClip Frame 15
stop();
Symbol 1694 MovieClip Frame 30
stop();
Symbol 1694 MovieClip Frame 44
stop();
if (_root._currentframe == 22) {
_root.gotoAndStop(23);
}
if (_root._currentframe == 14) {
if (_root.aman_hp <= 0) {
_root.lvl.amano._x = _root.lvl.amano._x + 5000;
_root.lvl.gotoAndStop(20);
} else {
if (_root.lvl._currentframe == 19) {
_root.gotoAndStop(17);
}
if (_root.lvl._currentframe == 12) {
_root.gotoAndStop(20);
}
if (_root.lvl._currentframe == 2) {
_root.gotoAndStop(16);
}
if (_root.lvl._currentframe == 18) {
_root.gotoAndStop(15);
}
if (_root.lvl._currentframe == 8) {
_root.gotoAndStop(19);
}
}
}
Symbol 1709 MovieClip Frame 613
_root.gotoAndStop(14);
Symbol 1710 Button
on (release) {
_root.gotoAndStop(14);
}
Symbol 1735 MovieClip Frame 372
stop();
_root.gotoAndStop(14);
Symbol 1758 MovieClip Frame 546
_root.nextFrame();
Symbol 1775 MovieClip Frame 367
_root.sheet = random(9) + 1;
Symbol 1775 MovieClip Frame 368
if (_root.sheet == 1) {
_root.sheet_dis = "chucknorris - god mode, everything mastered";
}
if (_root.sheet == 2) {
_root.sheet_dis = "vindiesel - god mode";
}
if (_root.sheet == 3) {
_root.sheet_dis = "arnold - +5 strength";
}
if (_root.sheet == 4) {
_root.sheet_dis = "theflash - +5 agility";
}
if (_root.sheet == 5) {
_root.sheet_dis = "coffee - +5 energy";
}
if (_root.sheet == 6) {
_root.sheet_dis = "doctordoctor - +5 vitality";
}
if (_root.sheet == 7) {
_root.sheet_dis = "sensai - learns all skills";
}
if (_root.sheet == 8) {
_root.sheet_dis = "steroids - all attributes +5";
}
if (_root.sheet == 9) {
_root.sheet_dis = "upupandaway - level up";
}
Symbol 1775 MovieClip Frame 420
_root.gotoAndStop(6);
Symbol 1819 MovieClip Frame 350
stop();
_root.gotoAndStop(14);
Symbol 1886 MovieClip Frame 80
stop();
_root.gotoAndStop(14);
Symbol 1925 Button
on (press) {
nextFrame();
}
Symbol 1930 Button
on (press) {
prevFrame();
}
Symbol 1934 MovieClip Frame 1
_root.config = 1;
stop();
Symbol 1934 MovieClip Frame 2
_root.config = 2;
Symbol 1934 MovieClip Frame 3
_root.config = 3;
Symbol 1935 Button
on (release) {
gotoAndStop (6);
}
Symbol 1942 MovieClip Frame 4
_parent.gotoAndStop(38);
Symbol 1945 MovieClip Frame 7
_root.set_y = _parent._y - 50;
if (_root.power_shot == 1) {
_root.sora_en = _root.sora_en - 10;
_root.arrow_type = 3;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
} else {
_root.sora_en = _root.sora_en - 2;
_root.arrow_type = 2;
}
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
Symbol 1945 MovieClip Frame 9
_root.power_shot = 0;
_parent.gotoAndStop(38);
Symbol 1946 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 1947 MovieClip Frame 9
_parent.gotoAndStop(17);
Symbol 1948 MovieClip Frame 7
_root.set_y = _parent._y - 75;
_root.arrow_type = 1;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
Symbol 1948 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 1951 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 1955 MovieClip Frame 49
_parent.gotoAndStop(1);
Symbol 1956 MovieClip Frame 40
stop();
Symbol 1957 MovieClip Frame 50
stop();
Symbol 1960 MovieClip Frame 80
stop();
_root.fade.play();
Symbol 1961 MovieClip Frame 7
_root.set_y = _parent._y - 75;
if (_root.power_shot == 1) {
_root.sora_en = _root.sora_en - 10;
_root.arrow_type = 3;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
} else {
_root.arrow_type = 1;
duplicateMovieClip (_root.lvl.arro, _root.lvl.arro + _root.arrow_cnt, _root.arrow_cnt);
_root.arrow_cnt++;
}
Symbol 1961 MovieClip Frame 9
_root.power_shot = 0;
_parent.gotoAndStop(1);
Symbol 1962 MovieClip Frame 97
_root.sora_hp = _root.sora_hp - (random(10) + 5);
_root.sora_en = _root.sora_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
Symbol 1962 MovieClip Frame 107
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.sora_hp = _root.sora_hp - (random(10) + 5);
Symbol 1962 MovieClip Frame 122
_root.sora_hp = _root.sora_hp - (random(10) + 5);
_root.sora_en = _root.sora_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1962 MovieClip Frame 126
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.sora_hp = _root.sora_hp - (random(10) + 5);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1962 MovieClip Frame 135
_root.sora_hp = _root.sora_hp - (random(20) + 10);
_root.aman_en = _root.aman_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1962 MovieClip Frame 143
if (_root.choice == 2) {
gotoAndStop (152);
}
Symbol 1963 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 1964 MovieClip Frame 12
_parent.gotoAndStop(105);
Symbol 1965 MovieClip Frame 1
stop();
Symbol 1965 MovieClip Frame 41
_root.aman_en = _root.aman_en - 10;
Symbol 1965 MovieClip Frame 54
_root.aman_en = _root.aman_en - 20;
Symbol 1965 MovieClip Frame 76
_root.aman_en = _root.aman_en - 20;
Symbol 1965 MovieClip Frame 155
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.aman_hp = _root.aman_hp - (random(10) + 5);
}
Symbol 1965 MovieClip Frame 246
if (_root.aman_en > 5) {
_root.aman_en = _root.aman_en - 5;
} else {
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.aman_hp = _root.aman_hp - (random(10) + 5);
}
Symbol 1965 MovieClip Frame 284
_root.aman_hp = _root.aman_hp - (random(10) + 5);
_root.aman_en = _root.aman_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
Symbol 1965 MovieClip Frame 294
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.aman_hp = _root.aman_hp - (random(10) + 5);
Symbol 1965 MovieClip Frame 309
_root.aman_hp = _root.aman_hp - (random(10) + 5);
_root.aman_en = _root.aman_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1965 MovieClip Frame 313
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.aman_hp = _root.aman_hp - (random(10) + 5);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1965 MovieClip Frame 322
_root.aman_hp = _root.aman_hp - (random(20) + 10);
_root.aman_en = _root.aman_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 1965 MovieClip Frame 329
if (_root.choice == 2) {
gotoAndStop (335);
}
Symbol 1975 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1976 MovieClip Frame 6
_root.set_y = _parent._y - 75;
_root.set_yspd = 7;
duplicateMovieClip (_root.lvl.fireball, _root.lvl.fireball + _root.fireball_cnt, _root.fireball_cnt);
_root.fireball_cnt++;
Symbol 1976 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 1978 MovieClip Frame 6
_root.set_y = _parent._y - 75;
_root.set_yspd = 0;
_root.set_rotation = 0;
duplicateMovieClip (_root.lvl.fireball, _root.lvl.fireball + _root.fireball_cnt, _root.fireball_cnt);
_root.fireball_cnt++;
Symbol 1978 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 1979 MovieClip Frame 7
_root.golem_hp = 50;
_root.golem_spd = 7;
_root.golem_y_spd = 0;
_root.lvl.golem._y = _parent._y - 40;
_root.lvl.golem._x = _parent._x;
_root.lvl.golem.gotoAndStop(1);
_root.lvl.golem.summon.play();
Symbol 1979 MovieClip Frame 12
_parent._alpha = 20;
_parent.gotoAndStop(1);
Symbol 1980 MovieClip Frame 6
_root.wall_set_y = _parent._y;
duplicateMovieClip (_root.lvl.firewall, _root.lvl.firewall + _root.firewall_cnt, _root.firewall_cnt);
_root.firewall_cnt++;
Symbol 1980 MovieClip Frame 12
_parent.gotoAndStop(101);
Symbol 1986 MovieClip Frame 8
_parent.gotoAndStop(101);
Symbol 1987 MovieClip Frame 4
_parent.gotoAndStop(101);
Symbol 1989 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 1990 MovieClip Frame 14
_parent.gotoAndStop(101);
Symbol 1991 MovieClip Frame 4
_parent.gotoAndStop(140);
Symbol 1992 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 1994 MovieClip Frame 5
_parent.gotoAndStop(140);
Symbol 1997 MovieClip Frame 4
_parent.gotoAndStop(227);
Symbol 1998 MovieClip Frame 4
_parent.gotoAndStop(227);
Symbol 1999 MovieClip Frame 5
_parent.gotoAndStop(101);
Symbol 2001 MovieClip Frame 4
_parent.gotoAndStop(227);
Symbol 2002 MovieClip Frame 4
_parent.gotoAndStop(140);
Symbol 2003 MovieClip Frame 3
_parent.gotoAndStop(101);
Symbol 2004 MovieClip Frame 6
_parent.gotoAndStop(227);
Symbol 2005 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 2007 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 2008 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 2009 MovieClip Frame 86
stop();
Symbol 2010 MovieClip Frame 94
stop();
Symbol 2011 MovieClip Frame 97
stop();
Symbol 2013 MovieClip Frame 80
stop();
_root.fade.play();
Symbol 2014 MovieClip Frame 1
stop();
Symbol 2014 MovieClip Frame 43
_root.viol_en = _root.viol_en - 2;
Symbol 2014 MovieClip Frame 51
_root.viol_en = _root.viol_en - 60;
Symbol 2014 MovieClip Frame 59
_root.viol_en = _root.viol_en - 15;
Symbol 2014 MovieClip Frame 73
_root.viol_en = _root.viol_en - 25;
if (_root.viol_hp < 180) {
_root.viol_hp = _root.viol_hp + 18;
}
Symbol 2014 MovieClip Frame 150
if (_root.viol_en > 5) {
_root.viol_en = _root.viol_en - 5;
} else {
_root.viol_hp = _root.viol_hp - (random(10) + 5);
}
Symbol 2014 MovieClip Frame 239
if (_root.viol_en > 5) {
_root.viol_en = _root.viol_en - 5;
} else {
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.viol_hp = _root.viol_hp - (random(10) + 5);
}
Symbol 2014 MovieClip Frame 278
_root.viol_hp = _root.viol_hp - (random(10) + 5);
_root.viol_en = _root.viol_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
Symbol 2014 MovieClip Frame 288
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.viol_hp = _root.viol_hp - (random(10) + 5);
Symbol 2014 MovieClip Frame 303
_root.viol_hp = _root.viol_hp - (random(10) + 5);
_root.viol_en = _root.viol_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 2014 MovieClip Frame 307
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.viol_hp = _root.viol_hp - (random(10) + 5);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 2014 MovieClip Frame 317
_root.viol_hp = _root.viol_hp - (random(20) + 10);
_root.viol_en = _root.viol_en - 0;
_root.b_type = this.b_type;
_root.blood_x = this._x;
_root.blood_y = this._y - 70;
_root.sfx.gotoAndStop(4);
_root.hit_sfx.gotoAndStop(random(5) + 2);
Symbol 2014 MovieClip Frame 324
if (_root.choice == 2) {
gotoAndStop (330);
}
if (_root.choice == 3) {
gotoAndStop (330);
}
Symbol 2025 MovieClip Frame 1
stop();
Symbol 2041 MovieClip Frame 11
stop();
Symbol 2042 MovieClip Frame 1
stop();
Symbol 2051 MovieClip Frame 1
stop();
Symbol 2051 MovieClip Frame 9
_parent.gotoAndStop(10);
Symbol 2071 MovieClip Frame 54
_parent.gotoAndStop(10);
Symbol 2077 MovieClip Frame 3
_parent.gotoAndStop(10);
Symbol 2078 MovieClip Frame 6
_parent.gotoAndStop(10);
Symbol 2079 MovieClip Frame 16
_parent.gotoAndStop(10);
Symbol 2087 MovieClip Frame 26
_root.golemmade = 0;
_root.lvl.violet._alpha = 100;
Symbol 2087 MovieClip Frame 27
_root.golemmade = 0;
_root.lvl.violet._alpha = 100;
Symbol 2087 MovieClip Frame 28
stop();
_parent._x = -5000;
_parent.gotoAndStop(1);
Symbol 2088 MovieClip Frame 1
stop();
Symbol 2088 MovieClip Frame 34
_root.golem_hp = _root.golem_hp - (random(10) + 5);
Symbol 2088 MovieClip Frame 38
_root.golem_hp = _root.golem_hp - (random(20) + 10);
Symbol 2093 MovieClip Frame 74
stop();
Symbol 2133 MovieClip Frame 1
stop();
Instance of Symbol 1309 MovieClip "barbus" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
alpha_cnt = 0;
player_type = 1;
dir = 0;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
y_spd = 0;
if (_root.p2_selected == 1) {
this._name = "dead";
this.removeMovieClip();
}
if (_root.p1_selected != 1) {
this.gotoAndStop(500);
}
this.swapDepths(110);
}
onClipEvent (enterFrame) {
if ((this._currentframe < 500) && (_root.fade._currentframe == 30)) {
if (_root.p2_dead == 1) {
this.gotoAndStop(victory);
}
if (_root.barb_hp <= 0) {
_root.p1_dead = 1;
this.gotoAndStop(dying);
}
if (player_type > 0) {
if (player_type == 1) {
key_w = Key.isDown(87);
key_a = Key.isDown(65);
key_s = Key.isDown(83);
key_d = Key.isDown(68);
if (_root.config == 1) {
key_r = Key.isDown(82);
key_t = Key.isDown(84);
key_y = Key.isDown(89);
}
if (_root.config == 2) {
key_r = Key.isDown(85);
key_t = Key.isDown(73);
key_y = Key.isDown(79);
}
if (_root.config == 3) {
key_r = Key.isDown(70);
key_t = Key.isDown(71);
key_y = Key.isDown(72);
}
}
stand = 1;
walk = 9;
run = 17;
run_attack = 25;
attack1 = 34;
attack2 = 43;
blocking = 49;
block = 59;
blockhit = 71;
hit = 79;
dying = 83;
victory = 90;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if ((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.amano))) || (this.hitTest(_root.lvl.violet))) {
if (this._currentframe <= run) {
if (((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
}
if (this._currentframe == block) {
if (((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(stand);
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.6);
} else {
this._x = this._x - (spd * 1.2);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.6);
} else {
this._x = this._x + (spd * 1.2);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe < run_attack) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.2);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.2);
}
}
}
if (key_a && (key_d)) {
this.gotoAndStop(stand);
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
if (this._currentframe <= walk) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - (spd * 0.6);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 6;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + (spd * 0.6);
}
}
if ((this.run_attack_anim._currentframe > 5) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (key_t) {
if ((this._currentframe < run) && (_root.barb_en > 15)) {
this.gotoAndStop(attack2);
}
}
if (key_r) {
if ((this._currentframe == run) && (_root.barb_en > 15)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if ((this._currentframe < run) && (_root.barb_en > 15)) {
this.gotoAndStop(attack1);
}
}
if (key_y) {
if (this._currentframe <= run) {
this.gotoAndStop(blocking);
}
} else if (this._currentframe == block) {
this.gotoAndStop(stand);
}
if (((this.attack1_anim._currentframe == 20) || (this.attack1_anim._currentframe == 27)) || (this.attack1_anim._currentframe == 47)) {
if (key_r) {
_root.barb_en = _root.barb_en - 5;
} else {
this.gotoAndStop(1);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.61);
} else {
this._x = this._x - (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.61);
} else {
this._x = this._x + (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
Instance of Symbol 1309 MovieClip "barbus" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
ai_attack_time = 10;
ai_attack_delay = 10;
key_w = false;
key_a = false;
key_s = false;
key_d = false;
key_r = false;
key_t = false;
key_y = false;
alpha_cnt = 0;
player_type = _root.player_type;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = -this._xscale;
y_spd = 0;
if (_root.p1_selected == 1) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(111);
if (_root.p2_selected != 1) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (_root.p1_selected == 1) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(111);
if (_root.p2_selected != 1) {
this.removeMovieClip();
}
if (_root.fade._currentframe == 30) {
if (_root.p1_dead == 1) {
this.gotoAndStop(victory);
}
if (_root.barb_hp <= 0) {
_root.p2_dead = 1;
this.gotoAndStop(dying);
}
if (player_type == 2) {
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
if (_root.config == 1) {
key_r = Key.isDown(73);
key_t = Key.isDown(79);
key_y = Key.isDown(80);
}
if (_root.config == 2) {
key_r = Key.isDown(103);
key_t = Key.isDown(104);
key_y = Key.isDown(105);
}
if (_root.config == 3) {
key_r = Key.isDown(76);
key_t = Key.isDown(186);
key_y = Key.isDown(222);
}
}
if ((player_type == 3) && (_root.fade._currentframe == 30)) {
if (_root.p1_selected == 2) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.sora._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.sora._x - 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.sora._x + 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 3) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.amano._x + 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 4) {
if (_root.lvl.golem._currentframe >= 10) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.golem._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.golem._x - 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_time = 40;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.golem._x + 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_time = 40;
key_a = true;
} else {
key_a = false;
}
} else {
if (this._currentframe <= run) {
if (this._x < _root.lvl.violet._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.violet._x - 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_time = 40;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.violet._x + 100)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_time = 40;
key_a = true;
} else {
key_a = false;
}
}
}
if (ai_attack_time > 0) {
ai_attack_time--;
} else {
key_r = false;
key_t = false;
key_y = false;
ai_attack = 0;
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if (((ai_attack_delay == 0) && ((this._currentframe <= run) || (this._currentframe == block))) && ((this.hitTest(_root.lvl.amano) || (this.hitTest(_root.lvl.sora))) || (this.hitTest(_root.lvl.violet)))) {
ai_attack = random(3) + 1;
}
if (ai_attack == 1) {
if (ai_attack_delay == 0) {
ai_attack_delay = 60;
ai_attack_time = 50;
}
key_r = true;
} else {
key_r = false;
}
if (ai_attack == 2) {
if (ai_attack_delay == 0) {
ai_attack_delay = 70;
ai_attack_time = 10;
}
key_t = true;
} else {
key_t = false;
}
if (ai_attack == 3) {
if (ai_attack_delay == 0) {
ai_attack_delay = 60;
ai_attack_time = 50;
}
key_y = true;
} else {
key_y = false;
}
right_tap_time = 4;
left_tap_time = 4;
}
stand = 1;
walk = 9;
run = 17;
run_attack = 25;
attack1 = 34;
attack2 = 43;
blocking = 49;
block = 59;
blockhit = 71;
hit = 79;
dying = 83;
victory = 90;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if ((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.amano))) || (this.hitTest(_root.lvl.violet))) {
if (this._currentframe <= run) {
if (((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
}
if (this._currentframe == block) {
if (((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(stand);
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.6);
} else {
this._x = this._x - (spd * 1.2);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.6);
} else {
this._x = this._x + (spd * 1.2);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe < run_attack) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (key_d && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.2);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (key_a && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.2);
}
}
}
if (key_a && (key_d)) {
this.gotoAndStop(stand);
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
if (this._currentframe <= walk) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - (spd * 0.6);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + (spd * 0.6);
}
}
if ((this.run_attack_anim._currentframe > 5) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (key_t) {
if ((this._currentframe < run) && (_root.barb_en > 15)) {
this.gotoAndStop(attack2);
}
}
if (key_r) {
if ((this._currentframe == run) && (_root.barb_en > 15)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if ((this._currentframe < run) && (_root.barb_en > 15)) {
this.gotoAndStop(attack1);
}
}
if (key_y) {
if (this._currentframe <= run) {
this.gotoAndStop(blocking);
}
} else if (this._currentframe == block) {
this.gotoAndStop(stand);
}
if (((this.attack1_anim._currentframe == 20) || (this.attack1_anim._currentframe == 27)) || (this.attack1_anim._currentframe == 47)) {
if (key_r) {
_root.barb_en = _root.barb_en - 5;
} else {
this.gotoAndStop(1);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.61);
} else {
this._x = this._x - (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.61);
} else {
this._x = this._x + (this.spd * 1.21);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
Instance of Symbol 1962 MovieClip "sora" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
alpha_cnt = 0;
y_spd = 0;
player_type = 1;
dir = 0;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
if (_root.p2_selected == 2) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(130);
if (_root.p1_selected != 2) {
this.gotoAndStop(500);
}
}
onClipEvent (enterFrame) {
if ((this._currentframe < 500) && (_root.fade._currentframe == 30)) {
if (_root.p2_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.sora_hp <= 0) and (this._currentframe <= run)) {
_root.choice = random(2) + 1;
_root.p1_dead = 1;
this.gotoAndStop(dead1);
}
if (player_type > 0) {
if (player_type == 1) {
key_w = Key.isDown(87);
key_a = Key.isDown(65);
key_s = Key.isDown(83);
key_d = Key.isDown(68);
if (_root.config == 1) {
key_r = Key.isDown(82);
key_t = Key.isDown(84);
key_y = Key.isDown(89);
}
if (_root.config == 2) {
key_r = Key.isDown(85);
key_t = Key.isDown(73);
key_y = Key.isDown(79);
}
if (_root.config == 3) {
key_r = Key.isDown(70);
key_t = Key.isDown(71);
key_y = Key.isDown(72);
}
}
stand = 1;
walk = 9;
run = 17;
jump = 72;
attackair = 85;
attack1 = 168;
crouchattack1 = 47;
crouching = 24;
crouch = 38;
rising = 62;
rolling = 78;
crouchhit = 97;
crouchknockback = 107;
hit = 122;
knockback = 136;
impact = 135;
dead1 = 143;
dead2 = 152;
victory = 158;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if (((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.amano))) || (this.hitTest(_root.lvl.barbus.area))) || (this.hitTest(_root.lvl.violet))) {
if (this._currentframe == crouchblock) {
if ((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) {
this.gotoAndStop(crouchblockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (this._currentframe <= run) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(stand);
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - spd;
} else {
this._x = this._x - (spd * 2);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + spd;
} else {
this._x = this._x + (spd * 2);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe < (run + 1)) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 2);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 2);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - spd;
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + spd;
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (this.shoot._currentframe == 6) {
if (dir == 1) {
_root.set_x = this._x - 50;
} else {
_root.set_x = this._x + 75;
}
_root.arrow_dir = dir;
}
if (this._currentframe == jump) {
if (key_a) {
this._x = this._x - (spd * 2);
}
if (key_d) {
this._x = this._x + (spd * 2);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (key_d) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if (key_a) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if ((key_t && (this._alpha > 45)) && (_root.sora_en > 10)) {
if (this._currentframe <= walk) {
_root.power_shot = 1;
this.gotoAndStop(attack1);
}
if (this._currentframe == crouch) {
_root.power_shot = 1;
this.gotoAndStop(crouchattack1);
}
}
if (key_r && (this._alpha > 45)) {
if (this._currentframe == run) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if (this._currentframe <= walk) {
this.gotoAndStop(attack1);
}
if ((this._currentframe == crouch) && (_root.sora_en > 3)) {
this.gotoAndStop(crouchattack1);
}
}
if (key_s) {
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if ((alpha_cnt == 0) && (_root.sora_en > 1)) {
_root.sora_en = _root.sora_en - 0.5;
this._alpha = 40;
}
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (alpha_cnt == 0) {
this._alpha = 100;
}
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (((this.combo_anim._currentframe == 20) || (this.combo_anim._currentframe == 27)) || (this.combo_anim._currentframe == 47)) {
if (key_r) {
} else {
this.gotoAndStop(1);
}
}
if (key_w) {
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 1.1);
} else {
this._x = this._x - (this.spd * 2.1);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 1.1);
} else {
this._x = this._x + (this.spd * 2.1);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
Instance of Symbol 1962 MovieClip "sora" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
ai_attack_time = 10;
ai_attack_delay = 10;
attack_dist = 300;
key_w = false;
key_a = false;
key_s = false;
key_d = false;
key_r = false;
key_t = false;
key_y = false;
alpha_cnt = 0;
y_spd = 0;
player_type = _root.player_type;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = -this._xscale;
if (_root.p1_selected == 2) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(130);
if (_root.p2_selected != 2) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (_root.p1_selected == 2) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(130);
if (_root.p2_selected != 2) {
this.removeMovieClip();
}
if (_root.fade._currentframe == 30) {
if (_root.p1_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.sora_hp <= 0) and (this._currentframe <= run)) {
_root.choice = random(2) + 1;
_root.p2_dead = 1;
this.gotoAndStop(dead1);
}
if (player_type > 0) {
if (player_type == 2) {
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
if (_root.config == 1) {
key_r = Key.isDown(73);
key_t = Key.isDown(79);
key_y = Key.isDown(80);
}
if (_root.config == 2) {
key_r = Key.isDown(103);
key_t = Key.isDown(104);
key_y = Key.isDown(105);
}
if (_root.config == 3) {
key_r = Key.isDown(76);
key_t = Key.isDown(186);
key_y = Key.isDown(222);
}
}
if ((player_type == 3) && (_root.fade._currentframe == 30)) {
if (_root.p1_selected == 1) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.barbus._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.barbus._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.barbus._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 3) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.amano._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 4) {
if (_root.lvl.golem._currentframe >= 10) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.golem._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.golem._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.golem._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
} else {
if (this._currentframe <= run) {
if (this._x < _root.lvl.violet._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.violet._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.violet._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
}
if (ai_attack_time > 0) {
ai_attack_time--;
} else {
key_r = false;
key_t = false;
key_y = false;
key_s = false;
ai_attack = 1;
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if ((ai_attack_delay == 0) && ((this._currentframe <= run) || (this._currentframe == crouch))) {
ai_attack = random(5) + 1;
}
if (_root.sora_en < 15) {
ai_attack_time = 10;
key_r = true;
}
if (ai_attack == 1) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_r = true;
} else {
key_r = false;
}
if (ai_attack == 2) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_t = true;
} else {
key_t = false;
}
if (ai_attack == 3) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_y = true;
} else {
key_y = false;
}
if (ai_attack == 4) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = true;
key_r = true;
} else {
key_s = false;
key_r = false;
}
if (ai_attack == 5) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = true;
key_t = true;
} else {
key_s = false;
key_t = false;
}
right_tap_time = 4;
left_tap_time = 4;
}
stand = 1;
walk = 9;
run = 17;
jump = 72;
attackair = 85;
attack1 = 168;
crouchattack1 = 47;
crouching = 24;
crouch = 38;
rising = 62;
rolling = 78;
crouchhit = 97;
crouchknockback = 107;
hit = 122;
knockback = 136;
impact = 135;
dead1 = 143;
dead2 = 152;
victory = 158;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if (((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.amano))) || (this.hitTest(_root.lvl.barbus.area))) || (this.hitTest(_root.lvl.violet))) {
if (this._currentframe == crouchblock) {
if ((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) {
this.gotoAndStop(crouchblockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (this._currentframe <= run) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (((((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(stand);
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - spd;
} else {
this._x = this._x - (spd * 2);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + spd;
} else {
this._x = this._x + (spd * 2);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (key_d && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 2);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (key_a && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 2);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - spd;
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + spd;
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (this.shoot._currentframe == 6) {
if (dir == 1) {
_root.set_x = this._x - 50;
} else {
_root.set_x = this._x + 75;
}
_root.arrow_dir = dir;
}
if (this._currentframe == jump) {
if (key_a) {
this._x = this._x - (spd * 2);
}
if (key_d) {
this._x = this._x + (spd * 2);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (key_d) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if (key_a) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if (key_t && (this._alpha > 45)) {
if ((this._currentframe <= walk) && (_root.sora_en > 10)) {
_root.power_shot = 1;
this.gotoAndStop(attack1);
}
if ((this._currentframe == crouch) && (_root.sora_en > 3)) {
_root.power_shot = 1;
this.gotoAndStop(crouchattack1);
}
}
if (key_r && (this._alpha > 45)) {
if (this._currentframe <= walk) {
this.gotoAndStop(attack1);
}
if ((this._currentframe == crouch) && (_root.sora_en > 3)) {
this.gotoAndStop(crouchattack1);
}
}
if (key_s) {
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if ((alpha_cnt == 0) && (_root.sora_en > 1)) {
_root.sora_en = _root.sora_en - 0.5;
this._alpha = 40;
}
} else if (alpha_cnt == 0) {
this._alpha = 100;
}
if (key_w) {
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 1.1);
} else {
this._x = this._x - (this.spd * 2.1);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 1.1);
} else {
this._x = this._x + (this.spd * 2.1);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
Instance of Symbol 965 MovieClip "blood" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
this._y = _root.blood_y;
this._x = _root.blood_x;
this._width = random(5) + 1;
y_spd = random(20) - 10;
x_spd = random(20) - 10;
}
onClipEvent (enterFrame) {
this._height = this._width;
if (_name == "blood") {
this._x = -500;
this._y = -500;
} else {
this.real_x = this._x + _root.lvl._x;
this.real_y = this._y + _root.lvl._y;
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
this.removeMovieClip();
} else {
this._x = this._x + x_spd;
this._y = this._y - y_spd;
y_spd--;
x_spd = x_spd * 0.96;
}
}
}
Instance of Symbol 1965 MovieClip "amano" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
alpha_cnt = 0;
y_spd = 0;
player_type = 1;
dir = 0;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
if (_root.p2_selected == 3) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(140);
if (_root.p1_selected != 3) {
this.gotoAndStop(500);
}
}
onClipEvent (enterFrame) {
if ((this._currentframe < 500) && (_root.fade._currentframe == 30)) {
if (_root.p2_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.aman_hp <= 0) and (this._currentframe <= run)) {
_root.choice = random(2) + 1;
_root.p1_dead = 1;
this.gotoAndStop(dead1);
}
if (player_type > 0) {
if (player_type == 1) {
key_w = Key.isDown(87);
key_a = Key.isDown(65);
key_s = Key.isDown(83);
key_d = Key.isDown(68);
if (_root.config == 1) {
key_r = Key.isDown(82);
key_t = Key.isDown(84);
key_y = Key.isDown(89);
}
if (_root.config == 2) {
key_r = Key.isDown(85);
key_t = Key.isDown(73);
key_y = Key.isDown(79);
}
if (_root.config == 3) {
key_r = Key.isDown(70);
key_t = Key.isDown(71);
key_y = Key.isDown(72);
}
}
stand = 1;
walk = 9;
run = 16;
jump = 23;
attackair = 30;
run_attack = 41;
attack1 = 48;
attack2 = 54;
crouchattack1 = 64;
crouchattack2 = 76;
crouching = 91;
crouch = 105;
rising = 115;
rolling = 124;
blocking = 132;
block = 145;
unblocking = 140;
blockhit = 155;
blockwalk = 163;
blockwalkback = 173;
crouchblocking = 188;
uncrouchblocking = 200;
crouchblock = 232;
crouchblockhit = 246;
crouchhit = 284;
crouchknockback = 284;
blocktocrouchblock = 207;
crouchblocktoblock = 260;
hit = 309;
knockback = 313;
impact = 322;
dead1 = 329;
dead2 = 335;
victory = 341;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if ((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.violet))) || (this.hitTest(_root.lvl.barbus.area))) {
if (this._currentframe == crouchblock) {
if ((_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) {
this.gotoAndStop(crouchblockhit);
}
if ((((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if ((_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) {
this.gotoAndStop(crouchhit);
}
if ((((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(impact);
}
}
if (((((this._currentframe <= run) || (this._currentframe == attack1)) || (this._currentframe == attack2)) || (this._currentframe == crouchattack1)) || (this._currentframe == crouchattack2)) {
if ((_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) {
this.gotoAndStop(hit);
}
if (((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking) || (_root.lvl.golem._currentframe == _root.lvl.golem.attack)) {
this.gotoAndStop(blockhit);
}
if (((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - (spd * 0.8);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (((this._currentframe == attack2) || (this._currentframe == crouchattack2)) || (this._currentframe == jump)) {
if (key_a) {
this._x = this._x - (spd * 1.6);
}
if (key_d) {
this._x = this._x + (spd * 1.6);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((key_y && (key_d)) && (!key_a)) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if ((key_y && (key_a)) && (!key_d)) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 1.6);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (key_t) {
if ((this._currentframe <= run) && (_root.aman_en > 20)) {
wind_time = 50;
_root.sfx.gotoAndStop(2);
this.gotoAndStop(attack2);
}
if ((this._currentframe == crouch) && (_root.aman_en > 20)) {
_root.sfx.gotoAndStop(2);
wind_time = 50;
this.gotoAndStop(crouchattack2);
}
}
if (key_r) {
if ((this._currentframe == run) && (_root.aman_en > 10)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if (this._currentframe < run) {
this.gotoAndStop(attack1);
}
if (this._currentframe == crouch) {
this.gotoAndStop(crouchattack1);
}
}
if (key_s) {
if (this._currentframe == block) {
this.gotoAndStop(blocktocrouchblock);
}
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (((this.combo_anim._currentframe == 20) || (this.combo_anim._currentframe == 27)) || (this.combo_anim._currentframe == 47)) {
if (key_r) {
} else {
this.gotoAndStop(1);
}
}
if (key_w) {
if (this._currentframe == crouchblock) {
this.gotoAndStop(crouchblocktoblock);
}
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.81);
} else {
this._x = this._x - (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.81);
} else {
this._x = this._x + (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
Instance of Symbol 1965 MovieClip "amano" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
ai_attack_time = 10;
ai_attack_delay = 10;
attack_dist = 150;
key_w = false;
key_a = false;
key_s = false;
key_d = false;
key_r = false;
key_t = false;
key_y = false;
alpha_cnt = 0;
y_spd = 0;
player_type = _root.player_type;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = -this._xscale;
if (_root.p1_selected == 3) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(141);
if (_root.p2_selected != 3) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (_root.p1_selected == 3) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(141);
if (_root.p2_selected != 3) {
this.removeMovieClip();
}
if (_root.fade._currentframe == 30) {
if (_root.p1_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.aman_hp <= 0) and (this._currentframe <= run)) {
_root.choice = random(2) + 1;
_root.p2_dead = 1;
this.gotoAndStop(dead1);
}
if (player_type > 0) {
if (player_type == 2) {
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
if (_root.config == 1) {
key_r = Key.isDown(73);
key_t = Key.isDown(79);
key_y = Key.isDown(80);
}
if (_root.config == 2) {
key_r = Key.isDown(103);
key_t = Key.isDown(104);
key_y = Key.isDown(105);
}
if (_root.config == 3) {
key_r = Key.isDown(76);
key_t = Key.isDown(186);
key_y = Key.isDown(222);
}
}
if ((player_type == 3) && (_root.fade._currentframe == 30)) {
if (_root.p1_selected == 1) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.barbus._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.barbus._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.barbus._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 2) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.sora._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.sora._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.sora._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 4) {
if (_root.lvl.golem._currentframe >= 10) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.golem._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.golem._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.golem._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
} else {
if (this._currentframe <= run) {
if (this._x < _root.lvl.violet._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.violet._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.violet._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
}
if (ai_attack_time > 0) {
ai_attack_time--;
} else {
key_r = false;
key_t = false;
key_y = false;
key_s = false;
ai_attack = 1;
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if (((ai_attack_delay == 0) && (((this._currentframe <= run) || (this._currentframe == crouch)) || (this._currentframe == block))) && ((this.hitTest(_root.lvl.barbus) || (this.hitTest(_root.lvl.sora))) || (this.hitTest(_root.lvl.violet)))) {
ai_attack = random(5) + 1;
}
if (_root.aman_en < 15) {
ai_attack = 0;
ai_attack_time = 10;
key_r = true;
}
if (ai_attack == 1) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_r = true;
} else {
key_r = false;
}
if (ai_attack == 2) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_t = true;
} else {
key_t = false;
}
if (ai_attack == 3) {
if (ai_attack_delay == 0) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = false;
key_y = true;
} else {
key_y = false;
}
if (ai_attack == 4) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = true;
key_r = true;
} else {
key_s = false;
key_r = false;
}
if (ai_attack == 5) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 30;
ai_attack_time = 40;
}
key_s = true;
key_t = true;
} else {
key_s = false;
key_t = false;
}
right_tap_time = 4;
left_tap_time = 4;
}
stand = 1;
walk = 9;
run = 16;
jump = 23;
attackair = 30;
run_attack = 41;
attack1 = 48;
attack2 = 54;
crouchattack1 = 64;
crouchattack2 = 76;
crouching = 91;
crouch = 105;
rising = 115;
rolling = 124;
blocking = 132;
block = 145;
unblocking = 140;
blockhit = 155;
blockwalk = 163;
blockwalkback = 173;
crouchblocking = 188;
uncrouchblocking = 200;
crouchblock = 232;
crouchblockhit = 246;
crouchhit = 284;
crouchknockback = 284;
blocktocrouchblock = 207;
crouchblocktoblock = 260;
hit = 309;
knockback = 313;
impact = 322;
dead1 = 329;
dead2 = 335;
victory = 341;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if ((this.hitTest(_root.lvl.golem) || (this.hitTest(_root.lvl.violet))) || (this.hitTest(_root.lvl.barbus.area))) {
if (this._currentframe == crouchblock) {
if ((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchblockhit);
}
if ((((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if ((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchhit);
}
if ((((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(impact);
}
}
if (((((this._currentframe <= run) || (this._currentframe == attack1)) || (this._currentframe == attack2)) || (this._currentframe == crouchattack1)) || (this._currentframe == crouchattack2)) {
if ((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(hit);
}
if (((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((_root.lvl.golem._currentframe == _root.lvl.golem.attack) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(blockhit);
}
if (((((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30)) || (_root.lvl.violet._currentframe == _root.lvl.violet.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - (spd * 0.8);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (((this._currentframe == attack2) || (this._currentframe == crouchattack2)) || (this._currentframe == jump)) {
if (key_a) {
this._x = this._x - (spd * 1.6);
}
if (key_d) {
this._x = this._x + (spd * 1.6);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((key_y && (key_d)) && (!key_a)) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if ((key_y && (key_a)) && (!key_d)) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 1.6);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 2);
} else {
this._x = this._x + (spd * 2);
}
}
if (key_t) {
if ((this._currentframe <= run) && (_root.aman_en > 20)) {
wind_time = 50;
_root.sfx.gotoAndStop(2);
this.gotoAndStop(attack2);
}
if ((this._currentframe == crouch) && (_root.aman_en > 20)) {
_root.sfx.gotoAndStop(2);
wind_time = 50;
this.gotoAndStop(crouchattack2);
}
}
if (key_r) {
if ((this._currentframe == run) && (_root.aman_en > 10)) {
right_tap_time = 0;
left_tap_time = 0;
this.gotoAndStop(run_attack);
}
if (this._currentframe < run) {
this.gotoAndStop(attack1);
}
if (this._currentframe == crouch) {
this.gotoAndStop(crouchattack1);
}
}
if (key_s) {
if (this._currentframe == block) {
this.gotoAndStop(blocktocrouchblock);
}
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (((this.combo_anim._currentframe == 20) || (this.combo_anim._currentframe == 27)) || (this.combo_anim._currentframe == 47)) {
if (key_r) {
} else {
this.gotoAndStop(1);
}
}
if (key_w) {
if (this._currentframe == crouchblock) {
this.gotoAndStop(crouchblocktoblock);
}
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.81);
} else {
this._x = this._x - (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.81);
} else {
this._x = this._x + (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
Instance of Symbol 2014 MovieClip "violet" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
if (_root.p1_selected == 4) {
}
alpha_cnt = 0;
line_shoot = 0;
y_spd = 0;
player_type = 1;
dir = 0;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = this._xscale;
if (_root.p2_selected == 4) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(150);
if (_root.p1_selected != 4) {
this.gotoAndStop(500);
}
}
onClipEvent (enterFrame) {
if ((this._currentframe < 500) && (_root.fade._currentframe == 30)) {
_root.golem_player_type = 1;
if (_root.p2_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.viol_hp <= 0) and (this._currentframe <= run)) {
_root.p1_dead = 1;
_root.choice = random(3) + 1;
this.gotoAndStop(dead1);
}
if (this._alpha > 40) {
if (player_type > 0) {
if (player_type == 1) {
key_w = Key.isDown(87);
key_a = Key.isDown(65);
key_s = Key.isDown(83);
key_d = Key.isDown(68);
if (_root.config == 1) {
key_r = Key.isDown(82);
key_t = Key.isDown(84);
key_y = Key.isDown(89);
}
if (_root.config == 2) {
key_r = Key.isDown(85);
key_t = Key.isDown(73);
key_y = Key.isDown(79);
}
if (_root.config == 3) {
key_r = Key.isDown(70);
key_t = Key.isDown(71);
key_y = Key.isDown(72);
}
}
stand = 1;
walk = 9;
run = 17;
jump = 25;
attackair = 32;
run_attack = 41;
attack1 = 43;
attack2 = 51;
crouchattack1 = 59;
crouchattack2 = 73;
crouching = 87;
crouch = 101;
rising = 111;
rolling = 120;
blocking = 127;
block = 140;
unblocking = 135;
blockhit = 150;
blockwalk = 160;
blockwalkback = 170;
crouchblocking = 209;
uncrouchblocking = 220;
crouchblock = 227;
crouchblockhit = 246;
crouchhit = 278;
crouchknockback = 288;
blocktocrouchblock = 185;
crouchblocktoblock = 253;
hit = 303;
knockback = 307;
impact = 317;
dead1 = 324;
dead2 = 330;
dead3 = 336;
victory = 341;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if (this.hitTest(_root.lvl.amano) || (this.hitTest(_root.lvl.barbus.area))) {
if (this._currentframe == crouchblock) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchblockhit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchhit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (this._currentframe <= run) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(hit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - (spd * 0.8);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (this.shoot._currentframe == 5) {
if (dir == 1) {
_root.set_x = this._x - 50;
} else {
_root.set_x = this._x + 75;
}
_root.fireball_dir = dir;
}
if (this.shoot2._currentframe == 5) {
if (dir == 1) {
_root.wall_set_x = this._x - 50;
} else {
_root.wall_set_x = this._x + 75;
}
_root.firewall_dir = dir;
}
if (this.shoot3._currentframe == 5) {
if (dir == 1) {
_root.set_x = this._x - 50;
_root.set_rotation = 145;
} else {
_root.set_rotation = 45;
_root.set_x = this._x + 75;
}
_root.fireball_dir = dir;
}
if (this._currentframe == jump) {
if (key_a) {
this._x = this._x - (spd * 1.6);
}
if (key_d) {
this._x = this._x + (spd * 1.6);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((key_y && (key_d)) && (!key_a)) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if ((key_y && (key_a)) && (!key_d)) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 1.6);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 5);
} else {
this._x = this._x + (spd * 5);
}
}
if (key_t) {
if ((this._currentframe < walk) && (_root.viol_en > 60)) {
wind_time = 50;
_root.sfx.gotoAndStop(2);
this.gotoAndStop(attack2);
}
if ((this._currentframe == crouch) && (_root.viol_en > 25)) {
_root.sfx.gotoAndStop(2);
wind_time = 50;
this.gotoAndStop(crouchattack2);
}
}
if (line_shoot > 0) {
line_shoot--;
}
if (key_r) {
if ((this._currentframe < run) && (_root.viol_en > 2)) {
this.gotoAndStop(attack1);
}
if (((this._currentframe == crouch) && (line_shoot == 0)) && (_root.viol_en > 15)) {
this.gotoAndStop(crouchattack1);
line_shoot = 100;
}
}
if (key_s) {
if (this._currentframe == block) {
this.gotoAndStop(blocktocrouchblock);
}
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (((this.combo_anim._currentframe == 20) || (this.combo_anim._currentframe == 27)) || (this.combo_anim._currentframe == 47)) {
if (key_r) {
} else {
this.gotoAndStop(1);
}
}
if (key_w) {
if (this._currentframe == crouchblock) {
this.gotoAndStop(crouchblocktoblock);
}
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.81);
} else {
this._x = this._x - (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.81);
} else {
this._x = this._x + (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
}
Instance of Symbol 2014 MovieClip "violet" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
ai_attack_time = 10;
ai_attack_delay = 10;
attack_dist = 330;
key_w = false;
key_a = false;
key_s = false;
key_d = false;
key_r = false;
key_t = false;
key_y = false;
alpha_cnt = 0;
line_shoot = 0;
y_spd = 0;
player_type = _root.player_type;
dir = 1;
right_tap_time = 0;
left_tap_time = 0;
spd = 7;
this.no_walk = 0;
scale = -this._xscale;
if ((_root.p1_selected == 4) || (_root.p2_selected != 4)) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(151);
}
onClipEvent (enterFrame) {
if ((_root.p1_selected == 4) || (_root.p2_selected != 4)) {
this._name = "dead";
this.removeMovieClip();
}
this.swapDepths(151);
if (_root.fade._currentframe == 30) {
if (_root.p1_dead == 1) {
this.gotoAndStop(victory);
}
if ((_root.viol_hp <= 0) and (this._currentframe <= run)) {
_root.p2_dead = 1;
_root.choice = random(3) + 1;
this.gotoAndStop(dead1);
}
if (this._alpha > 40) {
if (player_type > 0) {
if (player_type == 2) {
_root.golem_player_type = 2;
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
if (_root.config == 1) {
key_r = Key.isDown(73);
key_t = Key.isDown(79);
key_y = Key.isDown(80);
}
if (_root.config == 2) {
key_r = Key.isDown(103);
key_t = Key.isDown(104);
key_y = Key.isDown(105);
}
if (_root.config == 3) {
key_r = Key.isDown(76);
key_t = Key.isDown(186);
key_y = Key.isDown(222);
}
}
if ((player_type == 3) && (_root.fade._currentframe == 30)) {
_root.golem_player_type = 3;
if (_root.p1_selected == 1) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.barbus._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.barbus._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.barbus._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 2) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.sora._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.sora._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.sora._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 3) {
if (this._currentframe <= run) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.amano._x + attack_dist)) {
if (this._currentframe <= run) {
this.gotoAndStop(run);
}
ai_attack_delay = 1;
key_a = true;
} else {
key_a = false;
}
}
if (ai_attack_time > 0) {
ai_attack_time--;
} else {
key_r = false;
key_t = false;
key_y = false;
key_s = false;
ai_attack = 0;
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if ((ai_attack_delay == 0) && (((this._currentframe <= run) || (this._currentframe == crouch)) || (this._currentframe == block))) {
ai_attack = random(5) + 1;
}
if (_root.viol_en < 20) {
ai_attack = 1;
}
if (ai_attack == 1) {
if (ai_attack_delay == 0) {
ai_attack_delay = 45;
ai_attack_time = 40;
}
key_s = false;
key_r = true;
} else {
key_r = false;
}
if (ai_attack == 2) {
if (ai_attack_delay == 0) {
ai_attack_delay = 45;
ai_attack_time = 40;
}
key_s = false;
key_t = true;
} else {
key_t = false;
}
if (ai_attack == 3) {
if (ai_attack_delay == 0) {
ai_attack_delay = 45;
ai_attack_time = 40;
}
key_s = false;
key_y = true;
} else {
key_y = false;
}
if (ai_attack == 4) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 45;
ai_attack_time = 40;
}
key_s = true;
key_r = true;
} else {
key_s = false;
key_r = false;
}
if (ai_attack == 5) {
if ((ai_attack_delay == 0) && (key_s == false)) {
ai_attack_delay = 10;
ai_attack_time = 5;
}
key_s = true;
key_t = true;
} else {
key_s = false;
key_t = false;
}
right_tap_time = 4;
left_tap_time = 4;
}
stand = 1;
walk = 9;
run = 17;
jump = 25;
attackair = 32;
run_attack = 41;
attack1 = 43;
attack2 = 51;
crouchattack1 = 59;
crouchattack2 = 73;
crouching = 87;
crouch = 101;
rising = 111;
rolling = 120;
blocking = 127;
block = 140;
unblocking = 135;
blockhit = 150;
blockwalk = 160;
blockwalkback = 170;
crouchblocking = 209;
uncrouchblocking = 220;
crouchblock = 227;
crouchblockhit = 246;
crouchhit = 278;
crouchknockback = 288;
blocktocrouchblock = 185;
crouchblocktoblock = 253;
hit = 303;
knockback = 307;
impact = 317;
dead1 = 324;
dead2 = 330;
dead3 = 336;
victory = 341;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if (this.hitTest(_root.lvl.amano) || (this.hitTest(_root.lvl.barbus.area))) {
if (this._currentframe == crouchblock) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchblockhit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(crouchknockback);
}
}
if (this._currentframe == crouch) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(crouchhit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (this._currentframe <= run) {
if ((((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) {
this.gotoAndStop(hit);
}
if (((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(impact);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if (((_root.lvl.amano._currentframe == _root.lvl.amano.attack1) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(blockhit);
}
if ((((((((_root.lvl.amano._currentframe == _root.lvl.amano.attackair) || (_root.lvl.amano._currentframe == _root.lvl.amano.run_attack)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.run_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(knockback);
}
}
}
}
if ((((this._currentframe == hit) || (this._currentframe == blockhit)) || (this._currentframe == crouchhit)) || (this._currentframe == crouchblockhit)) {
alpha_cnt = 30;
}
if (alpha_cnt > 0) {
this._alpha = 50;
alpha_cnt = alpha_cnt - 2;
} else {
this._alpha = 100;
}
if (((this.imp._currentframe < 15) || (this._currentframe == knockback)) || (this._currentframe == crouchknockback)) {
alpha_cnt = 80;
if (dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (real_x > 600) {
_root.nogo._x = _root.nogo._x - (spd * 2);
_root.lvl._x = _root.lvl._x - (spd * 2);
}
if (real_x < 100) {
_root.nogo._x = _root.nogo._x + (spd * 2);
_root.lvl._x = _root.lvl._x + (spd * 2);
}
if (real_x > 650) {
if (this._currentframe == walk) {
this._x = this._x - (spd * 0.8);
} else {
this._x = this._x - (spd * 1.6);
}
}
if (real_x < 50) {
if (this._currentframe == walk) {
this._x = this._x + (spd * 0.8);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (key_a && (key_d)) {
right_tap_time = 0;
left_tap_time = 0;
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
if (this._currentframe <= run) {
this.gotoAndStop(stand);
}
}
if (this._currentframe == run) {
if (key_a && ((!dir) == 1)) {
this.gotoAndStop(stand);
}
if (key_d && (dir == 1)) {
this.gotoAndStop(stand);
}
}
if (right_tap_time > 0) {
right_tap_time--;
}
if (left_tap_time > 0) {
left_tap_time--;
}
if (this._currentframe <= run) {
if ((right_tap_time < 5) && (right_tap_time > 0)) {
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
dir = 0;
right_tap_time = 4;
this._xscale = scale;
this.gotoAndStop(run);
this._x = this._x + (spd * 1.6);
}
}
if ((left_tap_time > 0) && (left_tap_time < 5)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
dir = 1;
left_tap_time = 4;
this._xscale = -scale;
this.gotoAndStop(run);
this._x = this._x - (spd * 1.6);
}
}
}
if ((!key_a) && (!key_d)) {
if ((this._currentframe == walk) || (this._currentframe == run)) {
this.gotoAndStop(stand);
}
}
if (this._currentframe < (jump + 1)) {
if (key_a) {
dir = 1;
}
if (key_d) {
dir = 0;
}
}
if (this._currentframe < (walk + 1)) {
if (((!key_d) && (key_a)) && (this.no_walk == 0)) {
left_tap_time = 6;
this._xscale = -scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x - (spd * 0.8);
}
if (((!key_a) && (key_d)) && (this.no_walk == 0)) {
right_tap_time = 6;
this._xscale = scale;
if (this._currentframe < walk) {
this.gotoAndStop(walk);
}
this._x = this._x + (spd * 0.8);
}
}
if (this._currentframe == jump) {
left_tap_time = 5;
right_tap_time = 5;
}
if (this.shoot._currentframe == 5) {
if (dir == 1) {
_root.set_x = this._x - 50;
} else {
_root.set_x = this._x + 75;
}
_root.fireball_dir = dir;
}
if (this.shoot2._currentframe == 5) {
if (dir == 1) {
_root.wall_set_x = this._x - 50;
} else {
_root.wall_set_x = this._x + 75;
}
_root.firewall_dir = dir;
}
if (this.shoot3._currentframe == 5) {
if (dir == 1) {
_root.set_x = this._x - 50;
_root.set_rotation = 145;
} else {
_root.set_rotation = 45;
_root.set_x = this._x + 75;
}
_root.fireball_dir = dir;
}
if (this._currentframe == jump) {
if (key_a) {
this._x = this._x - (spd * 1.6);
}
if (key_d) {
this._x = this._x + (spd * 1.6);
}
}
if (((this._currentframe == block) || (this._currentframe == blockwalk)) || (this._currentframe == blockwalkback)) {
if ((key_y && (key_d)) && (!key_a)) {
if (dir == 0) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x + (spd / 2);
}
if (((!key_d) && (!key_a)) || (!key_y)) {
if ((this._currentframe == blockwalk) || (this._currentframe == blockwalkback)) {
this.gotoAndStop(block);
}
}
if ((key_y && (key_a)) && (!key_d)) {
if (dir == 1) {
this.gotoAndStop(blockwalk);
} else {
this.gotoAndStop(blockwalkback);
}
this._x = this._x - (spd / 2);
}
}
if (this._currentframe == rolling) {
if (dir == 1) {
this._x = this._x - (spd * 1.6);
} else {
this._x = this._x + (spd * 1.6);
}
}
if (wind_time > 0) {
wind_time--;
} else {
if (this._currentframe == attack2) {
this.gotoAndStop(stand);
}
if (this._currentframe == crouchattack2) {
this.gotoAndStop(crouch);
}
}
if ((this._currentframe == jump) && (key_r)) {
this.gotoAndStop(attackair);
}
if ((this.run_attack_anim._currentframe > 4) && (this.run_attack_anim._currentframe < 13)) {
if (dir == 1) {
this._x = this._x - (spd * 5);
} else {
this._x = this._x + (spd * 5);
}
}
if (key_t) {
if ((this._currentframe < walk) && (_root.viol_en > 60)) {
wind_time = 50;
_root.sfx.gotoAndStop(2);
this.gotoAndStop(attack2);
}
if ((this._currentframe == crouch) && (_root.viol_en > 25)) {
_root.sfx.gotoAndStop(2);
wind_time = 50;
this.gotoAndStop(crouchattack2);
}
}
if (line_shoot > 0) {
line_shoot--;
}
if (key_r) {
if ((this._currentframe < run) && (_root.viol_en > 2)) {
this.gotoAndStop(attack1);
}
if (((this._currentframe == crouch) && (line_shoot == 0)) && (_root.viol_en > 15)) {
this.gotoAndStop(crouchattack1);
line_shoot = 100;
}
}
if (key_s) {
if (this._currentframe == block) {
this.gotoAndStop(blocktocrouchblock);
}
if (this._currentframe <= walk) {
this.gotoAndStop(crouching);
}
if (this._currentframe == run) {
this.gotoAndStop(rolling);
}
if (key_a && (dir == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
if (key_d && ((!dir) == 1)) {
if (this._currentframe == crouch) {
this.gotoAndStop(rolling);
}
}
} else if (this._currentframe == crouch) {
this.gotoAndStop(rising);
}
if (key_y) {
if (this._currentframe == crouch) {
this.gotoAndStop(crouchblocking);
}
if (this._currentframe <= walk) {
this.gotoAndStop(blocking);
}
} else {
if (this._currentframe == crouchblock) {
this.gotoAndStop(uncrouchblocking);
}
if (this._currentframe == block) {
this.gotoAndStop(unblocking);
}
}
if (((this.combo_anim._currentframe == 20) || (this.combo_anim._currentframe == 27)) || (this.combo_anim._currentframe == 47)) {
if (key_r) {
} else {
this.gotoAndStop(1);
}
}
if (key_w) {
if (this._currentframe == crouchblock) {
this.gotoAndStop(crouchblocktoblock);
}
if ((this._currentframe <= run) && (jumping == 0)) {
jumping = 1;
y_spd = 25;
this.gotoAndStop(jump);
}
}
this._y = this._y - this.y_spd;
i = 1;
while (i < 10) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - i, true)) {
this._y--;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (this.spd * 0.81);
} else {
this._x = this._x - (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (this.spd * 0.81);
} else {
this._x = this._x + (this.spd * 1.61);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
if (this.y_spd < 0) {
this._y = this._y + this.y_spd;
this.jumping = 0;
this.y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
this.y_spd = this.y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
this.y_spd = -10;
}
}
}
}
}
Instance of Symbol 2025 MovieClip "arro" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
arrow_type = _root.arrow_type;
this._x = _root.set_x;
this._y = _root.set_y;
if (_root.arrow_dir == 1) {
if (_root.arrow_type == 3) {
this._rotation = (random(140) - 70) + 180;
} else {
this._rotation = 180;
}
dir = 1;
} else {
if (_root.arrow_type == 3) {
this._rotation = random(140) - 70;
} else {
this._rotation = 0;
}
dir = 2;
}
spd = 30;
}
onClipEvent (enterFrame) {
_root.lvl.arro.y_spd = 0;
_root.lvl.arro.x_spd = 0;
_root.lvl.arro._x = -200;
_root.lvl.arro._y = -200;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._currentframe == 1) {
if (((_root.lvl.golem._alpha == 100) && (_root.lvl.golem.hitTest(real_x, real_y, true))) && (_root.lvl.golem._currentframe <= _root.lvl.golem.attack)) {
_root.lvl.golem.gotoAndStop(_root.lvl.golem.hit);
}
if ((_root.lvl.amano.hitTest(real_x, real_y, true) || (_root.lvl.barbus.hitTest(real_x, real_y, true))) || (_root.lvl.violet.hitTest(real_x, real_y, true))) {
if (((_root.lvl.amano._alpha == 100) && (_root.lvl.barbus._alpha == 100)) && (_root.lvl.violet._alpha == 100)) {
if ((arrow_type == 1) || (arrow_type == 2)) {
if (((((_root.lvl.amano._currentframe <= _root.lvl.amano.run) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.hit);
}
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
} else if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
if (_root.lvl.violet._currentframe <= _root.lvl.violet.run) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.hit);
}
if (((_root.lvl.violet._currentframe == _root.lvl.violet.block) || (_root.lvl.violet._currentframe == _root.lvl.violet.blockwalk)) || (_root.lvl.violet._currentframe == _root.lvl.violet.blockwalkback)) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.blockhit);
}
if (_root.lvl.violet._currentframe == _root.lvl.violet.crouch) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.crouchhit);
} else if (_root.lvl.violet._currentframe == _root.lvl.violet.crouchblock) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.crouchblockhit);
}
if (_root.lvl.barbus._currentframe <= _root.lvl.barbus.run) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.hit);
} else if (_root.lvl.barbus._currentframe == _root.lvl.barbus.block) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.blockhit);
}
}
if (arrow_type == 3) {
if (_root.lvl.golem._currentframe <= _root.lvl.golem.attack) {
_root.lvl.golem.gotoAndStop(_root.lvl.golem.knockback);
}
if (((_root.lvl.amano._alpha == 100) && (_root.lvl.barbus._alpha == 100)) && (_root.lvl.violet._alpha == 100)) {
if (((((_root.lvl.amano._currentframe <= _root.lvl.amano.run) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.impact);
}
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.knockback);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.impact);
} else if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchknockback);
}
if (_root.lvl.violet._currentframe <= _root.lvl.violet.run) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.impact);
}
if (((_root.lvl.violet._currentframe == _root.lvl.violet.block) || (_root.lvl.violet._currentframe == _root.lvl.violet.blockwalk)) || (_root.lvl.violet._currentframe == _root.lvl.violet.blockwalkback)) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.knockback);
}
if (_root.lvl.violet._currentframe == _root.lvl.violet.crouch) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.impactk);
} else if (_root.lvl.violet._currentframe == _root.lvl.violet.crouchblock) {
_root.lvl.violet.gotoAndStop(_root.lvl.violet.crouchknockback);
}
if (_root.lvl.barbus._currentframe <= _root.lvl.barbus.run) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.hit);
} else if (_root.lvl.barbus._currentframe == _root.lvl.barbus.block) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.blockhit);
}
}
}
}
}
}
if ((((_root.nogo.hitTest(real_x, real_y, true) || (_root.lvl.amano.hitTest(real_x, real_y, true))) || (_root.lvl.golem.hitTest(real_x, real_y, true))) || (_root.lvl.barbus.hitTest(real_x, real_y, true))) || (_root.lvl.violet.hitTest(real_x, real_y, true))) {
if (arrow_type == 1) {
this._alpha = this._alpha - 4;
} else {
this.play();
}
}
if (((((!_root.nogo.hitTest(real_x, real_y, true)) && (!_root.lvl.amano.hitTest(real_x, real_y, true))) && (!_root.lvl.golem.hitTest(real_x, real_y, true))) && (!_root.lvl.barbus.hitTest(real_x, real_y, true))) && (!_root.lvl.violet.hitTest(real_x, real_y, true))) {
if (dir == 2) {
this._rotation++;
} else {
this._rotation--;
}
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * (_rotation + 90))));
_x = (_x - (spd * Math.sin((Math.PI/180) * (_rotation + 90))));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * (_rotation + 90))));
_x = (_x + (spd * Math.sin((Math.PI/180) * (_rotation + 90))));
}
}
if (((this._alpha < 5) || (this._currentframe == 11)) || (this.multi._currentframe == 12)) {
this.removeMovieClip();
}
}
Instance of Symbol 2042 MovieClip "fireball" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
fireball_type = _root.fireball_type;
this._x = _root.set_x;
this._y = _root.set_y;
this._rotation = _root.set_rotation;
y_spd = _root.set_yspd * 4;
if (_root.fireball_dir == 1) {
dir = 1;
scale = this._xscale;
x_spd = -30;
} else {
dir = 2;
scale = -this._xscale;
x_spd = 30;
}
}
onClipEvent (enterFrame) {
if ((_root.fireball_dir == 1) && (_name == fireball)) {
this._xscale = scale;
} else {
this._xscale = -scale;
}
if (fireball_type == 3) {
this.gotoAndStop(12);
}
_root.lvl.fireball.y_spd = 0;
_root.lvl.fireball.x_spd = 0;
_root.lvl.fireball._x = -200;
_root.lvl.fireball._y = -200;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if (this._currentframe == 1) {
if ((_root.lvl.amano.hitTest(real_x, real_y, true) || (_root.lvl.barbus.hitTest(real_x, real_y, true))) || (_root.lvl.sora.hitTest(real_x, real_y, true))) {
this.gotoAndStop(2);
if (((_root.lvl.amano._alpha == 100) && (_root.lvl.barbus._alpha == 100)) && (_root.lvl.sora._alpha == 100)) {
if (((((_root.lvl.amano._currentframe <= _root.lvl.amano.run) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.hit);
} else if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
if (_root.lvl.sora._currentframe <= _root.lvl.sora.run) {
_root.lvl.sora.gotoAndStop(_root.lvl.sora.hit);
} else if (_root.lvl.sora._currentframe == _root.lvl.sora.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
}
if (_root.lvl.barbus._currentframe <= _root.lvl.barbus.run) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.hit);
} else if (_root.lvl.barbus._currentframe == _root.lvl.barbus.block) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.blockhit);
}
}
}
}
if (_root.nogo.hitTest(real_x, real_y, true)) {
this.gotoAndStop(2);
}
if ((((!_root.nogo.hitTest(real_x, real_y, true)) && (!_root.lvl.amano.hitTest(real_x, real_y, true))) && (!_root.lvl.barbus.hitTest(real_x, real_y, true))) && (!_root.lvl.sora.hitTest(real_x, real_y, true))) {
this._x = this._x + x_spd;
this._y = this._y + y_spd;
}
if (this.boom._currentframe == 11) {
this.removeMovieClip();
}
}
Instance of Symbol 2088 MovieClip "golem" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
ai_attack_delay = 10;
attack_dist = 100;
scale = this._xscale;
_root.golem_hp = 50;
_root.golem_spd = 7;
_root.golem_y_spd = 0;
_root.lvl.golem.summon.stop();
}
onClipEvent (enterFrame) {
this.swapDepths(190);
if ((this._currentframe > 1) and (this._currentframe < 54)) {
if (_root.golem_hp <= 0) {
this.gotoAndStop(dead);
}
if (this.death._currentframe == 28) {
this._x = -500;
this._y = -500;
}
if (_root.golem_player_type < 3) {
if (_root.golem_player_type == 1) {
key_w = Key.isDown(87);
key_a = Key.isDown(65);
key_s = Key.isDown(83);
key_d = Key.isDown(68);
if (_root.config == 1) {
key_r = Key.isDown(82);
key_t = Key.isDown(84);
key_y = Key.isDown(89);
}
if (_root.config == 2) {
key_r = Key.isDown(85);
key_t = Key.isDown(73);
key_y = Key.isDown(81);
}
if (_root.config == 3) {
key_r = Key.isDown(70);
key_t = Key.isDown(71);
key_y = Key.isDown(72);
}
}
if (_root.golem_player_type == 2) {
key_w = Key.isDown(38);
key_a = Key.isDown(37);
key_s = Key.isDown(40);
key_d = Key.isDown(39);
if (_root.config == 1) {
key_r = Key.isDown(73);
key_t = Key.isDown(79);
key_y = Key.isDown(80);
}
if (_root.config == 2) {
key_r = Key.isDown(103);
key_t = Key.isDown(104);
key_y = Key.isDown(105);
}
if (_root.config == 3) {
key_r = Key.isDown(76);
key_t = Key.isDown(186);
key_y = Key.isDown(222);
}
}
} else {
if (_root.p1_selected == 1) {
if (this._currentframe <= walk) {
if (this._x < _root.lvl.barbus._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.barbus._x - attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.barbus._x + attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 2) {
if (this._currentframe <= walk) {
if (this._x < _root.lvl.sora._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.sora._x - attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.sora._x + attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_a = true;
} else {
key_a = false;
}
}
if (_root.p1_selected == 3) {
if (this._currentframe <= walk) {
if (this._x < _root.lvl.amano._x) {
dir = 0;
this._xscale = scale;
} else {
dir = 1;
this._xscale = -scale;
}
}
if (this._x < (_root.lvl.amano._x - attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_d = true;
} else {
key_d = false;
}
if (this._x > (_root.lvl.amano._x + attack_dist)) {
if (this._currentframe <= walk) {
this.gotoAndStop(walk);
}
key_t = false;
key_a = true;
} else {
key_a = false;
}
}
if (ai_attack_delay > 0) {
ai_attack_delay--;
}
if (((ai_attack_delay == 0) && (this._currentframe <= walk)) && ((this.hitTest(_root.lvl.barbus) || (this.hitTest(_root.lvl.sora))) || (this.hitTest(_root.lvl.amano)))) {
ai_attack_delay = 30;
key_t = true;
} else {
key_t = false;
}
}
stand = 10;
walk = 18;
attack = 25;
hit = 34;
knockback = 38;
impact = 47;
dead = 54;
this.real_x = this._x + _root.lvl._x;
this.real_y = this._y + _root.lvl._y;
if (this._alpha == 100) {
if ((_root.lvl.amano.hitTest(this.real_x, this.real_y, true) || (_root.lvl.barbus.hitTest(this.real_x, this.real_y, true))) || (_root.lvl.sora.hitTest(this.real_x, this.real_y, true))) {
if (this._currentframe <= attack) {
if ((((_root.lvl.barbus._currentframe == _root.lvl.barbus.blocking) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack1)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack1)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) {
this.gotoAndStop(hit);
}
if ((((((_root.lvl.amano._currentframe == _root.lvl.amano.walk_attack) || (_root.lvl.amano._currentframe == _root.lvl.amano.attack2)) || (_root.lvl.amano._currentframe == _root.lvl.amano.crouchattack2)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.walk_attack)) || (_root.lvl.barbus._currentframe == _root.lvl.barbus.attack1)) || ((_root.lvl.barbus.big._currentframe > 20) && (_root.lvl.barbus.big._currentframe < 30))) {
this.gotoAndStop(knockback);
}
}
}
}
if (this._currentframe == hit) {
this.alpha_cnt = 30;
}
if (this.alpha_cnt > 0) {
this._alpha = 50;
this.alpha_cnt = this.alpha_cnt - 4;
} else {
this._alpha = 100;
}
if (this._currentframe == knockback) {
this.alpha_cnt = 40;
if (this.dir == 1) {
this._x = this._x + 12;
} else {
this._x = this._x - 12;
}
}
if (this.real_x > 600) {
_root.nogo._x = _root.nogo._x - (_root.golem_spd * 2);
_root.lvl._x = _root.lvl._x - (_root.golem_spd * 2);
}
if (this.real_x < 100) {
_root.nogo._x = _root.nogo._x + (_root.golem_spd * 2);
_root.lvl._x = _root.lvl._x + (_root.golem_spd * 2);
}
if (this.real_x > 650) {
this._x = this._x - (_root.golem_spd * 0.8);
}
if (this.real_x < 50) {
this._x = this._x + (_root.golem_spd * 0.8);
}
if (this._currentframe <= walk) {
if (key_a) {
this.dir = 1;
this._xscale = -scale;
this.gotoAndStop(walk);
this._x = this._x - (_root.golem_spd * 0.8);
}
if (key_d) {
this.dir = 0;
this._xscale = scale;
this.gotoAndStop(walk);
this._x = this._x + (_root.golem_spd * 0.8);
}
}
if (this._currentframe == walk) {
if ((!key_d) and (!key_a)) {
this.gotoAndStop(stand);
}
if (key_a and key_d) {
this.gotoAndStop(stand);
}
}
if (key_t) {
if (this._currentframe <= walk) {
this.gotoAndStop(attack);
}
}
this._y = this._y - _root.golem_y_spd;
i = 1;
while (i < 40) {
if (_root.nogo.hitTest((this.real_x - 40) + i, this.real_y - 80, true)) {
this._x++;
}
if (_root.nogo.hitTest((this.real_x + 40) - i, this.real_y - 80, true)) {
this._x--;
}
if (_root.nogo.hitTest(this.real_x, (this.real_y - 10) - i, true)) {
this._y = this._y - 1;
}
if (_root.nogo.hitTest(this.real_x, (this.real_y - 8) - i, true)) {
this._y = this._y - 1;
}
if (_root.nogo.hitTest(this.real_x, (this.real_y - 6) - i, true)) {
this._y = this._y - 1;
}
if (_root.nogo.hitTest(this.real_x, (this.real_y - 4) - i, true)) {
this._y = this._y - 1;
}
i++;
}
if (_root.nogo.hitTest(this.real_x + (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x - (_root.golem_spd * 0.8);
} else if (this._currentframe == walk) {
this._x = this._x - (_root.golem_spd * 1.6);
}
}
if (_root.nogo.hitTest(this.real_x - (this._width / 2), this.real_y - 80, true)) {
if (this._currentframe == walk) {
this._x = this._x + (_root.golem_spd * 0.8);
} else if (this._currentframe == walk) {
this._x = this._x + (_root.golem_spd * 1.6);
}
}
if (_root.nogo.hitTest(this.real_x, this.real_y + 30, true)) {
this.jumping = 0;
if (_root.golem_y_spd < 0) {
this._y = this._y - 1;
_root.golem_y_spd = 0;
}
} else {
if (this._currentframe == crouching) {
this.gotoAndStop(stand);
}
this.jumping = 1;
_root.golem_y_spd = _root.golem_y_spd - 2;
}
if (_root.nogo.hitTest(this.real_x, this.real_y - (this._height / 2), true)) {
_root.golem_y_spd = -10;
}
}
}
Instance of Symbol 2093 MovieClip "firewall" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
this._x = _root.wall_set_x;
this._y = _root.wall_set_y;
dir = _root.firewall_dir;
if ((!_name) == firewall) {
this._xscale = _root.wall_scale;
}
}
onClipEvent (enterFrame) {
_root.lvl.firewall.gotoAndStop(1);
_root.lvl.firewall._y = -100;
real_x = this._x + _root.lvl._x;
real_y = this._y + _root.lvl._y;
if ((_root.lvl.amano.hitTest(real_x, real_y - 50, true) || (_root.lvl.barbus.hitTest(real_x, real_y - 50, true))) || (_root.lvl.sora.hitTest(real_x, real_y - 50, true))) {
if (((_root.lvl.amano._alpha == 100) && (_root.lvl.barbus._alpha == 100)) && (_root.lvl.sora._alpha == 100)) {
if (_root.lvl.amano._currentframe <= _root.lvl.amano.run) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.hit);
}
if (((_root.lvl.amano._currentframe == _root.lvl.amano.block) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalk)) || (_root.lvl.amano._currentframe == _root.lvl.amano.blockwalkback)) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.blockhit);
}
if (_root.lvl.amano._currentframe == _root.lvl.amano.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
} else if (_root.lvl.amano._currentframe == _root.lvl.amano.crouchblock) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchblockhit);
}
if (_root.lvl.sora._currentframe <= _root.lvl.sora.run) {
_root.lvl.sora.gotoAndStop(_root.lvl.sora.hit);
} else if (_root.lvl.sora._currentframe == _root.lvl.sora.crouch) {
_root.lvl.amano.gotoAndStop(_root.lvl.amano.crouchhit);
}
if (_root.lvl.barbus._currentframe <= _root.lvl.barbus.run) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.hit);
} else if (_root.lvl.barbus._currentframe == _root.lvl.barbus.block) {
_root.lvl.barbus.gotoAndStop(_root.lvl.barbus.blockhit);
}
}
}
if (!_root.nogo.hitTest(real_x, real_y, true)) {
this._y = this._y + 5;
}
if (_root.nogo.hitTest(real_x, real_y - 6, true)) {
this._y = this._y - 5;
}
if (((this._currentframe == 74) or _root.nogo.hitTest(real_x - 10, real_y - 50, true)) or _root.nogo.hitTest(real_x + 10, real_y - 50, true)) {
this.removeMovieClip();
}
if (this._currentframe == 5) {
_root.wall_set_y = this._y;
if (dir == 1) {
_root.wall_set_x = this._x - 40;
} else {
_root.wall_set_x = this._x + 40;
}
_root.firewall_dir = dir;
duplicateMovieClip (_root.lvl.firewall, _root.lvl.firewall + _root.firewall_cnt, _root.firewall_cnt);
_root.firewall_cnt++;
}
}
Instance of Symbol 965 MovieClip "blood" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.b_type);
this._y = _root.blood_y;
this._x = _root.blood_x;
this._width = random(5) + 1;
y_spd = random(20) - 10;
x_spd = random(20) - 10;
}
onClipEvent (enterFrame) {
this._height = this._width;
if (_name == "blood") {
this._x = -500;
this._y = -500;
} else {
this.real_x = this._x + _root.lvl._x;
this.real_y = this._y + _root.lvl._y;
if (_root.nogo.hitTest(this.real_x, this.real_y, true)) {
this.removeMovieClip();
} else {
this._x = this._x + x_spd;
this._y = this._y - y_spd;
y_spd--;
x_spd = x_spd * 0.96;
}
}
}
Instance of Symbol 2128 MovieClip in Symbol 2133 MovieClip Frame 2
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 2185 MovieClip in Symbol 2186 MovieClip Frame 47
onClipEvent (enterFrame) {
this.gotoAndStop(_root.victor);
}
Symbol 2186 MovieClip Frame 106
stop();
_root.gotoAndStop(6);