Frame 1
function save_initialize() {
_root.saves.data.data_flg = 5;
_root.saves.data.mission_able = [[9, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [9, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.clear_flg = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
_root.saves.data.c_point = [10000, 10000];
_root.saves.data.a_max = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.a_defense = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.a_move = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.b_max = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.b_pw = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.b_recv = [[8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.shopwep = [[8, 1, 0, 0, 0, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 1, 0, 0, 0, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.getwep = [[8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.shoparmor = [[8, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.getarmor = [[8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.eqwep = [[9, 1, 0], [9, 1, 0]];
_root.saves.data.eqarmor = [1, 1];
_root.saves.data.total_destroy_num = [0, 0];
_root.saves.data.jump_mode = [1, 1];
_root.saves.flush();
}
function save_initialize1104() {
_root.saves.data.data_flg = 4;
i = 41;
while (50 >= i) {
_root.saves.data.getwep[0][i] = 0;
_root.saves.data.getwep[1][i] = 0;
i++;
}
_root.saves.data.getwep[0][51] = 9;
_root.saves.data.getwep[1][51] = 9;
_root.saves.flush();
}
function save_initialize0212() {
_root.saves.data.jump_mode = [0, 0];
i = 30;
while (50 >= i) {
_root.saves.data.clear_flg[0][i] = 0;
_root.saves.data.clear_flg[1][i] = 0;
i++;
}
_root.saves.data.mission_able = [[9, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [9, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.clear_flg = [[9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9]];
_root.saves.data.data_flg = 5;
_root.saves.flush();
}
function save_write1() {
_root.saves.data.data_flg = 5;
_root.saves.data.c_point[0] = _root.c_point;
i = 0;
while (22 >= i) {
_root.saves.data.a_max[0][i] = _root.a_max[i];
_root.saves.data.a_defense[0][i] = _root.a_defense[i];
_root.saves.data.a_move[0][i] = _root.a_move[i];
_root.saves.data.b_max[0][i] = _root.b_max[i];
_root.saves.data.b_pw[0][i] = _root.b_pw[i];
_root.saves.data.b_recv[0][i] = _root.b_recv[i];
_root.saves.data.getarmor[0][i] = _root.getarmor_now[i];
_root.saves.data.shoparmor[0][i] = _root.shop_armor[i];
i++;
}
i = 0;
while (52 >= i) {
_root.saves.data.getwep[0][i] = _root.getwep_now[i];
_root.saves.data.shopwep[0][i] = _root.shop_wep[i];
_root.saves.data.clear_flg[0][i] = _root.clear_flg_main[i];
_root.saves.data.mission_able[0][i] = _root.mission_able[i];
i++;
}
i = 0;
while (2 >= i) {
_root.saves.data.eqwep[0][i] = _root.equip_wep[i];
i++;
}
_root.saves.data.total_destroy_num[0] = _root.total_destroy;
_root.saves.data.eqarmor[0] = _root.equip_armor;
_root.saves.data.jump_mode[0] = _root.jump_mode;
_root.saves.flush();
}
function save_read1() {
_root.saves.data.data_flg = 5;
_root.c_point = _root.saves.data.c_point[0];
i = 0;
while (22 >= i) {
_root.a_max[i] = _root.saves.data.a_max[0][i];
_root.a_defense[i] = _root.saves.data.a_defense[0][i];
_root.a_move[i] = _root.saves.data.a_move[0][i];
_root.b_max[i] = _root.saves.data.b_max[0][i];
_root.b_pw[i] = _root.saves.data.b_pw[0][i];
_root.b_recv[i] = _root.saves.data.b_recv[0][i];
_root.getarmor_now[i] = _root.saves.data.getarmor[0][i];
_root.shop_armor[i] = _root.saves.data.shoparmor[0][i];
i++;
}
i = 0;
while (52 >= i) {
_root.getwep_now[i] = _root.saves.data.getwep[0][i];
_root.shop_wep[i] = _root.saves.data.shopwep[0][i];
_root.clear_flg_main[i] = _root.saves.data.clear_flg[0][i];
_root.mission_able[i] = _root.saves.data.mission_able[0][i];
i++;
}
i = 0;
while (2 >= i) {
_root.equip_wep[i] = _root.saves.data.eqwep[0][i];
i++;
}
_root.total_destroy = _root.saves.data.total_destroy_num[0];
_root.equip_armor = _root.saves.data.eqarmor[0];
_root.jump_mode = _root.saves.data.jump_mode[0];
_root.saves.flush();
}
function save_write2() {
_root.saves.data.data_flg = 5;
_root.saves.data.c_point[1] = _root.c_point;
i = 0;
while (22 >= i) {
_root.saves.data.a_max[1][i] = _root.a_max[i];
_root.saves.data.a_defense[1][i] = _root.a_defense[i];
_root.saves.data.a_move[1][i] = _root.a_move[i];
_root.saves.data.b_max[1][i] = _root.b_max[i];
_root.saves.data.b_pw[1][i] = _root.b_pw[i];
_root.saves.data.b_recv[1][i] = _root.b_recv[i];
_root.saves.data.getarmor[1][i] = _root.getarmor_now[i];
_root.saves.data.shoparmor[1][i] = _root.shop_armor[i];
i++;
}
i = 0;
while (52 >= i) {
_root.saves.data.getwep[1][i] = _root.getwep_now[i];
_root.saves.data.shopwep[1][i] = _root.shop_wep[i];
_root.saves.data.clear_flg[1][i] = _root.clear_flg_main[i];
_root.saves.data.mission_able[1][i] = _root.mission_able[i];
i++;
}
i = 0;
while (2 >= i) {
_root.saves.data.eqwep[1][i] = _root.equip_wep[i];
i++;
}
_root.saves.data.total_destroy_num[1] = _root.total_destroy;
_root.saves.data.eqarmor[1] = _root.equip_armor;
_root.saves.data.jump_mode[1] = _root.jump_mode;
_root.saves.flush();
}
function save_read2() {
_root.saves.data.data_flg = 5;
_root.c_point = _root.saves.data.c_point[1];
i = 0;
while (22 >= i) {
_root.a_max[i] = _root.saves.data.a_max[1][i];
_root.a_defense[i] = _root.saves.data.a_defense[1][i];
_root.a_move[i] = _root.saves.data.a_move[1][i];
_root.b_max[i] = _root.saves.data.b_max[1][i];
_root.b_pw[i] = _root.saves.data.b_pw[1][i];
_root.b_recv[i] = _root.saves.data.b_recv[1][i];
_root.getarmor_now[i] = _root.saves.data.getarmor[1][i];
_root.shop_armor[i] = _root.saves.data.shoparmor[1][i];
i++;
}
i = 0;
while (52 >= i) {
_root.getwep_now[i] = _root.saves.data.getwep[1][i];
_root.shop_wep[i] = _root.saves.data.shopwep[1][i];
_root.clear_flg_main[i] = _root.saves.data.clear_flg[1][i];
_root.mission_able[i] = _root.saves.data.mission_able[1][i];
i++;
}
i = 0;
while (2 >= i) {
_root.equip_wep[i] = _root.saves.data.eqwep[1][i];
i++;
}
_root.total_destroy = _root.saves.data.total_destroy_num[1];
_root.equip_armor = _root.saves.data.eqarmor[1];
_root.jump_mode = _root.saves.data.jump_mode[1];
_root.saves.flush();
}
Stage.showMenu = false;
_root.saves = SharedObject.getLocal("comv_saves");
function player_set() {
_root.p_hp = (_root.a_max_main = _root.p_hp_default[_root.equip_armor] + (_root.p_hp_up[_root.equip_armor] * _root.a_max[_root.equip_armor]));
_root.a_defense_main = _root.a_defense_default[_root.equip_armor] + (_root.a_defense_up[_root.equip_armor] * _root.a_defense[_root.equip_armor]);
_root.a_move_main = _root.p_movmax_default[_root.equip_armor] + (_root.p_movmax_up[_root.equip_armor] * _root.a_move[_root.equip_armor]);
_root.p_bp = (_root.b_max_main = _root.p_bp_default[_root.equip_armor] + (_root.p_bp_up[_root.equip_armor] * _root.b_max[_root.equip_armor]));
_root.b_pw_main = _root.p_pwmax_default[_root.equip_armor] + (_root.p_pwmax_up[_root.equip_armor] * _root.b_pw[_root.equip_armor]);
_root.b_recv_main = _root.b_recv_default[_root.equip_armor] + (_root.b_recv_up[_root.equip_armor] * _root.b_recv[_root.equip_armor]);
}
function player_set2() {
_root.equip_wep[1] = 1;
_root.equip_wep[2] = 5;
_root.p_hp = (_root.a_max_main = _root.p_hp_default[_root.equip_armor] * 1.2);
_root.a_defense_main = _root.a_defense_default[_root.equip_armor] * 1.2;
_root.a_move_main = _root.p_movmax_default[_root.equip_armor] * 2;
_root.p_bp = (_root.b_max_main = _root.p_bp_default[_root.equip_armor] * 2);
_root.b_pw_main = _root.p_pwmax_default[_root.equip_armor] * 2;
_root.b_recv_main = _root.b_recv_default[_root.equip_armor] * 2;
}
function p_initialize() {
_root.p_hp_default = [8, 300, 250, 350, 300, 270, 0, 0, 0, 200, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.a_defense_default = [8, 5, 4, 7, 5, 4, 0, 0, 0, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_movmax_default = [8, 4, 6, 3.5, 4, 5, 0, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_bp_default = [8, 300, 400, 350, 250, 450, 0, 0, 0, 400, 450, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_pwmax_default = [8, 15, 20, 15, 13, 17, 0, 0, 0, 17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.b_recv_default = [8, 2, 3, 2, 2, 3.5, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_hp_up = [8, 20, 15, 30, 20, 25, 0, 0, 0, 20, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.a_defense_up = [8, 1.2, 0.7, 1.5, 0.9, 1.2, 0, 0, 0, 1, 1.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_movmax_up = [8, 0.6, 1, 0.5, 0.6, 0.7, 0, 0, 0, 1.2, 1.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_bp_up = [8, 10, 20, 15, 10, 15, 0, 0, 0, 15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.p_pwmax_up = [8, 0.9, 1.5, 0.8, 0.8, 1.7, 0, 0, 0, 1.5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.b_recv_up = [8, 0.3, 0.7, 0.5, 0.2, 0.4, 0, 0, 0, 0.6, 0.8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.shop_wep = [8, 1, 0, 0, 0, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.ammo_wep = [8, 50, 15, 160, 120, 10, 0, 0, 20, 0, 6, 6, 0, 0, 0, 15, 0, 0, 0, 0, 6, 3, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 1, 13, 0, 0, 0, 1, 1, 0, 0, 0, 100, 1, 0, 0, 0, 0, 9];
_root.wep_reload = [8, 30, 45, 90, 130, 45, 0, 0, 80, 0, 120, 100, 0, 0, 0, 80, 0, 0, 0, 0, 150, 80, 0, 0, 0, 120, 0, 0, 0, 0, 200, 0, 0, 0, 0, 60, 80, 0, 0, 0, 1, 0, 0, 0, 0, 100, 10, 0, 0, 0, 0, 9];
_root.shop_armor = [8, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.snipe_armor = [8, 0, 0, 0, 50, 80, 0, 0, 0, 80, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.cost_armor = [8, 1, 2, 1.5, 1.2, 2.5, 0, 0, 0, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.armor_reload = [0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.p_reload_time = [8, 1, 1, 1, 1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.c_point = 10000;
_root.a_max = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.a_defense = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.a_move = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.b_max = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.b_pw = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.b_recv = [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.a_max_main = 0;
_root.a_defense_main = 0;
_root.a_move_main = 0;
_root.b_max_main = 0;
_root.b_pw_main = 0;
_root.b_recv_main = 0;
_root.p_hp = 0;
_root.p_bp = 0;
_root.p_pw = 0;
_root.p_mov_x = 0;
_root.p_mov_y = 0;
_root.p_pos_x = 100;
_root.p_pos_y = 0;
_root.sight_pos = 0;
_root.dash_defense = 0;
_root.p_dmg_flg = 0;
_root.p_shot_num = 0;
_root.p_efct_num = 0;
_root.hit_mov_x = 0;
_root.hit_mov_y = 0;
_root.p_dmg = 0;
_root.equip_wep = [9, 1, 0];
_root.getwep_now = [8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.equip_armor = 1;
_root.getarmor_now = [8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.total_destroy = 0;
}
function p_initialize2() {
_root.p_mov_x = 0;
_root.p_mov_y = 0;
_root.p_pos_x = 100;
_root.p_pos_y = 0;
_root.sight_pos = 0;
_root.dash_defense = 0;
_root.p_dmg_flg = 0;
_root.p_shot_num = 0;
_root.p_efct_num = 0;
_root.hit_mov_x = 0;
_root.hit_mov_y = 0;
_root.p_dmg = 0;
_root.boss_destroy_flg = 0;
}
function e_initialize() {
_root.e_efct_num = 0;
_root.e_shot_num = 0;
_root.e_msl = 0;
_root.e_num = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
function game_initialize() {
_root.efct_bg_flg = 0;
_root.field_flg = 0;
_root.sky_flg = 0;
_root.area_over = 0;
_root.ex_mission_flg = 0;
_root.ground_left = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_right = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_up = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_down = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.e_hp_max = 0;
_root.e_hp = 0;
_root.get_points = 0;
_root.alert_flg = 0;
_root.time_bonus = 0;
_root.time_now = 0;
_root.score_now = 0;
_root.score = 0;
_root.max_combo = 0;
_root.destroy_num = 0;
_root.t_score = 0;
_root.life_bonus = 0;
_root.combo_cnt = 0;
_root.combo_time = 0;
_root.combo_limit = 120;
_root.key_l = 0;
_root.key_r = 0;
_root.key_u = 0;
_root.key_d = 0;
_root.anime_flg = 0;
_root.jump_flg = 0;
}
_root.ground_left = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_right = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_up = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_down = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_cent_x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.ground_cent_y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.colorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
game_flg = 0;
screen_flg = 0;
_root.efct_switch = 1;
_root.time = 0;
_root.time_limit = 0;
_root.tgt_destroy = 0;
mission_num = 0;
_root.clear_flg_main = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.mission_able = [9, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9];
_root.mission_name = ["m_0", "m_01", "m_02", "m_03", "m_04", "m_05", "m_06", "m_07", "m_08", "m_09", "m_10", "m_11", "m_12", "m_13", "m_14", "m_15", "m_16", "m_17", "m_18", "m_19", "m_20", "m_21", "m_22", "m_23", "m_24", "m_25", "m_26", "m_27", "m_28", "m_29", "m_30", "m_31", "m_32", "m_33", "m_34", "m_35", "m_36", "m_37", "m_38", "m_39", "m_40", "m_41", "m_42", "m_43", "m_44", "m_45", "m_46", "m_47", "m_48", "m_49", "m_50"];
Frame 2
if (_root.saves.data.data_flg == 5) {
} else if (_root.saves.data.data_flg == 4) {
_root.save_initialize0212();
} else if (((_root.saves.data.data_flg == 1) || (_root.saves.data.data_flg == 2)) || (_root.saves.data.data_flg == 3)) {
_root.save_initialize0212();
_root.save_initialize1104();
} else {
_root.save_initialize();
}
_root.datavasion = _root.saves.data.data_flg;
_root.p_initialize();
_root.e_initialize();
_root.game_initialize();
this.gotoAndStop(2);
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_title");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
Instance of Symbol 1103 MovieClip "p_sight" in Frame 2
onClipEvent (mouseDown) {
_root.shot_flg = 1;
}
onClipEvent (mouseUp) {
_root.shot_flg = 0;
}
Frame 3
_quality = "MEDIUM";
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_menu");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.gotoAndStop(3);
Frame 4
_quality = "LOW";
function logo_warning() {
this.attachMovie("logo_warning", "logo_warning2", 1000);
this.logo_warning2._x = 200;
this.logo_warning2._y = 120;
this.logo_warning2._xscale = 100;
this.logo_warning2._yscale = 100;
}
this.gotoAndStop(4);
Symbol 24 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 24 MovieClip Frame 6
this.gotoAndPlay(5);
Symbol 24 MovieClip Frame 45
_root.def_tgt_destroy++;
_parent.removeMovieClip();
Symbol 29 MovieClip [def_car01] Frame 1
function main_script() {
if (0 < this.hp) {
this.stop_flg = 0;
i = 0;
while (i < 10) {
if (this.stop_area.hitTest(_root.root.e_box["enemy" + i])) {
this.stop_flg = 1;
}
i++;
}
if (this.stop_flg == 1) {
if ((this.mov_max / 4) < this.mov_x) {
this.mov_x--;
}
}
if (this.stop_flg == 0) {
if (this.mov_x < this.mov_max) {
this.mov_x++;
}
}
}
this.main.tire1._rotation = this.main.tire1._rotation - this.mov_x;
this.main.tire2._rotation = this.main.tire2._rotation - this.mov_x;
this.main.tire3._rotation = this.main.tire3._rotation - this.mov_x;
this.main.tire4._rotation = this.main.tire4._rotation - this.mov_x;
}
function dmg_script() {
if (this.dmg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg != 0) {
new Color(this).setRGB(16777215);
this.hp = this.hp - this.dmg;
this.dmg = 0;
}
}
function destroy_script() {
if (0 >= this.hp) {
if (0 < this.mov_x) {
this.mov_x--;
}
this.hp = 0;
if (this.main._currentframe < 5) {
_root.display.rader.rader_main["def_point2" + this.num].removeMovieClip();
this.time = 0;
this.main.gotoAndPlay(5);
}
if ((this.main._currentframe == 5) && (this.time < 100)) {
this.time++;
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 100) - random(200), this._y - random(200), 100, 100);
}
} else if ((5 >= this.main._currentframe) && (this.time >= 100)) {
this.main.gotoAndPlay(7);
}
}
}
this.stop_flg = 0;
this.dmg = 0;
function field_hit_x() {
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = (_root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = (_root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = (_root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = (_root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = (_root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = (_root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = (_root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = (_root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = (_root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = (_root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = (_root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = (_root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = (_root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = (_root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = (_root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = (_root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
}
function field_hit_y() {
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 20;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 29 MovieClip [def_car01] Frame 2
this.dmg_script();
this.main_script();
this.destroy_script();
this.field_hit_x();
this.field_hit_y();
this.result();
Symbol 29 MovieClip [def_car01] Frame 3
this.gotoAndPlay(2);
Symbol 63 MovieClip Frame 1
_root.wep_change_able = 1;
this.gotoAndStop(1);
Symbol 63 MovieClip Frame 2
_root.wep_change_able = 0;
Symbol 63 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 150, 100, _parent._rotation + 180, 50, 1, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 150, 100, -_parent._rotation, 50, 1, 6);
}
_root.shot_cnt = 1;
Symbol 63 MovieClip Frame 5
_root.wep_change_able = 1;
Symbol 66 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 66 MovieClip Frame 2
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
if (_root.now_ammo_num == 1) {
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 200, 100, ((_parent._rotation + 180) - 5) + random(10), 80, 15, 15);
} else {
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 200, 100, (_parent._rotation + 180) + random(10), 80, 2, 6);
}
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
if (_root.now_ammo_num == 1) {
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 200, 100, (-_parent._rotation) + random(10), 80, 15, 15);
} else {
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 200, 100, (-_parent._rotation) + random(10), 80, 2, 6);
}
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 66 MovieClip Frame 4
_root.wep_change_able = 1;
Symbol 80 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 80 MovieClip Frame 23
_root.wep_change_able = 0;
Symbol 80 MovieClip Frame 24
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + 9;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, ((_parent._rotation + 180) + 3) - (random(60) / 10), 50, 1, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, ((-_parent._rotation) + 3) - (random(60) / 10), 50, 1, 6);
}
_root.shot_cnt = 1;
Symbol 80 MovieClip Frame 27
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + 9;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, ((_parent._rotation + 180) + 3) - (random(60) / 10), 50, 1, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, ((-_parent._rotation) + 3) - (random(60) / 10), 50, 1, 6);
}
_root.shot_cnt = 1;
Symbol 80 MovieClip Frame 29
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.p_dmg_flg != 1) {
_root.shot_cnt = 1;
this.gotoAndPlay(23);
}
} else {
this.gotoAndPlay(30);
}
Symbol 80 MovieClip Frame 35
_root.wep_change_able = 1;
Symbol 93 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 93 MovieClip Frame 15
_root.wep_change_able = 0;
Symbol 93 MovieClip Frame 24
this.cos = Math.cos((Math.PI/180) * _parent._rotation);
this.sin = Math.sin((Math.PI/180) * _parent._rotation);
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + (10 * this.cos);
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = (_root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2)) - (10 * this.sin);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, _parent._rotation + 180, 50, 3, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = (_root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2)) + (10 * this.sin);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, -_parent._rotation, 50, 3, 6);
}
_root.shot_cnt = 1;
Symbol 93 MovieClip Frame 25
shot_pos_y = _root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55);
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, _parent._rotation + 180, 50, 3, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 300, 100, -_parent._rotation, 50, 3, 6);
}
_root.shot_cnt = 1;
Symbol 93 MovieClip Frame 28
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.p_dmg_flg != 1) {
_root.shot_cnt = 1;
this.gotoAndPlay(23);
}
} else {
this.gotoAndPlay(29);
}
Symbol 93 MovieClip Frame 35
_root.wep_change_able = 1;
Symbol 97 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 97 MovieClip Frame 3
i = 0;
while (4 >= i) {
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_sg(shot_pos_x, shot_pos_y, _parent._rotation + 180, 40 + random(25), 1 + random(3), 5);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_sg(shot_pos_x, shot_pos_y, -_parent._rotation, 40 + random(25), 1 + random(3), 5);
}
i++;
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 97 MovieClip Frame 10
_root.wep_change_able = 1;
Symbol 102 MovieClip Frame 1
this.chage = 1;
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 102 MovieClip Frame 4
if (_root.shot_flg == 1) {
this.chage = this.chage + 1;
}
_root.wep_change_able = 0;
Symbol 102 MovieClip Frame 5
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
i = 0;
while ((this.chage / 2) >= i) {
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 150 + random(this.chage), 100, ((_parent._rotation + 180) + 30) - random(60), 80 + random(this.chage / 5), this.chage / 5, 6);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 150 + random(this.chage), 100, ((-_parent._rotation) + 30) - random(60), 80 + random(this.chage / 5), this.chage / 5, 6);
}
i++;
}
_root.shot_cnt = 1;
Symbol 102 MovieClip Frame 10
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
this.gotoAndPlay(3);
} else {
this.gotoAndPlay(11);
}
_root.wep_change_able = 0;
Symbol 106 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 106 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 500, 100, _parent._rotation + 180, 100, 10, 30);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 500, 100, -_parent._rotation, 100, 10, 30);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 106 MovieClip Frame 15
_root.wep_change_able = 1;
Symbol 112 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 112 MovieClip Frame 2
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + 2;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 600, 200, _parent._rotation + 182, 100, 30, 50);
_root.p_mov_x = _root.p_mov_x + (Math.cos(_parent._rotation * (Math.PI/180)) * 30);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_mg(shot_pos_x, shot_pos_y, 600, 200, (-_parent._rotation) - 2, 100, 30, 50);
_root.p_mov_x = _root.p_mov_x + ((-Math.cos(_parent._rotation * (Math.PI/180))) * 30);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 112 MovieClip Frame 9
_root.wep_change_able = 1;
Symbol 117 MovieClip Frame 1
_root.wep_change_able = 1;
this.gotoAndStop(1);
Symbol 117 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
shot_pos_x = _root.root.p_box.player._x;
_root.root.p_box.p_shot_msl01(shot_pos_x, shot_pos_y, 5, 20);
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 117 MovieClip Frame 9
_root.wep_change_able = 1;
Symbol 120 MovieClip Frame 1
_root.wep_change_able = 1;
this.gotoAndStop(1);
Symbol 120 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_gr(shot_pos_x, shot_pos_y, _parent._rotation + 180, 25, 1);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_gr(shot_pos_x, shot_pos_y, -_parent._rotation, 25, 1);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 120 MovieClip Frame 15
_root.wep_change_able = 1;
Symbol 124 MovieClip Frame 1
_root.wep_change_able = 1;
this.gotoAndStop(1);
Symbol 124 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) + 10;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_pb01(shot_pos_x, shot_pos_y, _parent._rotation + 180, 2);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_pb01(shot_pos_x, shot_pos_y, -_parent._rotation, 2);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 124 MovieClip Frame 10
_root.wep_change_able = 1;
Symbol 129 MovieClip Frame 1
_root.wep_change_able = 1;
this.gotoAndStop(1);
Symbol 129 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_bz(shot_pos_x, shot_pos_y, _parent._rotation + 180, 50, 10, 30);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_bz(shot_pos_x, shot_pos_y, -_parent._rotation, 50, 10, 30);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 129 MovieClip Frame 15
_root.wep_change_able = 1;
Symbol 137 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 137 MovieClip Frame 3
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_pr(shot_pos_x, shot_pos_y, _parent._rotation + 180, 4);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_pr(shot_pos_x, shot_pos_y, -_parent._rotation, 4);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 137 MovieClip Frame 10
_root.wep_change_able = 1;
Symbol 146 MovieClip Frame 1
this.chage = 10;
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 146 MovieClip Frame 4
if (_root.shot_flg == 1) {
this.efct_charge._alpha = 100;
this.efct_charge._xscale = (this.efct_charge._yscale = this.chage);
if (120 >= this.chage) {
this.chage = this.chage + 1;
}
this.gotoAndPlay(3);
if (this.chage >= 120) {
this.gotoAndPlay(15);
}
} else {
this.gotoAndPlay(5);
}
_root.wep_change_able = 0;
Symbol 146 MovieClip Frame 5
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_rg(shot_pos_x, shot_pos_y, this.chage * 5, this.chage / 5, _parent._rotation + 180, 50, this.chage / 10, this.chage / 10);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_rg(shot_pos_x, shot_pos_y, this.chage * 5, this.chage / 5, -_parent._rotation, 50, this.chage / 10, this.chage / 10);
}
_root.shot_cnt = 1;
Symbol 146 MovieClip Frame 10
this.gotoAndStop(1);
Symbol 146 MovieClip Frame 26
if (_root.shot_flg == 1) {
this.efct_charge._alpha = 100;
this.efct_charge._xscale = (this.efct_charge._yscale = this.chage);
this.gotoAndPlay(25);
} else {
this.gotoAndPlay(27);
}
Symbol 146 MovieClip Frame 27
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 5;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_rg(shot_pos_x, shot_pos_y, this.chage * 5, this.chage / 5, _parent._rotation + 180, 120, this.chage, 30);
_root.p_mov_x = _root.p_mov_x + ((Math.cos(_parent._rotation * (Math.PI/180)) * this.chage) / 3);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_rg(shot_pos_x, shot_pos_y, this.chage * 5, this.chage / 5, -_parent._rotation, 120, this.chage, 30);
_root.p_mov_x = _root.p_mov_x + (((-Math.cos(_parent._rotation * (Math.PI/180))) * this.chage) / 3);
}
_root.shot_cnt = 1;
Symbol 146 MovieClip Frame 60
this.gotoAndStop(1);
Symbol 152 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 152 MovieClip Frame 2
_root.wep_change_able = 0;
Symbol 152 MovieClip Frame 4
this.atk = 50;
if (_root.p_bp >= this.atk) {
_root.p_bp = _root.p_bp - this.atk;
} else if (_root.p_bp < this.atk) {
this.atk = _root.p_bp;
_root.p_bp = 0;
}
shot_pos_y = (_root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55)) - 7;
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_br(shot_pos_x, shot_pos_y, 300, 30, _parent._rotation + 180, 50, this.atk / 2, 20);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_br(shot_pos_x, shot_pos_y, 300, 30, -_parent._rotation, 50, this.atk / 2, 20);
}
_root.shot_cnt = 1;
Symbol 152 MovieClip Frame 9
_root.wep_change_able = 1;
Symbol 152 MovieClip Frame 11
if (_root.shot_flg == 1) {
this.gotoAndPlay(10);
}
Symbol 155 MovieClip Frame 1
_root.wep_change_able = 1;
Symbol 155 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 160 MovieClip Frame 1
_root.p_bp = _root.p_bp - 5;
Symbol 160 MovieClip Frame 3
this.gotoAndPlay(1);
Symbol 161 MovieClip Frame 1
_root.wep_change_able = 1;
Symbol 161 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 168 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 168 MovieClip Frame 2
_root.wep_change_able = 0;
Symbol 168 MovieClip Frame 13
i = 0;
while (20 >= i) {
if (this.bld_saw.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if ((_root.e_hp = 0 < _root.root.e_box["enemy" + i].hp)) {
_root.root.e_box["enemy" + i].hp = _root.root.e_box["enemy" + i].hp - 3;
_root.e_hp = _root.root.e_box["enemy" + i].hp;
_root.e_hp_max = _root.root.e_box["enemy" + i].hp_max;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = ((_root.root.e_box["enemy" + i]._y + _root.root.e_box["enemy" + i].e_core._y) + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
}
}
if (this.bld_saw.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
i++;
}
Symbol 168 MovieClip Frame 14
i = 0;
while (20 >= i) {
if (this.bld_saw.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if ((_root.e_hp = 0 < _root.root.e_box["enemy" + i].hp)) {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + 3;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = ((_root.root.e_box["enemy" + i]._y + _root.root.e_box["enemy" + i].e_core._y) + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
}
}
if (this.bld_saw.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
i++;
}
Symbol 168 MovieClip Frame 15
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.p_dmg_flg != 1) {
_root.shot_cnt = 1;
this.gotoAndPlay(13);
}
} else {
this.gotoAndPlay(16);
}
Symbol 168 MovieClip Frame 25
_root.wep_change_able = 1;
Symbol 174 MovieClip Frame 1
this.gotoAndStop(1);
_root.wep_change_able = 1;
Symbol 174 MovieClip Frame 2
shot_pos_y = _root.root.p_box.player._y + (_parent._parent.wep_arm_pos._y * 0.55);
if (0 < _root.root.p_box.player.p_main._xscale) {
shot_pos_x = _root.root.p_box.player._x + (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_hb01(shot_pos_x, shot_pos_y, _parent._rotation + 180, 20, 40, 30);
}
if (_root.root.p_box.player.p_main._xscale < 0) {
shot_pos_x = _root.root.p_box.player._x - (_parent._parent.wep_arm_pos._x / 2);
_root.root.p_box.p_shot_hb01(shot_pos_x, shot_pos_y, -_parent._rotation, 20, 40, 30);
}
_root.shot_cnt = 1;
_root.wep_change_able = 0;
Symbol 174 MovieClip Frame 11
if (_root.hb_flg == 1) {
this.gotoAndPlay(10);
} else {
_root.wep_change_able = 1;
}
Symbol 227 MovieClip Frame 1
_root.wep_change_able = 0;
Symbol 227 MovieClip Frame 2
_root.wep_change_able = 0;
Symbol 228 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 228 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 228 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 228 MovieClip Frame 136
this.gotoAndPlay(135);
Symbol 228 MovieClip Frame 150
this.gotoAndPlay(1);
Symbol 228 MovieClip Frame 161
this.gotoAndPlay(160);
Symbol 228 MovieClip Frame 175
this.gotoAndPlay(1);
Symbol 228 MovieClip Frame 191
this.gotoAndPlay(190);
Symbol 228 MovieClip Frame 196
this.gotoAndPlay(195);
Symbol 228 MovieClip Frame 210
this.gotoAndPlay(1);
Symbol 228 MovieClip Frame 216
this.gotoAndPlay(215);
Symbol 228 MovieClip Frame 221
this.gotoAndPlay(220);
Symbol 228 MovieClip Frame 236
this.gotoAndPlay(235);
Symbol 228 MovieClip Frame 251
this.gotoAndPlay(1);
Symbol 228 MovieClip Frame 275
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 228 MovieClip Frame 291
this.gotoAndPlay(290);
Symbol 228 MovieClip Frame 306
this.gotoAndPlay(305);
Symbol 228 MovieClip Frame 325
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 228 MovieClip Frame 351
this.gotoAndPlay(350);
Symbol 229 MovieClip [player10] Frame 1
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 64;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -64;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 64;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -64;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 10) {
_root.p_mov_y = 30;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(260);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(260);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(260);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.dash_defense = Math.abs(_root.p_mov_x) / 2;
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.anime_flg = this.anime_flg;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(186);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(330);
}
if ((this.p_main._currentframe == 133) || (this.p_main._currentframe == 158)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
if (5 < _root.p_mov_y) {
_root.p_mov_y = 5;
}
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(142);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
if (this.p_main._currentframe == 160) {
if (5 < _root.p_mov_y) {
_root.p_mov_y = 5;
}
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(162);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.p_main._currentframe == 188) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(295);
}
if (this.p_main._currentframe == 190) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
if (this.p_main._currentframe == 195) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if ((this.p_main._currentframe >= 197) && (210 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.3;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 215) && (255 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if (this.p_main._currentframe == 215) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(217);
}
}
if (this.p_main._currentframe == 220) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(222);
}
}
if (this.p_main._currentframe == 235) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(237);
}
}
if (this.p_main._currentframe >= 250) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if ((this.p_main._currentframe >= 255) && (370 >= this.p_main._currentframe)) {
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if ((this.p_main._currentframe >= 255) && (270 >= this.p_main._currentframe)) {
if ((this.p_main._currentframe >= 265) && (270 >= this.p_main._currentframe)) {
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(280);
}
}
_root.p_mov_x = _root.p_mov_x / 1.3;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 280) && (295 >= this.p_main._currentframe)) {
if (this.p_main._currentframe == 281) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
_root.p_mov_y = -10;
}
if (this.p_main._currentframe == 290) {
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(295);
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
}
if ((this.p_main._currentframe >= 295) && (325 >= this.p_main._currentframe)) {
if ((this.p_main._currentframe >= 295) && (300 >= this.p_main._currentframe)) {
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.p_main._currentframe == 305) {
_root.p_mov_y = 30;
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(307);
}
}
}
if ((this.p_main._currentframe >= 325) && (356 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if (this.p_main._currentframe == 342) {
_root.p_mov_y = -15;
}
if (this.p_main._currentframe == 350) {
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(295);
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
}
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.p_main.slash_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root._xscale = 120;
_root.root._yscale = _root.root._xscale;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_box["enemy" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
if (_root.root.e_box["enemy" + i].hp >= 0) {
_root.root.e_box["enemy" + i].dmg = this.p_main.p_wep_blade._currentframe * 5;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_shot" + i])) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
i++;
}
}
if (_root.p_dmg_flg != 1) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if (((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) {
if (_root.p_dmg_flg != 1) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if ((_root.shop_wep[_root.p_weps] == 2) && (this.bld_tlg == 0)) {
this.anime_flg = 10;
this.bld_tlg = 1;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
if (_root.shot_flg == 0) {
this.bld_tlg = 0;
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(10);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(10);
this.p_main.p_wep_blade.gotoAndStop(_root.p_weps - 39);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 125) && (134 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 150) && (159 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 141) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 166) && (175 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 222) && (235 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
if (((305 < this.p_main._currentframe) && (315 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((330 < this.p_main._currentframe) && (340 >= this.p_main._currentframe)) && (Math.abs(_root.p_mov_x) != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 229 MovieClip [player10] Frame 2
this.main_script();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 229 MovieClip [player10] Frame 3
this.gotoAndPlay(2);
Symbol 281 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 281 MovieClip Frame 85
this.gotoAndPlay(70);
Symbol 281 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 281 MovieClip Frame 150
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 175
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 190
this.gotoAndPlay(189);
Symbol 281 MovieClip Frame 195
this.gotoAndPlay(194);
Symbol 281 MovieClip Frame 210
this.gotoAndPlay(1);
Symbol 281 MovieClip Frame 220
this.gotoAndPlay(219);
Symbol 281 MovieClip Frame 225
this.gotoAndPlay(224);
Symbol 281 MovieClip Frame 235
this.gotoAndPlay(234);
Symbol 281 MovieClip Frame 255
this.gotoAndPlay(1);
Symbol 281 MovieClip Frame 280
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 305
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 355
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 380
this.gotoAndPlay(192);
_parent.anime_flg = 65;
Symbol 281 MovieClip Frame 400
this.gotoAndPlay(192);
_parent.anime_flg = 65;
Symbol 281 MovieClip Frame 430
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 448
this.gotoAndPlay(440);
Symbol 281 MovieClip Frame 460
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 281 MovieClip Frame 470
this.cnt = 0;
Symbol 281 MovieClip Frame 475
if (this.cnt < 3) {
this.cnt++;
this.gotoAndPlay(474);
} else {
this.gotoAndPlay(479);
}
Symbol 281 MovieClip Frame 480
this.gotoAndPlay(478);
Symbol 281 MovieClip Frame 510
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 282 MovieClip [player09] Frame 1
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 32;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -32;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 32;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -32;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
if ((((this.anime_flg != 5) && (this.anime_flg != 55)) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 0;
}
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 15) {
_root.p_mov_y = 30;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(156);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(156);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(156);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(156);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(156);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(156);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
if (this.anime_flg == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < ((-_root.a_move_main) / 2)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if ((_root.a_move_main / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.dash_defense = 15;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
if ((this.p_main._currentframe >= 133) && (150 >= this.p_main._currentframe)) {
if (_root.p_mov_x < 0) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(this.p_main._currentframe + 25);
}
}
if (0 < _root.p_mov_x) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(this.p_main._currentframe + 25);
}
}
}
if ((this.p_main._currentframe >= 158) && (175 >= this.p_main._currentframe)) {
if (_root.p_mov_x < 0) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(this.p_main._currentframe - 25);
}
}
if (0 < _root.p_mov_x) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(this.p_main._currentframe - 25);
}
}
}
if ((this.p_main._currentframe == 132) || (this.p_main._currentframe == 157)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (((this.p_main._currentframe >= 140) && (150 >= this.p_main._currentframe)) || ((this.p_main._currentframe >= 165) && (175 >= this.p_main._currentframe))) {
if (this.jump_flg == 0) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
} else {
this.anime_flg = 6;
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(156);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(156);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
if (this.p_main._currentframe == 188) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.p_main._currentframe == 189) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(191);
}
}
if (this.p_main._currentframe == 194) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(200);
}
}
if ((this.p_main._currentframe >= 200) && (210 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 215) && (255 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
}
if (this.p_main._currentframe == 219) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(221);
}
}
if (this.p_main._currentframe == 224) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(226);
}
}
if (this.p_main._currentframe == 234) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(237);
}
}
if (this.p_main._currentframe >= 254) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if (this.p_main._currentframe < 215) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(2);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(2);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
}
function main_script2() {
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if ((_root.b_pw_main * 5) < _root.p_bp) {
if ((_root.shot_flg == 1) && (this.shot_flg == 0)) {
this.shot_flg = 1;
if (_root.p_dmg_flg != 1) {
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(260);
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(260);
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(260);
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(435);
}
if ((this.p_main._currentframe >= 180) && (195 >= this.p_main._currentframe)) {
if (this.jump_flg == 1) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(360);
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(260);
}
}
if ((this.p_main._currentframe >= 265) && (275 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(285);
}
if ((this.p_main._currentframe >= 293) && (300 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(315);
}
if ((this.p_main._currentframe >= 370) && (380 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 5);
this.p_main.gotoAndPlay(385);
}
}
}
}
if (400 < _root.p_bp) {
if (!((this.p_main._currentframe >= 465) && (510 >= this.p_main._currentframe))) {
if (0 < this.i_k_tlg) {
this.i_k_tlg--;
}
if (0 < this.i_k_tlg2) {
this.i_k_tlg2--;
}
if (this.jump_flg == 1) {
if ((_root.shot_flg == 1) && (this.i_k_flg == 0)) {
this.i_k_flg = 1;
if (0 < this.i_k_tlg2) {
this.i_k_tlg2 = 0;
_root.p_bp = _root.p_bp - 400;
this.p_main.gotoAndPlay(470);
}
if ((0 < this.i_k_tlg) && (0 >= this.i_k_tlg2)) {
this.i_k_tlg2 = 10;
this.i_k_tlg = 0;
}
if (0 >= this.i_k_tlg) {
this.i_k_tlg = 10;
}
}
}
if (_root.shot_flg == 0) {
this.i_k_flg = 0;
}
}
}
}
if (_root.shot_flg == 0) {
this.shot_flg = 0;
}
if ((this.p_main._currentframe >= 256) && (510 >= this.p_main._currentframe)) {
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(219);
}
if ((this.p_main._currentframe >= 256) && (355 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 360) && (400 >= this.p_main._currentframe)) {
_root.p_mov_y = _root.p_mov_y / 1.2;
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if (this.p_main._currentframe == 437) {
_root.p_mov_y = -10;
}
if ((this.p_main._currentframe >= 440) && (448 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(450);
}
}
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.p_main.slash_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root._xscale = 120;
_root.root._yscale = _root.root._xscale;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_box["enemy" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
if (_root.root.e_box["enemy" + i].hp >= 0) {
_root.root.e_box["enemy" + i].dmg = _root.b_pw_main / 3;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_shot" + i])) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
i++;
}
}
if ((this.p_main._currentframe >= 465) && (510 >= this.p_main._currentframe)) {
if ((this.p_main._currentframe >= 465) && (475 >= this.p_main._currentframe)) {
if (this.p_main._currentframe == 470) {
if (_root.key_l == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = -_root.a_move_main;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.a_move_main;
}
}
_root.p_mov_y = -10;
}
}
if ((this.p_main._currentframe >= 476) && (480 >= this.p_main._currentframe)) {
efct_pos_x = _root.p_pos_x;
efct_pos_y = _root.p_pos_y + 30;
efct++;
_root.root.efct_box.efct_spark01(efct_pos_x, efct_pos_y);
if (1 < efct) {
efct = 0;
_root.root.efct_box.efct_sw01(efct_pos_x, efct_pos_y, 100, 20, 0);
}
if (this.jump_flg == 1) {
_root.p_mov_y = 40;
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(485);
}
}
if ((this.p_main._currentframe >= 485) && (510 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.p_main.slash_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_box["enemy" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
if (_root.root.e_box["enemy" + i].hp >= 0) {
_root.root.e_box["enemy" + i].dmg = _root.b_pw_main / 3;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_shot" + i])) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_e_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
i++;
}
}
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 130) && (133 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 165) && (168 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 140) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 175) && (185 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (185 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 195) && (200 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 200) && (210 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 450) && (460 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 485) && (500 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 225) && (235 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 73) || (this.p_main._currentframe == 81)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 282 MovieClip [player09] Frame 2
this.main_script();
this.main_script2();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 282 MovieClip [player09] Frame 3
this.gotoAndPlay(2);
Symbol 303 MovieClip Frame 1
this.stop();
Symbol 303 MovieClip Frame 2
this.stop();
Symbol 329 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 329 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 329 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 329 MovieClip Frame 136
this.gotoAndPlay(135);
Symbol 329 MovieClip Frame 140
if (_parent.flying_flg == 1) {
this.gotoAndPlay(250);
}
Symbol 329 MovieClip Frame 150
this.gotoAndPlay(1);
Symbol 329 MovieClip Frame 161
this.gotoAndPlay(160);
Symbol 329 MovieClip Frame 165
if (_parent.flying_flg == 1) {
this.gotoAndPlay(250);
}
Symbol 329 MovieClip Frame 180
this.gotoAndPlay(1);
Symbol 329 MovieClip Frame 191
this.gotoAndPlay(190);
Symbol 329 MovieClip Frame 196
this.gotoAndPlay(195);
Symbol 329 MovieClip Frame 210
this.gotoAndPlay(1);
Symbol 329 MovieClip Frame 216
this.gotoAndPlay(215);
Symbol 329 MovieClip Frame 221
this.gotoAndPlay(220);
Symbol 329 MovieClip Frame 231
this.gotoAndPlay(230);
Symbol 329 MovieClip Frame 245
this.gotoAndPlay(1);
Symbol 329 MovieClip Frame 310
this.gotoAndPlay(250);
Symbol 329 MovieClip Frame 321
this.gotoAndPlay(320);
Symbol 329 MovieClip Frame 325
this.gotoAndPlay(250);
Symbol 329 MovieClip Frame 336
this.gotoAndPlay(335);
Symbol 329 MovieClip Frame 340
this.gotoAndPlay(250);
Symbol 329 MovieClip Frame 351
this.gotoAndPlay(350);
Symbol 329 MovieClip Frame 355
this.gotoAndPlay(250);
Symbol 329 MovieClip Frame 366
this.gotoAndPlay(365);
Symbol 329 MovieClip Frame 370
this.gotoAndPlay(250);
Symbol 330 MovieClip [player05] Frame 1
function main_script() {
if (this.flying_flg == 0) {
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if (0 < this.flying_cnt) {
this.flying_cnt--;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
if ((_root.key_l == 1) && (_root.key_r == 1)) {
this.dash_cnt = 0;
}
this.tlg = 0;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if (_root.key_u == 1) {
if (this.flying_tlg == 0) {
if (0 < this.flying_cnt) {
this.flying_flg = 1;
}
if (0 >= this.flying_cnt) {
this.flying_cnt = 10;
}
this.flying_tlg = 1;
}
}
if (_root.key_u == 0) {
this.flying_tlg = 0;
}
if ((this.p_main._currentframe >= 250) && (370 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(198);
}
if (this.jump_flg == 1) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
_root.p_mov_x = _root.p_mov_x / 1.5;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.dash_defense = Math.abs(_root.p_mov_x) / 2;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(186);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if ((this.p_main._currentframe == 133) || (this.p_main._currentframe == 158)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(137);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
if (this.p_main._currentframe == 160) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(162);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.p_main._currentframe == 188) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.p_main._currentframe == 190) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
if (this.p_main._currentframe == 195) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if ((this.p_main._currentframe >= 197) && (210 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 215) && (245 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if (this.p_main._currentframe == 215) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(217);
}
}
if (this.p_main._currentframe == 220) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(222);
}
}
if (this.p_main._currentframe == 230) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(232);
}
}
if (this.p_main._currentframe >= 240) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
}
}
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script2() {
if (this.flying_flg == 1) {
if (this.jump_flg == 0) {
this.flying_flg = 0;
this.p_main.gotoAndPlay(197);
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if (0 < this.flying_cnt) {
this.flying_cnt--;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
this.anime_flg = 1;
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
this.anime_flg = 2;
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (_root.key_u == 1) {
if ((((this.anime_flg != 1) && (this.anime_flg != 3)) && (this.anime_flg != 2)) && (this.anime_flg != 4)) {
this.anime_flg = 7;
}
if ((-_root.a_move_main) < _root.p_mov_y) {
_root.p_mov_y = _root.p_mov_y - 2;
}
}
if (_root.key_d == 1) {
if (this.flying_tlg == 0) {
if (0 < this.flying_cnt) {
this.flying_flg = 0;
}
if (0 >= this.flying_cnt) {
this.flying_cnt = 10;
}
this.flying_tlg = 1;
}
if ((((this.anime_flg != 1) && (this.anime_flg != 3)) && (this.anime_flg != 2)) && (this.anime_flg != 4)) {
this.anime_flg = 8;
}
if (_root.p_mov_y < _root.a_move_main) {
_root.p_mov_y = _root.p_mov_y + 2;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
if ((_root.key_l == 1) && (_root.key_r == 1)) {
this.dash_cnt = 0;
}
this.tlg = 0;
_root.p_mov_x = _root.p_mov_x / 1.1;
}
if (((_root.key_u == 0) && (_root.key_d == 0)) || ((_root.key_u == 1) && (_root.key_d == 1))) {
this.flying_tlg = 0;
_root.p_mov_y = _root.p_mov_y / 1.1;
}
if (((((_root.key_l == 0) && (_root.key_r == 0)) && (_root.key_u == 0)) && (_root.key_d == 0)) || ((((_root.key_r == 1) && (_root.key_l == 1)) && (_root.key_u == 1)) && (_root.key_d == 1))) {
this.anime_flg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (125 >= this.p_main._currentframe)) {
this.p_main.gotoAndPlay(250);
}
if ((this.p_main._currentframe >= 181) && (210 >= this.p_main._currentframe)) {
this.p_main.gotoAndPlay(250);
}
if ((this.p_main._currentframe >= 250) && (310 >= this.p_main._currentframe)) {
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 8) {
this.p_main.gotoAndPlay(360);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(315);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(330);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(315);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
_root.p_mov_y = _root.p_mov_y / 1.2;
if ((-1 < _root.p_mov_y) && (_root.p_mov_y < 1)) {
_root.p_mov_y = 0;
}
}
if (this.p_main._currentframe == 320) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 10);
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(322);
}
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 8) {
this.p_main.gotoAndPlay(360);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
}
if (this.p_main._currentframe == 335) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 10);
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(337);
}
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 8) {
this.p_main.gotoAndPlay(360);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(315);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(315);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
}
if (this.p_main._currentframe == 350) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(352);
}
if (this.anime_flg == 8) {
this.p_main.gotoAndPlay(360);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
}
if (this.p_main._currentframe == 365) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 20);
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(367);
}
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(330);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.dash_defense = Math.abs(_root.p_mov_x) / 2;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(186);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.flying_flg = 0;
this.p_main.gotoAndPlay(213);
}
if ((this.p_main._currentframe == 133) || (this.p_main._currentframe == 158)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(137);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
if (this.p_main._currentframe == 160) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(162);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
} else {
_root.dash_defense = 0;
}
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 10);
if (5 >= _root.p_bp) {
this.flying_flg = 0;
}
}
}
function main_script3() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 64;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -64;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 64;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -64;
}
}
if (0 >= _root.p_hp) {
if (this.flying_flg != 0) {
this.flying_flg = 0;
}
}
}
function main_script4() {
if (_root.p_dmg_flg != 1) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_dmg_flg != 1) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.shop_wep[_root.p_weps] == 2) {
this.anime_flg = 10;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(5);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(5);
_root.flying_flg = this.flying_flg;
_root.flying_tlg = this.flying_tlg;
_root.flying_cnt = this.flying_cnt;
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
_root.dash_cnt = this.dash_cnt;
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 125) && (134 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 150) && (159 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 141) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 166) && (175 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 222) && (235 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
if (this.p_main._currentframe == 135) {
this.p_main.p_body.gotoAndStop(2);
} else {
this.p_main.p_body.gotoAndStop(1);
}
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost2._xscale = Math.abs(_root.p_mov_x) + 50;
this.p_main.p_boost2._yscale = Math.abs(_root.p_mov_x) + 50;
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 330 MovieClip [player05] Frame 2
this.main_script3();
this.main_script2();
this.main_script();
this.main_script4();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 330 MovieClip [player05] Frame 3
this.gotoAndPlay(2);
Symbol 370 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 370 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 370 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 370 MovieClip Frame 136
this.gotoAndPlay(135);
Symbol 370 MovieClip Frame 150
this.gotoAndPlay(1);
Symbol 370 MovieClip Frame 161
this.gotoAndPlay(160);
Symbol 370 MovieClip Frame 175
this.gotoAndPlay(1);
Symbol 370 MovieClip Frame 191
this.gotoAndPlay(190);
Symbol 370 MovieClip Frame 196
this.gotoAndPlay(195);
Symbol 370 MovieClip Frame 210
this.gotoAndPlay(1);
Symbol 370 MovieClip Frame 216
this.gotoAndPlay(215);
Symbol 370 MovieClip Frame 221
this.gotoAndPlay(220);
Symbol 370 MovieClip Frame 236
this.gotoAndPlay(235);
Symbol 370 MovieClip Frame 255
this.gotoAndPlay(1);
Symbol 371 MovieClip [player04] Frame 1
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 64;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -64;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 64;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -64;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 10) {
_root.p_mov_y = 30;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(185);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.dash_defense = Math.abs(_root.p_mov_x) / 2;
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.anime_flg = this.anime_flg;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(186);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(193);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if ((this.p_main._currentframe == 133) || (this.p_main._currentframe == 158)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(142);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(159);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
if (this.p_main._currentframe == 160) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(162);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(134);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(155);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(155);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.p_main._currentframe == 188) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(213);
}
if (this.p_main._currentframe == 190) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
if (this.p_main._currentframe == 195) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if ((this.p_main._currentframe >= 197) && (210 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 215) && (255 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if (this.p_main._currentframe == 215) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(217);
}
}
if (this.p_main._currentframe == 220) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(222);
}
}
if (this.p_main._currentframe == 235) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(237);
}
}
if (this.p_main._currentframe >= 250) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if (_root.p_dmg_flg != 1) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_dmg_flg != 1) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.shop_wep[_root.p_weps] == 2) {
this.anime_flg = 10;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(4);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(4);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 125) && (134 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 150) && (159 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 141) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 166) && (175 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 180) && (210 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 222) && (235 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 371 MovieClip [player04] Frame 2
this.main_script();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 371 MovieClip [player04] Frame 3
this.gotoAndPlay(2);
Symbol 414 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 414 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 414 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 414 MovieClip Frame 136
this.gotoAndPlay(135);
Symbol 414 MovieClip Frame 155
this.gotoAndPlay(1);
Symbol 414 MovieClip Frame 166
this.gotoAndPlay(165);
Symbol 414 MovieClip Frame 185
this.gotoAndPlay(1);
Symbol 414 MovieClip Frame 196
this.gotoAndPlay(195);
Symbol 414 MovieClip Frame 201
this.gotoAndPlay(200);
Symbol 414 MovieClip Frame 215
this.gotoAndPlay(1);
Symbol 414 MovieClip Frame 226
this.gotoAndPlay(225);
Symbol 414 MovieClip Frame 231
this.gotoAndPlay(230);
Symbol 414 MovieClip Frame 236
this.gotoAndPlay(225);
Symbol 414 MovieClip Frame 241
this.gotoAndPlay(240);
Symbol 414 MovieClip Frame 246
this.gotoAndPlay(225);
Symbol 414 MovieClip Frame 251
this.gotoAndPlay(250);
Symbol 414 MovieClip Frame 256
this.gotoAndPlay(255);
Symbol 414 MovieClip Frame 266
this.gotoAndPlay(265);
Symbol 414 MovieClip Frame 280
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 415 MovieClip [player03] Frame 1
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 64;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -64;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 64;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -64;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
} else if (this.jump_flg == 1) {
if (this.anime_flg == 7) {
this.anime_flg = 76;
} else if (((this.anime_flg != 7) && (this.anime_flg != 76)) && (this.anime_flg != 77)) {
this.anime_flg = 6;
}
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
} else if (this.jump_flg == 1) {
if (this.anime_flg == 7) {
this.anime_flg = 77;
} else if (((this.anime_flg != 7) && (this.anime_flg != 76)) && (this.anime_flg != 77)) {
this.anime_flg = 6;
}
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 10) {
_root.p_mov_y = 30;
}
}
}
}
if ((this.jump_flg == 0) || (this.anime_flg == 95)) {
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
} else if (this.jump_flg == 1) {
if (_root.key_u == 1) {
if (((this.anime_flg != 7) && (this.anime_flg != 76)) && (this.anime_flg != 77)) {
if ((this.anime_flg == 6) || (this.anime_flg == 65)) {
this.anime_flg = 7;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
if ((this.anime_flg == 76) || (this.anime_flg == 77)) {
this.anime_flg = 7;
}
}
}
}
if (_root.key_u == 0) {
if ((((this.anime_flg == 7) || (this.anime_flg == 75)) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.anime_flg = 6;
}
_root.p_pw = 0;
this.jump_tlg = 0;
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(160);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(160);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
if (((this.anime_flg == 7) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(160);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
if (((this.anime_flg == 7) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
this.jump_tlg = 0;
_root.dash_defense = 0;
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.anime_flg = this.anime_flg;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
if (((this.anime_flg == 7) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
if ((this.p_main._currentframe == 134) || (this.p_main._currentframe == 164)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (1 < _root.p_mov_y) {
_root.p_mov_y = 1;
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(142);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(165);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(165);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
} else {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if (this.p_main._currentframe == 165) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (1 < _root.p_mov_y) {
_root.p_mov_y = 1;
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(167);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(135);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(135);
}
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
} else {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 185) && (215 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(130);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(160);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(130);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (this.p_main._currentframe == 193) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
if (this.p_main._currentframe == 195) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
}
if (this.p_main._currentframe == 200) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (((this.anime_flg == 7) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.p_main.gotoAndPlay(220);
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(202);
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
}
if ((this.p_main._currentframe >= 202) && (215 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 220) && (245 >= this.p_main._currentframe)) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 3);
if (((-_root.b_pw_main) / 2) < _root.p_mov_y) {
_root.p_mov_y = _root.p_mov_y - (_root.b_pw_main / 3);
}
if (0 >= _root.p_bp) {
this.jump_tlg = 2;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(202);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(250);
}
if (this.anime_flg == 76) {
if ((-(_root.a_move_main * 2)) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-(_root.a_move_main * 2))) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 77) {
if (_root.p_mov_x < (_root.a_move_main * 2)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if ((_root.a_move_main * 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
if (this.p_main._currentframe == 225) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if (this.anime_flg == 76) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(227);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(237);
}
}
if (this.anime_flg == 77) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(227);
}
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(237);
}
}
}
if (this.p_main._currentframe == 230) {
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(232);
}
if (this.anime_flg == 76) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(237);
}
}
if (this.anime_flg == 77) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(237);
}
}
}
if (this.p_main._currentframe == 240) {
if (this.anime_flg == 7) {
this.p_main.gotoAndPlay(242);
}
if (this.anime_flg == 76) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(227);
}
}
if (this.anime_flg == 77) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(227);
}
}
}
}
if ((this.p_main._currentframe >= 250) && (280 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(190);
}
if (((this.anime_flg == 7) || (this.anime_flg == 76)) || (this.anime_flg == 77)) {
this.p_main.gotoAndPlay(220);
}
}
if (this.p_main._currentframe == 250) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(252);
}
}
if (this.p_main._currentframe == 255) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(257);
}
}
if (this.p_main._currentframe == 265) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(267);
}
}
if (this.p_main._currentframe >= 276) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if (this.p_main._currentframe < 255) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.p_dmg_flg != 1) {
if (_root.shop_wep[_root.p_weps] == 2) {
this.anime_flg = 10;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(3);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(3);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
_root.anime_cnt = this.p_main._currentframe;
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 125) && (134 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 150) && (159 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 141) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 166) && (175 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 180) && (220 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 255) && (265 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 415 MovieClip [player03] Frame 2
this.main_script();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 415 MovieClip [player03] Frame 3
this.gotoAndPlay(2);
Symbol 455 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 455 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 455 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 455 MovieClip Frame 150
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 455 MovieClip Frame 185
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 455 MovieClip Frame 200
this.gotoAndPlay(199);
Symbol 455 MovieClip Frame 205
this.gotoAndPlay(204);
Symbol 455 MovieClip Frame 215
this.gotoAndPlay(1);
Symbol 455 MovieClip Frame 221
this.gotoAndPlay(220);
Symbol 455 MovieClip Frame 226
this.gotoAndPlay(225);
Symbol 455 MovieClip Frame 246
this.gotoAndPlay(245);
Symbol 455 MovieClip Frame 256
this.gotoAndPlay(1);
Symbol 455 MovieClip Frame 285
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 455 MovieClip Frame 301
this.gotoAndPlay(295);
Symbol 455 MovieClip Frame 317
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 456 MovieClip [player02] Frame 1
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 55;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -55;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 55;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -55;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
if ((((this.anime_flg != 5) && (this.anime_flg != 55)) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 0;
}
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 15) {
_root.p_mov_y = 30;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(166);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(166);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(202);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(265);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(166);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(166);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(202);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(265);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(166);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(166);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(202);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(265);
}
if (this.anime_flg == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < ((-_root.a_move_main) / 2)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if ((_root.a_move_main / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (185 >= this.p_main._currentframe)) {
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.dash_defense = 15;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(204);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(290);
}
if ((this.p_main._currentframe >= 133) && (150 >= this.p_main._currentframe)) {
if (_root.p_mov_x < 0) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(this.p_main._currentframe + 35);
}
}
if (0 < _root.p_mov_x) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(this.p_main._currentframe + 35);
}
}
}
if ((this.p_main._currentframe >= 168) && (185 >= this.p_main._currentframe)) {
if (_root.p_mov_x < 0) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(this.p_main._currentframe - 35);
}
}
if (0 < _root.p_mov_x) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(this.p_main._currentframe - 35);
}
}
}
if ((this.p_main._currentframe == 132) || (this.p_main._currentframe == 167)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (((this.p_main._currentframe >= 140) && (150 >= this.p_main._currentframe)) || ((this.p_main._currentframe >= 175) && (185 >= this.p_main._currentframe))) {
if (this.jump_flg == 0) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
} else {
this.anime_flg = 6;
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 190) && (215 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(166);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(166);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(198);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(290);
}
if (this.p_main._currentframe == 198) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.p_main._currentframe == 199) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(202);
}
}
if ((this.p_main._currentframe >= 201) && (206 >= this.p_main._currentframe)) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(207);
}
}
}
if ((this.p_main._currentframe >= 220) && (260 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(197);
}
}
if (this.p_main._currentframe == 220) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(222);
}
}
if (this.p_main._currentframe == 225) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(227);
}
}
if (this.p_main._currentframe == 245) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(247);
}
}
if (this.p_main._currentframe >= 254) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if ((this.p_main._currentframe >= 260) && (430 >= this.p_main._currentframe)) {
if (((this.p_main._currentframe >= 260) && (285 >= this.p_main._currentframe)) || ((this.p_main._currentframe >= 303) && (315 >= this.p_main._currentframe))) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
} else {
_root.p_mov_x = _root.p_mov_x / 1.05;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(131);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(166);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(166);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(131);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(220);
}
if ((this.p_main._currentframe == 291) || (this.p_main._currentframe == 406)) {
_root.p_mov_y = -10;
}
if ((this.p_main._currentframe >= 295) && (300 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(302);
}
}
if ((((this.p_main._currentframe >= 270) && (272 >= this.p_main._currentframe)) || ((this.p_main._currentframe >= 290) && (300 >= this.p_main._currentframe))) || ((this.p_main._currentframe >= 428) && (430 >= this.p_main._currentframe))) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.p_main.slash_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root._xscale = 120;
_root.root._yscale = _root.root._xscale;
_root.root._xscale = 150;
_root.root._yscale = _root.root._xscale;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_box["enemy" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
if (_root.root.e_box["enemy" + i].hp >= 0) {
_root.root.e_box["enemy" + i].dmg = this.p_main.p_wep_blade._currentframe * 5;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
if (this.p_main.slash_area.hitTest(_root.root.e_efct_box["e_shot" + i])) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
i++;
}
}
}
if (this.p_main._currentframe < 215) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_dmg_flg != 1) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.shop_wep[_root.p_weps] == 2) {
this.anime_flg = 10;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(2);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(2);
this.p_main.p_wep_blade.gotoAndStop(_root.p_weps - 39);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
}
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 130) && (133 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 165) && (168 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 140) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 175) && (185 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (185 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
this.efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 195) && (200 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 205) && (215 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 230) && (245 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 303) && (315 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 456 MovieClip [player02] Frame 2
this.main_script();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 456 MovieClip [player02] Frame 3
this.gotoAndPlay(2);
Symbol 489 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 489 MovieClip Frame 90
this.gotoAndPlay(70);
Symbol 489 MovieClip Frame 120
this.gotoAndPlay(100);
Symbol 489 MovieClip Frame 136
this.gotoAndPlay(135);
Symbol 489 MovieClip Frame 146
this.gotoAndPlay(1);
Symbol 489 MovieClip Frame 161
this.gotoAndPlay(160);
Symbol 489 MovieClip Frame 171
this.gotoAndPlay(1);
Symbol 489 MovieClip Frame 191
this.gotoAndPlay(190);
Symbol 489 MovieClip Frame 196
this.gotoAndPlay(195);
Symbol 489 MovieClip Frame 211
_parent.anime_flg = 0;
this.gotoAndPlay(1);
Symbol 489 MovieClip Frame 276
this.gotoAndPlay(275);
Symbol 489 MovieClip Frame 281
this.gotoAndPlay(280);
Symbol 489 MovieClip Frame 301
this.gotoAndPlay(300);
Symbol 489 MovieClip Frame 316
this.gotoAndPlay(1);
Symbol 489 MovieClip Frame 371
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 489 MovieClip Frame 388
this.gotoAndPlay(387);
Symbol 489 MovieClip Frame 398
this.gotoAndPlay(1);
_parent.anime_flg = 0;
Symbol 489 MovieClip Frame 428
this.gotoAndPlay(427);
Symbol 490 MovieClip [player01] Frame 1
function main_script() {
if (((_root.p_dmg_flg == 0) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_sight._x < ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = 64;
_root.sight_pos = 0;
} else if (_root.p_sight._x >= ((this._x + _root.root._x) - 200)) {
this.p_main._xscale = -64;
_root.sight_pos = 1;
}
} else if ((this.anime_flg != 10) && (this.anime_flg != 11)) {
if (0 < _root.p_mov_x) {
this.p_main._xscale = 64;
}
if (_root.p_mov_x < 0) {
this.p_main._xscale = -64;
}
}
if (0 < this.dash_cnt) {
this.dash_cnt--;
} else if (this.dash_cnt < 0) {
this.dash_cnt++;
}
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.key_l == 1) {
if (this.tlg == 0) {
if (0 < this.dash_cnt) {
this.anime_flg = 3;
this.tlg = 1;
}
if (0 >= this.dash_cnt) {
this.dash_cnt = 10;
this.tlg = 1;
}
} else if (this.anime_flg != 3) {
if (this.jump_flg == 0) {
this.anime_flg = 1;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 4) || (this.anime_flg == 2)) {
this.anime_flg = 0;
}
}
if (_root.key_r == 1) {
if (this.tlg == 0) {
if (this.dash_cnt < 0) {
this.anime_flg = 4;
this.tlg = 1;
}
if (this.dash_cnt >= 0) {
this.dash_cnt = -10;
this.tlg = 1;
}
} else if (this.anime_flg != 4) {
if (this.jump_flg == 0) {
this.anime_flg = 2;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (this.jump_flg == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = _root.p_mov_x / 1.5;
}
}
if ((this.anime_flg == 3) || (this.anime_flg == 1)) {
this.anime_flg = 0;
}
}
if (((_root.key_l == 0) && (_root.key_r == 0)) || ((_root.key_l == 1) && (_root.key_r == 1))) {
this.tlg = 0;
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if (((0 < _root.p_mov_y) && (this.anime_flg != 6)) && (this.anime_flg != 65)) {
this.anime_flg = 6;
}
}
}
if (_root.key_d == 1) {
if (this.jump_flg == 1) {
if (_root.p_mov_y < 10) {
_root.p_mov_y = 30;
}
}
}
}
if (_root.jump_mode == 0) {
if (_root.key_u == 1) {
if (_root.p_pw < _root.b_pw_main) {
if ((_root.p_pw * 3) < _root.p_bp) {
_root.p_pw = _root.p_pw + (_root.b_pw_main / 15);
}
}
}
if (_root.key_u == 0) {
if (0 < _root.p_pw) {
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
this.anime_flg = 5;
}
}
}
if (_root.jump_mode == 1) {
_root.p_pw = _root.b_pw_main;
if ((_root.key_u == 1) && (this.jump_tlg == 0)) {
this.jump_tlg = 1;
this.anime_flg = 5;
this.jump_pw = _root.p_pw;
_root.p_pw = 0;
}
if (_root.key_u == 0) {
_root.p_pw = 0;
this.jump_tlg = 0;
}
}
if ((this.p_main._currentframe >= 1) && (60 >= this.p_main._currentframe)) {
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(345);
}
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if ((this.p_main._currentframe >= 65) && (90 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(95);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 2;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 2;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 2;
}
}
}
if ((this.p_main._currentframe >= 95) && (120 >= this.p_main._currentframe)) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 1) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 2) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(345);
}
if (this.anime_flg == 1) {
if ((-_root.a_move_main) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if (_root.p_mov_x < (-_root.a_move_main)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
}
if (this.anime_flg == 2) {
if (_root.p_mov_x < _root.a_move_main) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if (_root.a_move_main < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - 1;
}
}
}
if ((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) {
_root.dash_defense = Math.abs(_root.p_mov_x) / 2;
this.p_main.p_boost._xscale = Math.abs(_root.p_mov_x * 2) + 20;
this.p_main.p_boost._yscale = Math.abs(_root.p_mov_x * 2) + 20;
_root.anime_flg = this.anime_flg;
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
if (this.anime_flg == 6) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if ((this.p_main._currentframe == 134) || (this.p_main._currentframe == 159)) {
if (_root.efct_switch == 1) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y - 30, _root.b_pw_main / 2, _root.b_pw_main * 2, 0);
}
if ((_root.b_pw_main * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main * 2);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main * 2);
}
} else {
_root.p_bp = _root.p_bp - (_root.b_pw_main * 3);
if (this.anime_flg == 3) {
_root.p_mov_x = _root.p_mov_x - (_root.b_pw_main / 3);
}
if (this.anime_flg == 4) {
_root.p_mov_x = _root.p_mov_x + (_root.b_pw_main / 3);
}
}
}
if (this.p_main._currentframe == 135) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (5 < _root.p_mov_y) {
_root.p_mov_y = 5;
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(137);
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(160);
}
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(375);
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
if (this.p_main._currentframe == 160) {
_root.p_bp = _root.p_bp - ((_root.a_move_main + _root.b_pw_main) / 5);
if (0 >= _root.p_bp) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
}
if (this.jump_flg == 1) {
this.anime_flg = 6;
}
}
if (5 < _root.p_mov_y) {
_root.p_mov_y = 5;
}
if ((this.anime_flg != 3) && (this.anime_flg != 4)) {
this.p_main.gotoAndPlay(162);
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(135);
}
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(135);
}
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(405);
}
if (this.anime_flg == 3) {
if (((-_root.a_move_main) * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
if (_root.p_mov_x < ((-_root.a_move_main) * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
}
if (this.anime_flg == 4) {
if (_root.p_mov_x < (_root.a_move_main * 2.5)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 5);
}
if ((_root.a_move_main * 2.5) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 5);
}
}
}
} else {
_root.dash_defense = 0;
}
if ((this.p_main._currentframe >= 180) && (220 >= this.p_main._currentframe)) {
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(186);
}
if (this.p_main._currentframe == 188) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = (-_root.a_move_main) / 2;
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.a_move_main / 2;
}
}
if ((this.jump_pw * 3) < _root.p_bp) {
_root.p_bp = _root.p_bp - (this.jump_pw * 3);
}
if (_root.p_bp < (this.jump_pw * 3)) {
_root.p_bp = 0;
this.jump_pw = _root.p_bp / 3;
}
_root.p_mov_y = -this.jump_pw;
this.jump_pw = 0;
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if (this.anime_flg == 10) {
this.anime_flg = 11;
this.p_main.gotoAndPlay(375);
}
if (this.p_main._currentframe == 190) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if ((_root.key_u == 0) && (_root.jump_mode == 1)) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = _root.p_mov_y / 1.5;
}
}
if (_root.p_mov_y >= 0) {
this.anime_flg = 65;
this.p_main.gotoAndPlay(192);
}
}
if (this.p_main._currentframe == 195) {
if (_root.key_l == 1) {
if (((-_root.a_move_main) / 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - (_root.a_move_main / 10);
}
}
if (_root.key_r == 1) {
if (_root.p_mov_x < (_root.a_move_main / 2)) {
_root.p_mov_x = _root.p_mov_x + (_root.a_move_main / 10);
}
}
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(197);
}
if (this.anime_flg == 5) {
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if ((this.p_main._currentframe >= 197) && (210 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.5;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
}
if ((this.p_main._currentframe >= 270) && (330 >= this.p_main._currentframe)) {
_root.p_dmg_flg = 1;
if (0 < _root.p_hp) {
if (this.anime_flg == 0) {
this.p_main.gotoAndPlay(1);
}
if (this.anime_flg == 5) {
_root.root.efct_box.efct_sw01(_root.p_pos_x, _root.p_pos_y, 50, 15, 0);
this.anime_flg = 55;
this.p_main.gotoAndPlay(187);
}
}
if (this.p_main._currentframe == 275) {
if (0 >= _root.p_hp) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 30) - random(60);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 30) - random(60);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 100, 100);
}
if (_root.p_mov_y >= 0) {
this.p_main.gotoAndPlay(277);
}
}
if (this.p_main._currentframe == 280) {
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(282);
}
}
if (this.p_main._currentframe == 300) {
_root.p_mov_x = _root.p_mov_x / 1.1;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if ((_root.p_mov_x == 0) && (0 < _root.p_hp)) {
this.p_main.gotoAndPlay(302);
}
}
if (this.p_main._currentframe >= 315) {
this.anime_flg = 0;
}
} else {
_root.p_dmg_flg = 0;
}
if ((this.p_main._currentframe >= 340) && (430 >= this.p_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.2;
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
if (this.anime_flg == 3) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(132);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(157);
}
}
if (this.anime_flg == 4) {
if (_root.sight_pos == 0) {
this.p_main.gotoAndPlay(157);
}
if (_root.sight_pos == 1) {
this.p_main.gotoAndPlay(132);
}
}
if (this.anime_flg == 9) {
this.anime_flg = 95;
this.p_main.gotoAndPlay(273);
}
if ((this.p_main._currentframe == 376) || (this.p_main._currentframe == 406)) {
_root.p_mov_y = -14;
}
if ((this.p_main._currentframe == 387) || (this.p_main._currentframe == 427)) {
_root.p_mov_y = 30;
if (this.jump_flg == 0) {
this.p_main.gotoAndPlay(391);
}
}
if ((this.p_main._currentframe >= 330) && (430 >= this.p_main._currentframe)) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.p_main.slash_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root._xscale = 120;
_root.root._yscale = _root.root._xscale;
efct_pos_x = (_root.root.e_box["enemy" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_box["enemy" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
if (_root.root.e_box["enemy" + i].hp >= 0) {
_root.root.e_box["enemy" + i].dmg = this.p_main.p_wep_blade._currentframe * 5;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_main.p_wep_blade.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
if (this.p_main.p_wep_blade.hitTest(_root.root.e_efct_box["e_shot" + i])) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
efct_pos_x = (_root.root.e_efct_box["e_msl" + i]._x + _root.p_pos_x) / 2;
efct_pos_y = (_root.root.e_efct_box["e_msl" + i]._y + _root.p_pos_y) / 2;
_root.root.efct_box.efct_slash01(efct_pos_x, efct_pos_y);
_root.root.e_efct_box["e_msl" + i].hit_flg = 1;
}
}
i++;
}
}
}
if (_root.p_dmg_flg != 1) {
this.tgt_x = (this._x + _root.root._x) - 200;
this.tgt_y = (this._y + _root.root._y) - 150;
if (_root.sight_pos == 1) {
this.wep_arm_rot = (Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (_root.sight_pos == 0) {
this.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this.tgt_x, _root.p_sight._y - this.tgt_y)) / (Math.PI/180)) - 95;
this.p_head_rot = this.wep_arm_rot;
}
if (40 < this.p_head_rot) {
this.p_head_rot = 40;
}
if (this.p_head_rot < -40) {
this.p_head_rot = -40;
}
if (_root.shop_wep[_root.p_weps] == 2) {
this.wep_arm_rot = 0;
}
} else {
this.p_head_rot = 0;
this.wep_arm_rot = 0;
}
this.p_main.p_wep_arm._rotation = this.wep_arm_rot;
this.p_main.p_head._rotation = this.p_head_rot;
this.p_main.p_wep_arm._x = this.p_main.wep_arm_pos._x;
this.p_main.p_wep_arm._y = this.p_main.wep_arm_pos._y;
this.p_main.p_head._x = this.p_main.head_pos._x;
this.p_main.p_head._y = this.p_main.head_pos._y;
if ((((this.anime_flg != 9) && (this.anime_flg != 95)) && (this.anime_flg != 10)) && (this.anime_flg != 11)) {
if (_root.p_dmg_flg != 1) {
if ((_root.shot_flg == 1) && (_root.shot_able == 1)) {
if (_root.shop_wep[_root.p_weps] == 2) {
this.anime_flg = 10;
}
if (_root.shop_weps[_root.p_weps] != 2) {
if (this.p_main.p_wep_arm.p_weparm._currentframe == 1) {
this.p_main.p_wep_arm.p_weparm.gotoAndPlay(2);
}
}
}
}
}
this.p_main.p_wep_arm.gotoAndStop(_root.p_weps);
this.p_main.p_wep_arm.p_weparm.weparm_h.gotoAndStop(1);
this.p_main.p_wep_arm.p_weparm.weparm_s.gotoAndStop(1);
this.p_main.p_wep_blade.gotoAndStop(_root.p_weps - 39);
_root.anime_flg = this.anime_flg;
_root.jump_flg = this.jump_flg;
}
this.anime_flg = 6;
this.jump_flg = 1;
this.dash_cnt = 0;
this.tlg = 0;
this.efct = 0;
this.jump_pw = 0;
this.flying_flg = 0;
this.flying_tlg = 0;
this.flying_cnt = 0;
this.jump_tlg = 0;
function efct_script() {
if (_root.efct_switch == 1) {
if (this.jump_flg == 0) {
if ((this.p_main._currentframe >= 125) && (134 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 150) && (159 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
if ((this.p_main._currentframe >= 141) && (150 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if ((this.p_main._currentframe >= 166) && (175 >= this.p_main._currentframe)) {
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(20) + 50, random(20) + 50);
}
if (((this.p_main._currentframe >= 125) && (175 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
efct++;
if (3 < this.efct) {
efct = 0;
_root.root.efct_box.efct_dash01(_root.p_pos_x, _root.p_pos_y, -(_root.p_mov_x * 4), Math.abs(_root.p_mov_x * 3));
}
}
}
if ((this.p_main._currentframe >= 180) && (220 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 0) && (60 >= this.p_main._currentframe)) && (5 < Math.abs(_root.p_mov_x))) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if (((this.p_main._currentframe >= 291) && (315 >= this.p_main._currentframe)) && (_root.p_mov_x != 0)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01(_root.p_pos_x, _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((this.p_main._currentframe >= 391) && (400 >= this.p_main._currentframe)) {
if (this.jump_flg == 0) {
efct++;
if (3 < efct) {
efct = 0;
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(50) + 50, random(50) + 50);
}
}
}
if ((((this.p_main._currentframe == 75) || (this.p_main._currentframe == 85)) || (this.p_main._currentframe == 105)) || (this.p_main._currentframe == 115)) {
if (this.jump_flg == 0) {
_root.root.efct_box.efct_jump01((_root.p_pos_x + 20) - random(40), _root.p_pos_y, random(20) + 20, random(20) + 20);
}
}
}
}
function field_hit() {
this.hitflg_side = 0;
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_l)) {
_root.area_over = 1;
} else if (this.p_hit_side.hitTest(_root.root.bg_box.field.areaover_r)) {
_root.area_over = 1;
} else {
_root.area_over = 0;
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[1] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[1]) {
_root.p_pos_x = Math.round(_root.ground_left[1] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[1] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[1]) {
_root.p_pos_y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[2] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[2]) {
_root.p_pos_x = Math.round(_root.ground_left[2] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[2] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[2]) {
_root.p_pos_y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[3] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[3]) {
_root.p_pos_x = Math.round(_root.ground_left[3] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[3] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[3]) {
_root.p_pos_y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[4] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[4]) {
_root.p_pos_x = Math.round(_root.ground_left[4] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[4] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[4]) {
_root.p_pos_y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[5] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[5]) {
_root.p_pos_x = Math.round(_root.ground_left[5] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[5] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[5]) {
_root.p_pos_y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[6] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[6]) {
_root.p_pos_x = Math.round(_root.ground_left[6] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[6] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[6]) {
_root.p_pos_y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[7] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[7]) {
_root.p_pos_x = Math.round(_root.ground_left[7] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[7] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[7]) {
_root.p_pos_y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[8] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[8]) {
_root.p_pos_x = Math.round(_root.ground_left[8] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[8] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[8]) {
_root.p_pos_y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_x[90] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[90] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[90]) {
_root.p_pos_x = Math.round(_root.ground_left[90] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit90)) {
if (_root.ground_cent_y[90] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[90] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[90]) {
_root.p_pos_y = _root.ground_up[90];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_x[91] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[91] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[91]) {
_root.p_pos_x = Math.round(_root.ground_left[91] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit91)) {
if (_root.ground_cent_y[91] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[91] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[91]) {
_root.p_pos_y = _root.ground_up[91];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_x[92] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[92] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 3;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[92]) {
_root.p_pos_x = Math.round(_root.ground_left[92] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit92)) {
if (_root.ground_cent_y[92] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[92] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[92]) {
_root.p_pos_y = _root.ground_up[92];
this.hitflg_tall = 1;
}
}
if (this.p_hit_side.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_x[93] < _root.p_pos_x) {
_root.p_pos_x = Math.round(_root.ground_right[93] + (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = 1;
} else if (_root.p_pos_x < _root.ground_cent_x[93]) {
_root.p_pos_x = Math.round(_root.ground_left[93] - (((this.p_hit_side._xscale / 2) * this._xscale) / 100)) + 2;
this.hitflg_side = -1;
}
} else if (this.p_hit_tall.hitTest(_root.root.bg_box.field.ground_hit93)) {
if (_root.ground_cent_y[93] < _root.p_pos_y) {
_root.p_pos_y = _root.ground_down[93] + this.p_hit_tall._yscale;
this.hitflg_tall = -1;
} else if (_root.p_pos_y < _root.ground_cent_y[93]) {
_root.p_pos_y = _root.ground_up[93];
this.hitflg_tall = 1;
}
}
}
function result() {
if (100 < _root.p_mov_x) {
_root.p_mov_x = 100;
}
if (_root.p_mov_x < -100) {
_root.p_mov_x = -100;
}
if (this.hitflg_side == 1) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < _root.p_mov_y) {
_root.p_mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (_root.p_mov_y < 0) {
_root.p_mov_y = 0;
}
}
this.p_hit_tall._y = _root.p_mov_y - 15;
this.p_hit_tall._x = (-_root.p_mov_x) / 2;
if (20 < this.p_hit_tall._x) {
this.p_hit_tall._x = 20;
}
if (this.p_hit_tall._x < -20) {
this.p_hit_tall._x = -20;
}
if (50 < this.p_hit_tall._y) {
this.p_hit_tall._y = 50;
}
if (this.p_hit_tall._y < -50) {
this.p_hit_tall._y = -50;
}
this.p_hit_side._x = _root.p_mov_x;
this.p_hit_side._y = (-_root.p_mov_y) - 15;
if (this.p_hit_side._y < -40) {
this.p_hit_side._y = -40;
}
if (_root.efct_bg_flg == 2) {
_root.p_mov_x = (_root.p_mov_x / 10) * 9;
}
_root.p_pos_x = _root.p_pos_x + _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y + _root.p_mov_y;
}
Symbol 490 MovieClip [player01] Frame 2
this.main_script();
this.efct_script();
this.field_hit();
this.result();
_root.hitflg = _root.ground_left[2];
Symbol 490 MovieClip [player01] Frame 3
this.gotoAndPlay(2);
Symbol 497 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 497 MovieClip Frame 9
_parent.removeMovieClip();
Symbol 497 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 500 MovieClip [p_shot_rg] Frame 1
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 3;
}
}
if (this.hit_flg == 3) {
this.m_x = 0;
this.m_y = 0;
this.spd = 0;
this.yscale = (this.xscale = this.xscale / 5);
this.rot = this.rot + (random(90) - 45);
this.p_shot_main.gotoAndPlay(15);
this.hit_flg = 9;
}
}
function main_script() {
this.alpha = 100;
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core3)) {
if ((this.m_y < 0) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core2)) {
if ((0 < this.m_y) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this.atk = this.atk - 1;
}
}
if (0 >= this.atk) {
this.hit_flg = 1;
i = 30;
}
i++;
}
if (this.hit_flg == 0) {
if (_root.efct_switch == 1) {
if (20 < this.atk) {
_root.root.efct_box.efct_sw01(efct_x, efct_y, thi.atk + 10, thi.atk + 50, this.rot);
_root.root.efct_box.efct_rg01(efct_x, efct_y, 200, 100, this.rot);
}
}
this.time++;
if (20 < this.time) {
this.removeMovieClip();
}
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
} else if (this.hit_flg == 1) {
this.hit_flg = 9;
_root.root.efct_box.efct_sw02(efct_x, efct_y, thi.atk + 4, (thi.atk * 5) + 20, this.rot);
this.spd = 0;
this.rot = this.rot + (15 - random(30));
this.xscale = this.atk + 50;
this.yscale = this.atk + 50;
this.removeMovieClip();
}
if (this.hit_flg != 0) {
this._x = this._x - _root.p_mov_x;
this._y = this._y - _root.p_mov_y;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
efct_x = (_root.root.p_box._x - _root.root.pos_box._x) + this._x;
efct_y = (_root.root.p_box._y - _root.root.pos_box._y) + this._y;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
efct_x = (_root.root.p_box._x - _root.root.pos_box._x) + this._x;
efct_y = (_root.root.p_box._y - _root.root.pos_box._y) + this._y;
this.alpha = 0;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this.ftbs = 30;
Symbol 500 MovieClip [p_shot_rg] Frame 2
this.field_hit();
this.main_script();
Symbol 500 MovieClip [p_shot_rg] Frame 3
this.gotoAndPlay(2);
Symbol 503 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 10
this.gotoAndPlay(5);
Symbol 503 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 506 MovieClip [p_shot_pb01] Frame 1
function main_script() {
if (this.hit_flg == 0) {
this.m_y = this.m_y + 1;
this._rotation = ((-Math.atan2(this.m_x, this.m_y)) / (Math.PI/180)) + 90;
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.gnd_flg = 1;
}
if (this.pb_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.gnd_flg = 1;
}
if (this.gnd_flg == 1) {
this.gnd_flg = 2;
this.pb_main.gotoAndPlay(5);
this.m_x = 0;
this.m_y = 0;
this.hit_flg = 1;
}
i = 0;
while (10 >= i) {
if (this.pb_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
this.pb_main.gotoAndPlay(5);
this.num = _root.root.e_box["enemy" + i].num;
_root.root.e_box["enemy" + i].dmg = this.atk;
this.m_x = 0;
this.m_y = 0;
this.hit_flg = 2;
i = 20;
}
i++;
}
}
if (this.hit_flg != 2) {
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
} else if (this.hit_flg == 2) {
if (0 >= _root.root.e_box["enemy" + this.num].hp) {
this.time = 60;
this.hit_flg = 3;
}
this._x = this._x + (_root.root.e_box["enemy" + this.num].mov_x - _root.p_mov_x);
this._y = this._y + (_root.root.e_box["enemy" + this.num].mov_y - _root.p_mov_y);
}
if (60 >= this.time) {
this.time++;
}
if ((60 < this.time) && (this.pb_main._currentframe < 15)) {
this.pb_main.gotoAndPlay(15);
}
if ((15 < this.pb_main._currentframe) && (30 >= this.pb_main._currentframe)) {
if (_root.efct_switch == 1) {
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 25) - random(50);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 25) - random(50);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 60, 60);
}
}
if (this.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = 15;
}
}
i = 0;
while (10 >= i) {
if (this.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
this.m_x = 0;
this.m_y = 0;
this.hit_flg = 3;
}
i++;
}
}
}
this.hit_flg = 0;
this.efct_num = 0;
this.gnd_flg = 0;
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
Symbol 506 MovieClip [p_shot_pb01] Frame 2
this.main_script();
Symbol 506 MovieClip [p_shot_pb01] Frame 3
this.gotoAndPlay(2);
Symbol 513 MovieClip Frame 3
this.gotoAndPlay(1);
Symbol 513 MovieClip Frame 24
_parent.removeMovieClip();
Symbol 513 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 516 MovieClip [p_msl01] Frame 1
this.hit_flg = 0;
this.time = 0;
Symbol 516 MovieClip [p_msl01] Frame 2
if (this.hit_flg == 0) {
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
this.time++;
if (50 < this.time) {
this.hit_flg = 1;
}
if (spd < 20) {
spd++;
}
mov_x1 = Math.sin((-this.p_msl_main._rotation) * (Math.PI/180)) * spd;
mov_y1 = Math.cos((-this.p_msl_main._rotation) * (Math.PI/180)) * spd;
cnt++;
if (1 < cnt) {
cnt = 0;
if (mov_x1 < mov_x2) {
mov_x2 = mov_x2 - 2;
}
if (mov_x2 < mov_x1) {
mov_x2 = mov_x2 + 2;
}
if (mov_y1 < mov_y2) {
mov_y2 = mov_y2 - 1;
}
if (mov_y2 < mov_y1) {
mov_y2 = mov_y2 + 1;
}
}
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.msl_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
new Color(_root.root.e_box["enemy" + i]).setRGB(16777215);
_root.root.e_box["enemy" + i].c = 0;
_root.root.e_box["enemy" + i].hp = _root.root.e_box["enemy" + i].hp - this.atk;
_root.e_hp = _root.root.e_box["enemy" + i].hp;
_root.e_hp_max = _root.root.e_box["enemy" + i].hp_max;
this.hit_flg = 1;
}
}
if (this.hitTest(_root.root.e_efct_box["e_msl" + i]) && (_root.root.e_efct_box["e_msl" + i].hit_flg == 0)) {
_root.combo_counter.combo(5);
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this._xscale = 50;
this._yscale = 50;
this._rotation = this._rotation + (150 + random(60));
this.p_shot01_main.gotoAndPlay(5);
this.hit_flg = 1;
}
i++;
}
tgt_x = ((_root.p_sight._x - _root.root._x) + 200) - this._x;
tgt_y = ((_root.p_sight._y - _root.root._y) + 150) - this._y;
this.p_msl_main._rotation = (-Math.atan2(tgt_x, tgt_y)) / (Math.PI/180);
}
if (this.hit_flg == 1) {
this.p_msl_main.gotoAndPlay(5);
this.hit_flg = 2;
mov_x2 = 0;
mov_y2 = 0;
}
if (this.hit_flg == 3) {
this.p_msl_main._rotation = 0;
this.p_msl_main.gotoAndPlay(5);
this.hit_flg = 2;
mov_x2 = 0;
mov_y2 = 0;
}
this._x = this._x + (this.mov_x2 - _root.p_mov_x);
this._y = this._y + (this.mov_y2 - _root.p_mov_y);
Symbol 516 MovieClip [p_msl01] Frame 3
this.gotoAndPlay(2);
Symbol 521 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 521 MovieClip Frame 9
_parent.removeMovieClip();
Symbol 521 MovieClip Frame 18
_parent.removeMovieClip();
Symbol 522 MovieClip [p_shot_mg] Frame 1
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 3;
}
}
if (this.hit_flg == 3) {
this.m_x = 0;
this.m_y = 0;
this.spd = 0;
this.xscale = 100;
this.yscale = 100;
this.rot = this.rot + (random(90) - 45);
this.p_shot_main.gotoAndPlay(15);
this.hit_flg = 9;
}
}
function main_script() {
this._alpha = 100;
if (this.hit_flg == 0) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core3)) {
if ((this.m_y < 0) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + (this.atk * 3);
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core2)) {
if ((0 < this.m_y) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + (this.atk * 3);
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = _root.root.e_box["enemy" + i].dmg + this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this.atk = this.atk - 1;
}
}
if (0 >= this.atk) {
this.hit_flg = 1;
i = 30;
}
i++;
}
this.time++;
if (10 < this.time) {
this.removeMovieClip();
}
}
if (this.hit_flg == 1) {
this.spd = 0;
this.rot = this.rot + (15 - random(30));
this.xscale = 100;
this.yscale = 100;
this.p_shot_main.gotoAndPlay(5);
this.hit_flg = 9;
}
if (this.hit_flg != 0) {
this._x = this._x - _root.p_mov_x;
this._y = this._y - _root.p_mov_y;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.hit_flg = 0;
this._alpha = 0;
this.ftbs = 20;
Symbol 522 MovieClip [p_shot_mg] Frame 2
this.field_hit();
this.main_script();
Symbol 522 MovieClip [p_shot_mg] Frame 3
this.gotoAndPlay(2);
Symbol 526 MovieClip [p_hb_chains] Frame 1
this._x = _root.root.p_box.player._x;
this._y = _root.root.p_box.player._y - 20;
this.chain_pos_x = _root.p_hb_pos_x - _root.root.p_box.player._x;
this.chain_pos_y = _root.p_hb_pos_y - _root.root.p_box.player._y;
this.p_hb_chain1._x = this.chain_pos_x / 6;
this.p_hb_chain1._y = this.chain_pos_y / 6;
this.p_hb_chain2._x = (this.chain_pos_x / 6) * 2;
this.p_hb_chain2._y = (this.chain_pos_y / 6) * 2;
this.p_hb_chain3._x = (this.chain_pos_x / 6) * 3;
this.p_hb_chain3._y = (this.chain_pos_y / 6) * 3;
this.p_hb_chain4._x = (this.chain_pos_x / 6) * 4;
this.p_hb_chain4._y = (this.chain_pos_y / 6) * 4;
this.p_hb_chain5._x = (this.chain_pos_x / 6) * 5;
this.p_hb_chain5._y = (this.chain_pos_y / 6) * 5;
this._alpha = 0;
Symbol 526 MovieClip [p_hb_chains] Frame 2
this._x = _root.root.p_box.player._x;
this._y = _root.root.p_box.player._y - 20;
this.p_hb_chain1._x = _root.chain_pos_x / 6;
this.p_hb_chain1._y = _root.chain_pos_y / 6;
this.p_hb_chain2._x = (_root.chain_pos_x / 6) * 2;
this.p_hb_chain2._y = (_root.chain_pos_y / 6) * 2;
this.p_hb_chain3._x = (_root.chain_pos_x / 6) * 3;
this.p_hb_chain3._y = (_root.chain_pos_y / 6) * 3;
this.p_hb_chain4._x = (_root.chain_pos_x / 6) * 4;
this.p_hb_chain4._y = (_root.chain_pos_y / 6) * 4;
this.p_hb_chain5._x = (_root.chain_pos_x / 6) * 5;
this.p_hb_chain5._y = (_root.chain_pos_y / 6) * 5;
if (_root.hb_flg == 0) {
this.removeMovieClip();
}
Symbol 526 MovieClip [p_hb_chains] Frame 3
this._alpha = 100;
this.gotoAndPlay(2);
Symbol 528 MovieClip [p_shot_hb] Frame 1
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 9;
this.spd = -5;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 9;
this.spd = -5;
}
}
}
function main_script() {
if (0 < this.spd) {
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
}
_root.chain_pos_x = this._x - _root.root.p_box.player._x;
_root.chain_pos_y = (this._y - _root.root.p_box.player._y) + 20;
if (0 >= this.spd) {
if (this.hitTest(_root.root.p_box.player.p_hit_area)) {
_root.hb_flg = 0;
this.removeMovieClip();
}
tgt_x = _root.root.p_box.player._x - this._x;
tgt_y = (_root.root.p_box.player._y - 20) - this._y;
this.rot = -((Math.atan2(tgt_x, tgt_y) / (Math.PI/180)) + 90);
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
}
_root.shot_able = 0;
if (0 < this.spd) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core3)) {
if ((this.m_y < 0) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
if (0 < this._atk) {
this.atk = this.atk - 5;
}
this.spd = -20;
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core2)) {
if ((0 < this.m_y) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
if (0 < this._atk) {
this.atk = this.atk - 5;
}
this.spd = -20;
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
if (0 < this._atk) {
this.atk = this.atk - 5;
}
this.spd = -20;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this.atk = this.atk - 1;
}
}
i++;
}
}
if (0 >= this.spd) {
i = 0;
while (20 >= i) {
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk / 5;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this.atk = this.atk - 1;
}
}
i++;
}
}
if (-60 < this.spd) {
this.spd = this.spd - 2;
}
}
this.mouse_x1 = _root.p_sight._x;
this.mouse_y1 = _root.p_sight._y;
this.jump_flg = 1;
this.mov_x = 0;
this.mov_y = 0;
long_player_x = 0;
long_player_y = 0;
this.hit_flg = 0;
this.atk_flg = 0;
_root.hb_flg = 1;
this.mouse_x1 = _root.p_sight._x;
this.mouse_y1 = _root.p_sight._y;
Symbol 528 MovieClip [p_shot_hb] Frame 2
this.field_hit();
this.main_script();
Symbol 528 MovieClip [p_shot_hb] Frame 3
this.gotoAndPlay(2);
Symbol 532 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 532 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 533 MovieClip [p_shot_gr] Frame 1
function main_script() {
if (this.hit_flg == 0) {
if (this.m_y < 30) {
this.m_y = this.m_y + 1;
}
this.rot = ((-Math.atan2(this.m_x, this.m_y)) / (Math.PI/180)) + 90;
this.p_shot_main._rotation = this.rot;
i = 0;
while (20 >= i) {
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
this.hit_flg = 1;
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
i = 21;
}
i++;
}
if (60 >= this.time) {
this.time++;
}
if (60 < this.time) {
this.hit_flg = 1;
}
if (this.hit_flg == 1) {
this.hit_flg = 2;
this.p_shot_main.gotoAndPlay(5);
}
} else if (this.hit_flg == 2) {
this.m_y = 0;
this.m_x = 0;
if (_root.efct_switch == 1) {
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
bom_x = (((_root.root.p_box._x - _root.root.pos_box._x) + this._x) + 25) - random(50);
bom_y = (((_root.root.p_box._y - _root.root.pos_box._y) + this._y) + 25) - random(50);
_root.root.efct_box.efct_bom01(bom_x, bom_y, 60, 60);
}
}
if (this.shot_core.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = 15;
}
}
i = 0;
while (20 >= i) {
if (this.shot_core2.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
i++;
}
}
this.hitarea_side._x = this.m_x / 2;
this.hitarea_tall._y = this.m_y / 2;
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
}
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
this.time = 0;
this.hit_flg = 0;
function field_hit() {
if (this.hit_flg == 0) {
this.hitflg_side = 0;
this.hitflg_tall = 0;
if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
} else if (this.hitarea_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (this.m_x >= 0) {
this.hitflg_side = 1;
} else if (this.m_x < 0) {
this.hitflg_side = -1;
}
}
if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
} else if (this.hitarea_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (this.m_y >= 0) {
this.hitflg_tall = 1;
} else if (this.m_y < 0) {
this.hitflg_tall = -1;
}
}
if (this.hitflg_side == 1) {
this.m_x = -Math.abs(this.m_x);
}
if (this.hitflg_side == -1) {
this.m_x = Math.abs(this.m_x);
}
if (this.hitflg_tall == 1) {
this.m_y = -Math.abs(this.m_y);
}
if (this.hitflg_tall == -1) {
this.m_y = Math.abs(this.m_y);
}
}
}
Symbol 533 MovieClip [p_shot_gr] Frame 2
this.field_hit();
this.main_script();
Symbol 533 MovieClip [p_shot_gr] Frame 3
this.gotoAndPlay(2);
Symbol 540 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 540 MovieClip Frame 20
_parent.removeMovieClip();
_parent.removeMovieClip();
Symbol 540 MovieClip Frame 40
_parent.removeMovieClip();
_parent.removeMovieClip();
Symbol 541 MovieClip [p_shot_bz] Frame 1
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 3;
}
}
if (this.hit_flg == 3) {
this.m_x = 0;
this.m_y = 0;
this.spd = 0;
this.spd2 = 0;
this.xscale = 100;
this.yscale = 100;
this.rot = 0;
this.p_shot_main.gotoAndPlay(5);
this.hit_flg = 9;
}
}
function main_script() {
this._alpha = 100;
if (this.hit_flg == 0) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core3)) {
if ((this.m_y < 0) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
_root.root.e_box["enemy" + i].dmg_flg = 2;
this.hit_flg = 1;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
this.hit_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core2)) {
if ((0 < this.m_y) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
_root.root.e_box["enemy" + i].dmg_flg = 2;
this.hit_flg = 1;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
this.hit_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
this.hit_flg = 1;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
i++;
}
this.time++;
if (60 < this.time) {
this.hit_flg = 1;
}
if (this.spd2 < this.spd) {
this.spd2 = this.spd2 + (this.spd / 20);
}
}
if (this.hit_flg == 1) {
this.spd = 0;
this.spd2 = 0;
this.rot = 0;
this.xscale = 100;
this.yscale = 100;
this.p_shot_main.gotoAndPlay(5);
this.hit_flg = 9;
}
if (this.hit_flg != 0) {
if (this.p_shot_main.bom_area.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = this.atk / 10;
}
}
i = 0;
while (20 >= i) {
if (this.p_shot_main.bom_area.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = Math.abs(this.atk / 5);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
if (this.p_shot_main.bom_area.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
i++;
}
this.m_x = 0;
this.m_y = 0;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd2;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd2;
this._x = this._x + (this.m_x - _root.p_mov_x);
this._y = this._y + (this.m_y - _root.p_mov_y);
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
this.spd2 = 10;
this.time = 0;
this.m_x = Math.cos(this.rot * (Math.PI/180)) * 80;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * 80;
this.p_shot_main._rotation = this.rot;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this._alpha = 0;
Symbol 541 MovieClip [p_shot_bz] Frame 2
this.field_hit();
this.main_script();
Symbol 541 MovieClip [p_shot_bz] Frame 3
this.gotoAndPlay(2);
Symbol 544 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 544 MovieClip Frame 12
_parent.removeMovieClip();
Symbol 544 MovieClip Frame 22
_parent.removeMovieClip();
Symbol 545 MovieClip [p_shot_br] Frame 1
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 3;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 3;
}
}
if (this.hit_flg == 3) {
this.m_x = 0;
this.m_y = 0;
this.spd = 0;
this.xscale = 100;
this.yscale = 100;
this.rot = this.rot + (random(90) - 45);
this.p_shot_main.gotoAndPlay(15);
this.hit_flg = 9;
}
}
function main_script() {
this._alpha = 100;
if (this.hit_flg == 0) {
i = 0;
while (20 >= i) {
if (0 < _root.root.e_box["enemy" + i].hp) {
if (this.m_x >= 0) {
_root.root.e_box["enemy" + i].hit_mov_x = this.ftbs;
} else if (this.m_x < 0) {
_root.root.e_box["enemy" + i].hit_mov_x = -this.ftbs;
}
_root.root.e_box["enemy" + i].hit_mov_y = -this.ftbs;
if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core3)) {
if ((this.m_y < 0) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core2)) {
if ((0 < this.m_y) && (Math.abs(this.m_y) >= Math.abs(this.m_x))) {
_root.root.e_box["enemy" + i].dmg = this.atk * 3;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 2;
} else {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.shot_core.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.e_box["enemy" + i].dmg = this.atk;
this.atk = this.atk - (_root.root.e_box["enemy" + i].hp / 3);
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
if (this.shot_core.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
this.atk = this.atk - 1;
}
}
if (0 >= this.atk) {
i = 21;
this.hit_flg = 1;
}
i++;
}
this.time++;
if (10 < this.time) {
this.removeMovieClip();
}
}
if (this.hit_flg == 1) {
this.spd = 0;
this.rot = this.rot + (15 - random(30));
this.xscale = 100;
this.yscale = 100;
this.p_shot_main.gotoAndPlay(5);
this.hit_flg = 9;
}
if (this.hit_flg != 0) {
this._x = this._x - _root.p_mov_x;
this._y = this._y - _root.p_mov_y;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this.p_shot_main._xscale = this.xscale;
this.p_shot_main._yscale = this.yscale;
this.p_shot_main._rotation = this.rot;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.hit_flg = 0;
this._alpha = 0;
Symbol 545 MovieClip [p_shot_br] Frame 2
this.field_hit();
this.main_script();
Symbol 545 MovieClip [p_shot_br] Frame 3
this.gotoAndPlay(2);
Symbol 549 MovieClip [p_shadow] Frame 1
if ((_root.ground_left[2] < _root.p_pos_x) && (_root.p_pos_x < _root.ground_right[2])) {
this.gnd_flg = 2;
} else {
this.gnd_flg = 1;
}
this._x = _root.root.p_box.player._x;
if (this.gnd_flg == 1) {
this._y = (_root.root.bg_box._y - _root.root.p_box._y) + _root.root.bg_box.ground._y;
} else if (this.gnd_flg == 2) {
this._y = (_root.root.bg_box._y - _root.root.p_box._y) + _root.ground_up[2];
}
this._alpha = 100 - ((this._y - _root.root.p_box.player._y) / 2);
if ((100 - ((this._y - _root.root.p_box.player._y) / 2)) < 0) {
this._alpha = 0;
}
Symbol 549 MovieClip [p_shadow] Frame 2
this.gotoAndPlay(1);
Symbol 552 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 553 MovieClip [p_beam01] Frame 1
function main_script() {
if (1000 >= this._xscale) {
this._xscale = this._xscale + 100;
}
if (0 < _root.p_bp) {
_root.p_bp = _root.p_bp - 15;
i = 0;
while (20 >= i) {
if (_root.root.e_box["enemy" + i].dmg_flg == 0) {
if (this.p_shot_core1.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.p_shot_core2.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.p_shot_core3.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
} else if (this.p_shot_core4.hitTest(_root.root.e_box["enemy" + i].e_core)) {
if (0 < _root.root.e_box["enemy" + i].hp) {
_root.root.e_box["enemy" + i].dmg = this.atk;
_root.root.e_box["enemy" + i].dmg_flg = 1;
}
}
}
if (this.p_shot_core1.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
if (this.p_shot_core2.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
if (this.p_shot_core3.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
if (this.p_shot_core4.hitTest(_root.root.e_efct_box["e_msl" + i].msl_core)) {
if (_root.root.e_efct_box["e_msl" + i].hit_flg == 0) {
_root.root.e_efct_box["e_msl" + i].hit_flg = 5;
}
}
i++;
}
}
}
Symbol 553 MovieClip [p_beam01] Frame 2
this.main_script();
Symbol 553 MovieClip [p_beam01] Frame 3
this.gotoAndPlay(2);
Symbol 555 MovieClip [msl_mark] Frame 1
this._x = _root.root.p_box.player._x;
this._y = _root.root.p_box.player._y - 20;
msl_x = _root.root.e_efct_box["e_msl" + this.num]._x;
msl_y = _root.root.e_efct_box["e_msl" + this.num]._y;
if (_root.root.e_efct_box["e_msl" + this.num].hit != 0) {
this.removeMovieClip();
}
this._rotation = Math.atan2(msl_x - _root.p_pos_x, (_root.p_pos_y - 20) - msl_y) / (Math.PI/180);
Symbol 555 MovieClip [msl_mark] Frame 2
this._x = _root.root.p_box.player._x;
this._y = _root.root.p_box.player._y - 20;
msl_x = _root.root.e_efct_box["e_msl" + this.num]._x;
msl_y = _root.root.e_efct_box["e_msl" + this.num]._y;
if (_root.root.e_efct_box["e_msl" + this.num].hit != 0) {
this.removeMovieClip();
}
this._rotation = Math.atan2(msl_x - _root.p_pos_x, (_root.p_pos_y - 20) - msl_y) / (Math.PI/180);
this.gotoAndPlay(1);
Symbol 560 MovieClip [m_20] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 200;
this._yscale = 200;
_root.efct_bg_flg = 0;
_root.field_flg = 3;
_root.sky_flg = 5;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 560 MovieClip [m_20] Frame 2
if (_root.mission_phase == 1) {
if (_root.boss_destroy_flg >= 1) {
if (_root.custom_bonus == 6) {
_root.mission_able[21] = 1;
}
_root.screen_flg = 1;
_root.game_flg = 3;
_root.mission_phase = 90;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
_root.logo_warning();
if (this.e_num_local == 0) {
this.e_num_local = 1;
if (_root.custom_bonus == 6) {
_root.root.e_box.e_boss04(2000, 1, 1500, 150);
}
if (_root.custom_bonus < 6) {
_root.root.e_box.e_boss04(1000, 1, 1500, 150);
}
}
} else if (_root.warning_flg == 1) {
if (_root.root.e_box.enemy1.atk_flg == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat3");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.enemy1.atk_flg = 1;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 560 MovieClip [m_20] Frame 3
gotoAndPlay (2);
Symbol 567 MovieClip [m_19] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
this.efct_bg_cnt = random(8);
_root.efct_bg_flg = 1;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.field_flg = 2;
_root.sky_flg = 4;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 567 MovieClip [m_19] Frame 2
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
if (3 < _root.custom_bonus) {
_root.root.e_box.e_armor02(300, 4, 1);
}
if (3 >= _root.custom_bonus) {
_root.root.e_box.e_armor02(500, 4, 1);
}
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
}
if (_root.boss_destroy_flg >= 1) {
if ((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 2;
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if (_root.mission_phase == 2) {
_root.mission_phase = 10;
if (_root.custom_bonus == 6) {
_root.root.e_box.e_armor02(300, 4, 5);
_root.root.e_box.e_armor02(300, 2, 6);
_root.root.e_box.e_armor02(300, 3, 7);
} else {
_root.root.e_box.e_armor02(150, 4, 5);
_root.root.e_box.e_armor01(150, 2, 6);
_root.root.e_box.e_armor01(150, 3, 7);
}
_root.root.e_box.enemy5._x = _root.p_pos_x;
_root.root.e_box.enemy6._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy7._x = _root.p_pos_x - 1500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 4) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
if (_root.custom_bonus == 6) {
_root.shop_armor[10] = 2;
}
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 567 MovieClip [m_19] Frame 3
this.gotoAndPlay(2);
Symbol 575 MovieClip [m_11] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
this.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 3;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 575 MovieClip [m_11] Frame 2
this.e_hp = 1 + (_root.custom_bonus / 3);
if (_root.boss_destroy_flg >= 15) {
_root.screen_flg = 1;
_root.game_flg = 3;
_root.mission_phase = 90;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
if ((_root.warning_flg == 0) && (this.warning_flg == 0)) {
this.warning_flg = 1;
_root.logo_warning();
} else if (_root.warning_flg == 1) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_title");
mu_bgm.start(0, 999);
mu_bgm.setVolume(70);
this.e_num_local = 1;
_root.root.e_box.e_boss01(100 * this.e_hp, 1);
_root.root.e_box.e_boss01(100 * this.e_hp, 2);
_root.root.e_box.e_boss01(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 500;
_root.root.e_box.enemy2._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x + 2500;
}
}
if ((_root.boss_destroy_flg >= 3) && (this.e_num_local == 1)) {
this.e_num_local = 2;
}
if ((_root.boss_destroy_flg >= 6) && (this.e_num_local == 3)) {
this.e_num_local = 4;
}
if ((_root.boss_destroy_flg >= 9) && (this.e_num_local == 5)) {
this.e_num_local = 6;
}
if ((_root.boss_destroy_flg >= 12) && (this.e_num_local == 7)) {
this.e_num_local = 8;
}
if (this.e_num_local == 2) {
_root.root.e_box.e_boss02(100 * this.e_hp, 1);
_root.root.e_box.e_boss02(100 * this.e_hp, 2);
_root.root.e_box.e_boss02(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x + 2500;
this.e_num_local = 3;
}
if (this.e_num_local == 4) {
_root.root.e_box.e_boss03(100 * this.e_hp, 1);
_root.root.e_box.e_boss03(100 * this.e_hp, 2);
_root.root.e_box.e_boss03(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 2500;
_root.root.e_box.enemy3._x = _root.p_pos_x - 1500;
this.e_num_local = 5;
}
if (this.e_num_local == 6) {
_root.root.e_box.e_boss01(100 * this.e_hp, 1);
_root.root.e_box.e_boss02(100 * this.e_hp, 2);
_root.root.e_box.e_boss03(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 2500;
_root.root.e_box.enemy3._x = _root.p_pos_x - 1500;
this.e_num_local = 7;
}
if (this.e_num_local == 8) {
_root.root.e_box.e_boss01(200 * this.e_hp, 1);
_root.root.e_box.e_boss02(200 * this.e_hp, 2);
_root.root.e_box.e_boss03(200 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 2500;
_root.root.e_box.enemy3._x = _root.p_pos_x - 1500;
this.e_num_local = 9;
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = (_root.p_pos_x / 30) + 150;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 575 MovieClip [m_11] Frame 3
this.gotoAndPlay(2);
Symbol 582 MovieClip [m_10] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1000;
this._yscale = 500;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 582 MovieClip [m_10] Frame 2
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
if (3 < _root.custom_bonus) {
_root.root.e_box.e_boss03(300, 1);
}
if (3 >= _root.custom_bonus) {
_root.root.e_box.e_boss03(500, 1);
}
_root.root.e_box.enemy1._x = _root.p_pos_x + 2000;
}
if (_root.boss_destroy_flg >= 1) {
if (((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.custom_bonus < 4)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 2;
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if (_root.mission_phase == 2) {
_root.mission_phase = 10;
_root.root.e_box.e_boss02(100, 5);
_root.root.e_box.e_boss03(100, 6);
_root.root.e_box.e_boss03(100, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x;
_root.root.e_box.enemy6._x = _root.p_pos_x - 500;
_root.root.e_box.enemy7._x = _root.p_pos_x + 500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 4) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 582 MovieClip [m_10] Frame 3
this.gotoAndPlay(2);
Symbol 584 MovieClip [m_09] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1000;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 584 MovieClip [m_09] Frame 2
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
if (_root.custom_bonus < 3) {
_root.root.e_box.e_boss02(300, 1);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1000;
_root.root.e_box.enemy1._y = 0;
}
if (_root.custom_bonus >= 3) {
_root.root.e_box.e_boss02(500, 1);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1000;
_root.root.e_box.enemy1._y = 0;
}
}
if (_root.boss_destroy_flg >= 1) {
if (((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.custom_bonus < 4)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 2;
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if (_root.mission_phase == 2) {
_root.mission_phase = 10;
_root.root.e_box.e_boss02(150, 6);
_root.root.e_box.e_boss02(150, 7);
_root.root.e_box.enemy6._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy7._x = _root.p_pos_x + 1500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 3) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 584 MovieClip [m_09] Frame 3
this.gotoAndPlay(2);
Symbol 585 MovieClip [m_08] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 585 MovieClip [m_08] Frame 2
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
_root.root.e_box.enemy1._x = _root.p_pos_x - 1500;
if (_root.custom_bonus < 5) {
_root.root.e_box.e_boss01(200, 1);
_root.root.e_box.e_boss01(200, 2);
_root.root.e_box.e_boss01(200, 3);
}
if (_root.custom_bonus >= 5) {
_root.root.e_box.e_boss01(600, 1);
_root.root.e_box.e_boss01(600, 2);
_root.root.e_box.e_boss01(600, 3);
}
_root.root.e_box.enemy1._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x + 2500;
}
if (_root.boss_destroy_flg >= 3) {
if ((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 2;
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if (_root.mission_phase == 2) {
_root.mission_phase = 10;
_root.root.e_box.e_boss01(100, 5);
_root.root.e_box.e_boss01(100, 6);
_root.root.e_box.e_boss02(200, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy6._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy7._x = _root.p_pos_x;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 6) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 585 MovieClip [m_08] Frame 3
this.gotoAndPlay(2);
Symbol 586 MovieClip [m_07] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 586 MovieClip [m_07] Frame 2
if (_root.mission_phase == 0) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
if (_root.custom_bonus < 3) {
_root.root.e_box.e_boss01(300, 1);
}
if ((_root.custom_bonus = 3)) {
_root.root.e_box.e_boss01(500, 1);
}
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
}
if (_root.boss_destroy_flg >= 1) {
if ((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 2;
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if (_root.mission_phase == 2) {
_root.mission_phase = 10;
_root.root.e_box.e_armor01(100, 1, 5);
_root.root.e_box.e_armor01(100, 2, 6);
_root.root.e_box.e_boss02(150, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy6._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy7._x = _root.p_pos_x;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 4) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 586 MovieClip [m_07] Frame 3
this.gotoAndPlay(2);
Symbol 587 MovieClip [m_06] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 587 MovieClip [m_06] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(8);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 10);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 10);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 6) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 7) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if (((50 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (3 < _root.custom_bonus)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss02(100, 5);
_root.root.e_box.e_boss03(100, 6);
_root.root.e_box.e_boss03(100, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x;
_root.root.e_box.enemy6._x = _root.p_pos_x + 2000;
_root.root.e_box.enemy7._x = _root.p_pos_x - 2000;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 3) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 587 MovieClip [m_06] Frame 3
this.gotoAndPlay(2);
Symbol 588 MovieClip [m_05] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
this.efct_bg_cnt = random(10);
if (this.efct_bg_cnt < _root.custom_bonus) {
_root.efct_bg_flg = 2;
} else {
_root.efct_bg_flg = 0;
}
_root.timemode = 0;
this._xscale = 1000;
this._yscale = 500;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 588 MovieClip [m_05] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(6);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 1) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 2) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if (((50 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (5 < _root.custom_bonus)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.ex_mission_flg = 10;
_root.root.e_box.e_boss02(100, 5);
_root.root.e_box.e_boss03(100, 6);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy6._x = _root.p_pos_x + 2000;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 2) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 588 MovieClip [m_05] Frame 3
this.gotoAndPlay(2);
Symbol 589 MovieClip [m_04] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 589 MovieClip [m_04] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(6);
this.e_hp = 15;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 6);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 6);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if (((50 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (4 < _root.custom_bonus)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.ex_mission_flg = 10;
_root.root.e_box.e_boss03(150, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 589 MovieClip [m_04] Frame 3
this.gotoAndPlay(2);
Symbol 590 MovieClip [m_03] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 590 MovieClip [m_03] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(4);
this.e_hp = 10;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 3);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 4);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp - 2, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_walker01(this.e_hp + 5, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if ((80 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.ex_mission_flg = 10;
_root.root.e_box.e_armor01(100, 1, 5);
_root.root.e_box.e_armor01(100, 2, 6);
_root.root.e_box.e_armor01(100, 3, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1000;
_root.root.e_box.enemy6._x = _root.p_pos_x + 1100;
_root.root.e_box.enemy7._x = _root.p_pos_x + 1200;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 3) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 590 MovieClip [m_03] Frame 3
this.gotoAndPlay(2);
Symbol 591 MovieClip [m_02] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 591 MovieClip [m_02] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(2);
this.e_hp = 10;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp, i, 2);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 4, i, 2);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if (((70 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.custom_bonus < 3)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss02(100, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 591 MovieClip [m_02] Frame 3
this.gotoAndPlay(2);
Symbol 592 MovieClip [m_01] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 592 MovieClip [m_01] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] != 1) {
this.e_num_local++;
e = random(2);
this.e_hp = 5;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp, i, 1);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 2, i, 1);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.destroy_num >= _root.tgt_destroy) {
if ((90 < Math.round((_root.p_hp / _root.a_max_main) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
_root.shop_wep[40] = 2;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss01(150, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x + 1500;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 592 MovieClip [m_01] Frame 3
this.gotoAndPlay(2);
Symbol 593 MovieClip [m_0] Frame 1
this.e_num_local = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.time = 0;
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 593 MovieClip [m_0] Frame 2
if (_root.destroy_num >= 20) {
_root.screen_flg = 1;
_root.game_flg = 3;
}
if ((30 < this.time) && (this.time < 100)) {
this.time = 120;
_root.display.tutorial();
} else if (50 >= this.time) {
this.time++;
}
i = 0;
while (2 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(4);
if (e == 0) {
_root.root.e_box.e_tank01(5, i, 1);
}
if (e == 1) {
_root.root.e_box.e_tank02(5, i, 1);
}
if (e == 2) {
_root.root.e_box.e_fly01(3, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(5, 1, i);
}
if (e == 4) {
_root.root.e_box.e_boss01(5, i);
}
if ((_root.p_pos_x >= 1000) && (_root.p_pos_x < 4000)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (_root.p_pos_x >= 4000) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
}
if (_root.p_pos_x < 1000) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (500 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (500 + random(1500));
}
}
}
i++;
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 593 MovieClip [m_0] Frame 3
this.gotoAndPlay(2);
Symbol 596 MovieClip [logo_warning] Frame 1
this.roop = 0;
Symbol 596 MovieClip [logo_warning] Frame 20
if (this.roop < 5) {
this.roop++;
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(21);
}
Symbol 596 MovieClip [logo_warning] Frame 30
_root.warning_flg = 1;
this.removeMovieClip();
Symbol 600 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 601 MovieClip [efct_wave01] Frame 1
if (_root.root.p_box.player.jump_flg == 0) {
if ((_root.root.p_box.player.anime_flg != 9) && (_root.root.p_box.player.anime_flg != 95)) {
if (this.hitTest(_root.root.p_box.player)) {
_root.hit_mov_y = -15;
_root.p_hp = _root.p_hp - this.atk;
_root.root.p_box.player.anime_flg = 9;
}
}
}
Symbol 601 MovieClip [efct_wave01] Frame 2
this.gotoAndPlay(1);
Symbol 602 MovieClip [efct_sw02] Frame 10
this.removeMovieClip();
Symbol 603 MovieClip [efct_sw01] Frame 10
this.removeMovieClip();
Symbol 614 MovieClip [efct_spark01] Frame 15
this.removeMovieClip();
Symbol 618 MovieClip [efct_slash01] Frame 8
this.removeMovieClip();
Symbol 620 MovieClip [efct_rg] Frame 7
this.removeMovieClip();
Symbol 624 MovieClip Frame 25
_parent._parent.removeMovieClip();
Symbol 627 MovieClip Frame 25
_parent._parent.removeMovieClip();
Symbol 629 MovieClip [efct_jump01] Frame 1
if (_root.field_flg == 3) {
this.efct_main.gotoAndStop(3);
} else if (_root.field_flg == 2) {
this.efct_main.gotoAndStop(2);
} else if (_root.field_flg == 1) {
this.efct_main.gotoAndStop(1);
}
Symbol 629 MovieClip [efct_jump01] Frame 2
this.gotoAndPlay(1);
Symbol 633 MovieClip [efct_e_slash01] Frame 8
this.removeMovieClip();
Symbol 636 MovieClip Frame 8
_parent.removeMovieClip();
Symbol 637 MovieClip [efct_e_beam] Frame 2
this._xscale = this.xscale;
this._yscale = this.yscale;
this._rotation = this.rot;
Symbol 637 MovieClip [efct_e_beam] Frame 3
this.gotoAndPlay(2);
Symbol 641 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 644 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 647 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 649 MovieClip [efct_dash01] Frame 1
if (_root.field_flg == 3) {
this.efct_main.gotoAndStop(3);
} else if (_root.field_flg == 2) {
this.efct_main.gotoAndStop(2);
} else if (_root.field_flg == 1) {
this.efct_main.gotoAndStop(1);
}
Symbol 649 MovieClip [efct_dash01] Frame 2
this.gotoAndPlay(1);
Symbol 651 MovieClip [efct_crash01] Frame 20
this.removeMovieClip();
Symbol 652 MovieClip [efct_bom01] Frame 21
this.removeMovieClip();
Symbol 659 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 659 MovieClip Frame 4
_root.root.e_efct_box.e_mine01(this.shot_x, this.shot_y, 5 - random(10), -random(5), 60 + random(30), 20);
Symbol 659 MovieClip Frame 75
_parent_parent.lag = 20 + random(20);
_parent_parent.atk_flg = 0;
_parent_parent.time = 0;
_parent_parent.anime_flg = random(5);
Symbol 666 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 666 MovieClip Frame 30
this.gotoAndPlay(10);
Symbol 666 MovieClip Frame 60
this.gotoAndPlay(40);
Symbol 666 MovieClip Frame 71
this.gotoAndPlay(70);
Symbol 666 MovieClip Frame 76
this.gotoAndPlay(75);
Symbol 666 MovieClip Frame 86
this.gotoAndPlay(1);
Symbol 666 MovieClip Frame 135
_root.e_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 672 MovieClip Frame 1
if (_root.field_flg == 4) {
this.e_smoke.gotoAndStop(2);
} else {
this.e_smoke.gotoAndStop(1);
}
Symbol 672 MovieClip Frame 5
this.gotoAndPlay(1);
Symbol 673 MovieClip [e_walker01] Frame 1
function main_script() {
this.smoke._visible = 0;
if (0 >= this.hp) {
this.smoke._visible = 0;
if (89 >= this.e_main._currentframe) {
_root.destroy_num++;
_root.display.combo_counter.combo(17);
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.time = 0;
this.e_main.gotoAndPlay(90);
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
this.time++;
if ((90 < this.e_main._currentframe) && (this.time < 135)) {
if ((120 < this.e_main._currentframe) && (this.time < 135)) {
this.e_shadow._visible = 0;
if (this.e_main.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = 15;
new Color(_root.root.p_box.player).setRGB(16777215);
}
}
}
if (_root.efct_switch == 1) {
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
this.bom_size = random30 + 60;
_root.root.efct_box.efct_bom01((this._x + 50) - random(100), this._y - random(100), this.bom_size, this.bom_size);
}
}
} else if (235 < this.e_main._currentframe) {
this.e_shadow._alpha = 0;
}
this.atk_flg = 0;
} else {
if (this.atk_flg == 0) {
this.tgt_rot = 0;
this.time++;
if (this.lag < this.time) {
this.lag = 20 + random(60);
this.atk_flg = 1;
this.time = 0;
}
}
if (this.jump_flg == 0) {
if (this.anime_flg == 0) {
if (((_root.p_pos_x - 200) < this._x) && (this._x < (_root.p_pos_x + 200))) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
if (((_root.p_pos_x + 200) < this._x) && (this._x < (_root.p_pos_x + 500))) {
this.anime_flg = 1;
}
if ((this._x < (_root.p_pos_x - 200)) && ((_root.p_pos_x - 500) < this._x)) {
this.anime_flg = 2;
}
if (this._x >= (_root.p_pos_x + 1000)) {
this.anime_flg = 1;
}
if ((_root.p_pos_x - 1000) >= this._x) {
this.anime_flg = 2;
}
}
if ((this.anime_flg == 1) || (this.anime_flg == 2)) {
if (this._x >= (_root.p_pos_x + 1000)) {
this.anime_flg = 1;
}
if ((_root.p_pos_x - 1000) >= this._x) {
this.anime_flg = 2;
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(5);
this.time2 = 0;
}
}
}
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = 2 + random(2);
this.time2 = 0;
}
}
if (this.atk_flg == 1) {
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this._xscale) {
this.tgt_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 120))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.tgt_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 120)) / (Math.PI/180)) - 90;
}
if (60 < this.tgt_rot) {
this.tgt_rot = 60;
}
if (this.tgt_rot < -60) {
this.tgt_rot = -60;
}
if (((_root.p_pos_x - 1500) < this._x) && (this._x < (_root.p_pos_x + 1500))) {
if (this.e_main.weparm1.weparm_main._currentframe == 1) {
this.e_main.weparm1.weparm_main.gotoAndPlay(3);
}
if (this.e_main.weparm2.weparm_main._currentframe == 1) {
this.e_main.weparm2.weparm_main.gotoAndPlay(3);
}
if (0 < this._xscale) {
this.e_main.weparm1.weparm_main.shot_rot = this.e_main.weparm1._rotation + 180;
this.e_main.weparm2.weparm_main.shot_rot = this.e_main.weparm2._rotation + 180;
this.e_main.weparm1.weparm_main.shot_x = this._x;
this.e_main.weparm1.weparm_main.shot_y = (this._y + this.e_main.arm1_pos._y) + 10;
this.e_main.weparm2.weparm_main.shot_x = this._x;
this.e_main.weparm2.weparm_main.shot_y = (this._y + this.e_main.arm2_pos._y) + 10;
}
if (this._xscale < 0) {
this.e_main.weparm1.weparm_main.shot_rot = -this.e_main.weparm1._rotation;
this.e_main.weparm2.weparm_main.shot_rot = -this.e_main.weparm2._rotation;
this.e_main.weparm1.weparm_main.shot_x = this._x;
this.e_main.weparm1.weparm_main.shot_y = (this._y + this.e_main.arm1_pos._y) + 10;
this.e_main.weparm2.weparm_main.shot_x = this._x;
this.e_main.weparm2.weparm_main.shot_y = (this._y + this.e_main.arm2_pos._y) + 10;
}
}
this.time++;
if (this.lag < this.time) {
this.lag = 20 + random(20);
this.atk_flg = 0;
this.time = 0;
this.anime_flg = random(5);
}
}
if (this.e_main._currentframe == 1) {
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
}
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(73);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(67);
}
if (this.anime_flg == 2) {
this._xscale = -100;
this.e_main.gotoAndPlay(5);
}
if (this.anime_flg == 1) {
this._xscale = 100;
this.e_main.gotoAndPlay(5);
}
}
if ((5 < this.e_main._currentframe) && (65 >= this.e_main._currentframe)) {
if ((5 < this.e_main._currentframe) && (30 >= this.e_main._currentframe)) {
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(166);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if (this.anime_flg == 2) {
if (6 >= this.mov_x) {
this.mov_x++;
}
if (6 < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
this.e_main.gotoAndPlay(35);
}
}
if (this.atk_flg == 0) {
this._xscale = -100;
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= -6) {
this.mov_x--;
}
if (this.mov_x < -6) {
this.mov_x++;
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this._xscale = -100;
this.e_main.gotoAndPlay(35);
}
}
if (this.atk_flg == 0) {
this._xscale = 100;
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
if ((35 < this.e_main._currentframe) && (65 >= this.e_main._currentframe)) {
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(166);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if (this.anime_flg == 2) {
if (6 >= this.mov_x) {
this.mov_x++;
}
if (6 < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 0) {
this._xscale = -100;
this.e_main.gotoAndPlay(5);
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= -6) {
this.mov_x--;
}
if (this.mov_x < -6) {
this.mov_x++;
}
if (this.atk_flg == 0) {
this._xscale = 100;
this.e_main.gotoAndPlay(5);
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
}
if (this.e_main._currentframe == 68) {
this.mov_y = -5 - random(15);
}
if ((65 < this.e_main._currentframe) && (85 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 70) {
if (this.mov_y >= 0) {
this.e_main.gotoAndPlay(72);
}
}
if (this.e_main._currentframe == 75) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(77);
}
}
}
if ((77 < this.e_main._currentframe) && (85 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
} else {
this.efct_cnt = -1;
}
if (this.tgt_rot < this.e_main.weparm1._rotation) {
this.e_main.weparm1._rotation = this.e_main.weparm1._rotation - 2;
}
if (this.e_main.weparm1._rotation < this.tgt_rot) {
this.e_main.weparm1._rotation = this.e_main.weparm1._rotation + 2;
}
if (this.tgt_rot < this.e_main.weparm2._rotation) {
this.e_main.weparm2._rotation = this.e_main.weparm2._rotation - 2;
}
if (this.e_main.weparm2._rotation < this.tgt_rot) {
this.e_main.weparm2._rotation = this.e_main.weparm2._rotation + 2;
}
}
this.e_main.weparm1._x = this.e_main.arm1_pos._x;
this.e_main.weparm1._y = this.e_main.arm1_pos._y;
this.e_main.weparm2._x = this.e_main.arm2_pos._x;
this.e_main.weparm2._y = this.e_main.arm2_pos._y;
this.e_main.weparm1.gotoAndStop(this.type1);
this.e_main.weparm2.gotoAndStop(this.type2);
}
this.tgt_rot = 0;
this.atk_flg = 0;
this.anime_flg = 0;
this.jump_flg = 1;
this.time = 0;
this.lag = 60 + random(60);
this.time2 = 0;
this.lag2 = 30 + random(60);
this.efct_cnt = -1;
this.end_flg = 0;
this.c = 0;
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
if ((this.e_hp_max / 3) < this.dmg) {
this.mov_x = this.hit_mov_x / 3;
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 15;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 673 MovieClip [e_walker01] Frame 2
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 673 MovieClip [e_walker01] Frame 3
this.gotoAndPlay(2);
Symbol 676 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 676 MovieClip Frame 15
_parent.gotoAndPlay(12);
Symbol 681 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 681 MovieClip Frame 11
this.gotoAndPlay(10);
Symbol 681 MovieClip Frame 25
this.gotoAndPlay(1);
Symbol 681 MovieClip Frame 50
_root.e_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 682 MovieClip [e_tank02] Frame 1
function main_script() {
if (0 >= this.hp) {
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.e_shadow._alpha = this.e_shadow._alpha - 10;
if (this.e_main._currentframe < 30) {
this.e_main.gotoAndPlay(30);
_root.destroy_num++;
_root.display.combo_counter.combo(12);
this.mov_x = 0;
}
} else {
if (this.atk_flg == 0) {
this.can_rot = 0;
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
}
if (((_root.p_pos_x - 500) < this._x) && (this._x < (_root.p_pos_x + 500))) {
this.time++;
if ((this.lag < this.time) && (this.atk_flg == 0)) {
this.atk_flg = 1;
this.time = 0;
}
}
if (((_root.p_pos_x - 150) < this._x) && (this._x < (_root.p_pos_x + 150))) {
if (this._x < _root.p_pos_x) {
if ((-this.max_x) < this.mov_x) {
this.mov_x--;
}
}
if (_root.p_pos_x < this._x) {
if (this.mov_x < this.max_x) {
this.mov_x++;
}
}
} else if (this._x < (_root.p_pos_x - 500)) {
if (this.mov_x < this.max_x) {
this.mov_x++;
}
} else if ((_root.p_pos_x + 500) < this._x) {
if ((-this.max_x) < this.mov_x) {
this.mov_x--;
}
} else if (this.m_x != 0) {
this.mov_x = this.mov_x / 1.2;
if ((-1 < this.m_x) && (this.m_x < 1)) {
this.mov_x = 0;
}
}
}
if (this.atk_flg == 1) {
this.atk_flg = 2;
this.e_main.gotoAndPlay(5);
}
if (this.atk_flg == 2) {
this.mov_x = this.mov_x / 2;
if ((this.mov_x < 1) && (-1 < this.mov_x)) {
this.mov_x = 0;
}
this.time++;
if (30 < this.time) {
if (0 < this._xscale) {
this.shot_x = this._x - 40;
}
if (this._xscale < 0) {
this.shot_x = this._x + 40;
}
_root.root.e_efct_box.e_msl01(shot_x, this._y - 100, -180 + random(360), 5, 30);
this.e_main.e_msl_pod.gotoAndPlay(3);
this.atk_flg = 3;
}
}
if (this.atk_flg != 0) {
if (this.e_main.e_msl_pod._currentframe >= 14) {
this.e_main.gotoAndPlay(12);
}
if (this.e_main._currentframe >= 24) {
this.atk_flg = 0;
this.e_main.gotoAndPlay(1);
}
}
}
if (1 < Math.abs(this.mov_x)) {
this.smoke_tankdash._visible = 1;
} else {
this.smoke_tankdash._visible = 0;
}
if (_root.efct_switch == 1) {
this.e_main.destroy_sw._visible = 1;
} else {
this.e_main.destroy_sw._visible = 0;
}
}
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
if ((this.e_hp_max / 3) < this.dmg) {
this.mov_x = this.hit_mov_x / 3;
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
this.hit_mov_x = 0;
this.hit_mov_y = 0;
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 20;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 682 MovieClip [e_tank02] Frame 2
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 682 MovieClip [e_tank02] Frame 3
this.gotoAndPlay(2);
Symbol 685 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 685 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 689 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 689 MovieClip Frame 30
_root.e_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 690 MovieClip [e_tank01] Frame 1
function main_script() {
if (0 >= this.hp) {
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.e_shadow._alpha = this.e_shadow._alpha - 10;
if (5 >= this.e_main._currentframe) {
this.e_main.gotoAndPlay(10);
_root.destroy_num++;
_root.display.combo_counter.combo(13);
this.mov_x = 0;
}
} else {
if (this.atk_flg == 0) {
this.can_rot = 0;
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
}
this.time++;
if ((this.lag < this.time) && (this.atk_flg == 0)) {
this.atk_flg = 1;
_root.root.e_efct_box.e_lock01(this._x, this._y - 40, 70, 70, this.num);
}
if (((_root.p_pos_x - 150) < this._x) && (this._x < (_root.p_pos_x + 150))) {
if (this._x < _root.p_pos_x) {
if ((-this.max_x) < this.mov_x) {
this.mov_x--;
}
}
if (_root.p_pos_x < this._x) {
if (this.mov_x < this.max_x) {
this.mov_x++;
}
}
} else if (this._x < (_root.p_pos_x - 500)) {
if (this.mov_x < this.max_x) {
this.mov_x++;
}
} else if ((_root.p_pos_x + 500) < this._x) {
if ((-this.max_x) < this.mov_x) {
this.mov_x--;
}
} else if (this.mov_x != 0) {
this.mov_x = this.mov_x / 1.2;
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
}
}
if (this.atk_flg == 1) {
this.lock_x = _root.root.e_efct_box["e_lock" + this.num]._x;
this.lock_y = _root.root.e_efct_box["e_lock" + this.num]._y;
if (0 < this._xscale) {
this.can_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 60))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.can_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 60)) / (Math.PI/180)) - 90;
}
if (40 < this.can_rot) {
this.can_rot = 40;
}
if (this.can_rot < -20) {
this.can_rot = -20;
}
}
if (this.cannon_flg == 1) {
this.e_main.e_cannon.gotoAndPlay(3);
this.atk_flg = 3;
this.cannon_flg = 0;
}
if (this.atk_flg == 3) {
if (this.e_main.e_cannon._currentframe == 4) {
this.shot_x = this._x + this.e_main.e_cannon._x;
this.shot_y = (this._y + (this.e_main.e_cannon._y / 2)) - 30;
if (0 < this._xscale) {
this.can_rot2 = this.e_main.e_cannon._rotation + 180;
}
if (this._xscale < 0) {
this.can_rot2 = -this.e_main.e_cannon._rotation;
}
_root.root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 300, 60, this.can_rot2, 70, 50);
}
if (this.e_main.e_cannon._currentframe >= 13) {
this.time = 0;
this.can_rot = 0;
this.lag = 100 + random(60);
this.atk_flg = 0;
}
}
if (this.atk_flg != 0) {
if (this.mov_x != 0) {
this.mov_x = this.mov_x / 1.2;
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
}
}
if (this.can_rot < this.e_main.e_cannon._rotation) {
this.e_main.e_cannon._rotation--;
}
if (this.e_main.e_cannon._rotation < this.can_rot) {
this.e_main.e_cannon._rotation++;
}
}
if (1 < Math.abs(this.mov_x)) {
this.smoke_tankdash._visible = 1;
} else {
this.smoke_tankdash._visible = 0;
_root.anime_flg = this.can_rot2;
}
if (_root.efct_switch == 1) {
this.e_main.destroy_sw._visible = 1;
} else {
this.e_main.destroy_sw._visible = 0;
}
}
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
if ((this.e_hp_max / 3) < this.dmg) {
this.mov_x = this.hit_mov_x / 3;
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
this.dmg = 0;
this.dmg_flg = 0;
this.hit_mov_x = 0;
this.hit_mov_y = 0;
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 20;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 690 MovieClip [e_tank01] Frame 2
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 690 MovieClip [e_tank01] Frame 3
this.gotoAndPlay(2);
Symbol 691 MovieClip [e_shot02] Frame 1
function main_script() {
this.e_shot_main._alpha = 100;
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (this.m_x < 0) {
_root.hit_mov_x = -15;
}
if (0 < this.m_x) {
_root.hit_mov_x = 15;
}
}
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg;
this.hit_flg = 1;
}
this.time++;
if (30 < this.time) {
this.removeMovieClip();
}
}
if (this.hit_flg == 1) {
this.hit_flg = 9;
this.m_x = 0;
this.m_y = 0;
this.e_shot_main._xscale = (this.e_shot_main._yscale = this.xscale);
this.rot = this.rot + (30 - random(60));
this.e_shot_main.gotoAndPlay(5);
}
if (this.hit_flg == 2) {
this.e_shot_main._xscale = (this.e_shot_main._yscale = this.xscale);
this.e_shot_main.gotoAndPlay(15);
this.m_x = (this.m_y = 0);
this.rot = 20 - random(40);
this.hit_flg = 9;
} else if (this.hit_flg != 0) {
this.m_x = 0;
this.m_y = 0;
}
this._x = this._x + m_x;
this._y = this._y + m_y;
}
this.hit_flg = 0;
m_x = Math.cos(this.rot * (Math.PI/180)) * spd;
m_y = Math.sin(this.rot * (Math.PI/180)) * spd;
this._x = this._x + (m_x * 2);
this._y = this._y + (m_y * 2);
this.time = 0;
this.e_shot_main._alpha = 0;
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.e_shot_main._rotation = this.rot;
function field_hit() {
if (this.hit_flg == 0) {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 2;
}
}
}
Symbol 691 MovieClip [e_shot02] Frame 2
this.field_hit();
this.main_script();
Symbol 691 MovieClip [e_shot02] Frame 3
this.gotoAndPlay(2);
Symbol 694 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 694 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 694 MovieClip Frame 55
_parent.removeMovieClip();
Symbol 695 MovieClip [e_shot01] Frame 1
function main_script() {
this._alpha = 100;
if (this.hit_flg == 2) {
this.rot = 0;
this.xscale = 100;
this.yscale = 100;
this.e_shot_main.gotoAndPlay(35);
this.hit_flg = 9;
}
if (this.hit_flg == 1) {
this.rot = 0;
this.xscale = 100;
this.yscale = 100;
this.e_shot_main.gotoAndPlay(35);
this.hit_flg = 9;
}
if (this.hit_flg == 0) {
this._time++;
m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + m_x;
this._y = this._y + m_y;
this.time++;
if (30 < this.time) {
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.p_box.player.p_hit_area)) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (m_x < 0) {
_root.hit_mov_x = -15;
}
if (0 < m_x) {
_root.hit_mov_x = 15;
}
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg;
this.hit_flg = 1;
}
}
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.e_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd;
m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd;
this._x = this._x + (m_x * 2);
this._y = this._y + (m_y * 2);
this.time = 0;
this.hit_flg = 0;
this._alpha = 0;
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.e_shot_main._rotation = this.rot;
function field_hit() {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
Symbol 695 MovieClip [e_shot01] Frame 2
this.field_hit();
this.main_script();
Symbol 695 MovieClip [e_shot01] Frame 3
this.gotoAndPlay(2);
Symbol 701 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 701 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 701 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 702 MovieClip [e_mine01] Frame 1
function field_hit() {
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
function main_script() {
if (this.hit_flg == 0) {
if (this.mov_y < 30) {
this.mov_y++;
}
}
if (this.hit_flg == 4) {
if (this.e_mine_main.bom_hitarea.hitTest(_root.root.p_box.player.p_hit_area)) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (_root.p_pos_x < this._x) {
_root.hit_mov_x = -15;
}
if (this._x < _root.p_pos_x) {
_root.hit_mov_x = 15;
}
}
if (this.e_mine_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg / 2;
}
if (this.e_mine_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg / 2;
}
if (this.e_mine_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg / 2;
}
}
if (this.hit_flg == 1) {
this.mov_x = 0;
this.mov_y = 0;
this.e_mine_main.gotoAndPlay(20);
this.hit_flg = 4;
} else if (this.hit_flg == 2) {
this.mov_x = 0;
this.mov_y = 0;
this.time++;
if (this.time >= this.lag) {
this.hit_flg = 1;
}
if (this.hit_area.hitTest(_root.root.p_box.player.p_hit_area)) {
this.time = this.time + 5;
if (this.time >= this.lag) {
this.hit_flg = 1;
}
}
} else if (this.hit_flg == 5) {
this.mov_x = 0;
this.mov_y = 0;
_root.display.combo_counter.combo(1);
this.e_mine_main.gotoAndPlay(5);
this.hit_flg = 9;
}
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
this.hit_flg = 0;
this.gnd_flg = 0;
this.time = 0;
Symbol 702 MovieClip [e_mine01] Frame 2
this.field_hit();
this.main_script();
Symbol 702 MovieClip [e_mine01] Frame 3
this.gotoAndPlay(2);
Symbol 705 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 705 MovieClip Frame 20
_parent.removeMovieClip();
_parent.removeMovieClip();
Symbol 705 MovieClip Frame 40
_parent.removeMovieClip();
_parent.removeMovieClip();
Symbol 706 MovieClip [e_shot_bz] Frame 1
function main_script() {
if ((this.hit_flg == 1) || (this.hit_flg == 2)) {
this.hit_flg = 3;
this.spd = 0;
this.spd2 = 0;
this.xscale = 100;
this.yscale = 100;
this.e_shot_main.gotoAndPlay(5);
}
if (this.spd2 < this.spd) {
this.spd2++;
}
this.m_x = Math.cos(this.rot * (Math.PI/180)) * this.spd2;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * this.spd2;
if (this.hit_flg == 0) {
if (this.msl_core.hitTest(_root.root.p_box.player.p_hit_area)) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -15;
if (m_x < 0) {
_root.hit_mov_x = -15;
}
if (0 < m_x) {
_root.hit_mov_x = 15;
}
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg;
this.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg;
this.hit_flg = 1;
}
this.time++;
if (60 < this.time) {
this.hit_flg = 1;
}
}
if (this.hit_flg == 5) {
this.spd = 0;
this.spd2 = 0;
_root.display.combo_counter.combo(1);
this.hit_flg = 6;
this.e_shot_main.gotoAndPlay(5);
}
if (this.hit_flg != 0) {
this.rot = 0;
if (this.shot_core2.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.p_dmg = 5 + ((5 * _root.custom_bonus) / 3);
}
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = 5 + (5 * _root.custom_bonus);
_root.root.other_box.def_tgt1.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = 5 + (5 * _root.custom_bonus);
_root.root.other_box.def_tgt2.hit_flg = 1;
}
if (this.shot_core.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = 5 + (5 * _root.custom_bonus);
_root.root.other_box.def_tgt3.hit_flg = 1;
}
}
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.e_shot_main._rotation = this.rot;
this.shot_core._xscale = this.xscale;
this.shot_core._yscale = this.yscale;
this.shot_core._rotation = this.rot;
}
this.spd2 = 10;
this.time = 0;
this.m_x = Math.cos(this.rot * (Math.PI/180)) * 50;
this.m_y = Math.sin(this.rot * (Math.PI/180)) * 50;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.hit_flg = 0;
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.e_shot_main._rotation = this.rot;
function field_hit() {
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.ground.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
Symbol 706 MovieClip [e_shot_bz] Frame 2
this.main_script();
this.field_hit();
Symbol 706 MovieClip [e_shot_bz] Frame 3
this.gotoAndPlay(2);
Symbol 710 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 710 MovieClip Frame 12
_parent.removeMovieClip();
Symbol 711 MovieClip [e_shot_beam] Frame 1
function main_script() {
this.e_shot_main._xscale = this.xscale;
this.e_shot_main._yscale = this.yscale;
this.shot_core._xscale = this.xscale * 3;
this.shot_core._yscale = this.yscale * 3;
if (this.hit_flg == 0) {
this.spd = this.spd + 10;
this.m_x = (-Math.cos(this.rot * (Math.PI/180))) * this.spd;
this.m_y = (-Math.sin(this.rot * (Math.PI/180))) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.xscale = this.xscale + 20;
this.yscale = this.yscale + 5;
this.e_shot_main._rotation = this.rot;
if (this.shot_core.hitTest(_root.root.p_box.player.p_hit_area)) {
this.hit_flg = 2;
if (_root.p_dmg_flg == 0) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (m_x < 0) {
_root.hit_mov_x = -15;
}
if (0 < m_x) {
_root.hit_mov_x = 15;
}
}
}
} else if (this.hit_flg == 2) {
this.hit_flg = 9;
this.e_shot_main._rotation = this.rot + (random(80) - 40);
this.e_shot_main.gotoAndPlay(5);
}
}
this.spd = 20;
this.m_x = (-Math.cos(this.rot * (Math.PI/180))) * 100;
this.m_y = (-Math.sin(this.rot * (Math.PI/180))) * 100;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this.e_shot_main._rotation = this.rot;
this.hit_flg = 0;
_root.root.e_efct_box.efct_e_beam((this._x + random(20)) - 10, (this._y + random(20)) - 10, 400, 800, (this.rot + random(90)) - 45);
function field_hit() {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.ground.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
Symbol 711 MovieClip [e_shot_beam] Frame 2
this.field_hit();
this.main_script();
Symbol 711 MovieClip [e_shot_beam] Frame 3
this.gotoAndPlay(2);
Symbol 712 MovieClip [e_point] Frame 1
point_x = _root.root.e_box["enemy" + this.num]._x - _root.p_pos_x;
point_y = _root.root.e_box["enemy" + this.num]._y - _root.p_pos_y;
this._x = point_x / 20;
this._y = point_y / 20;
if (120 < this._x) {
this._x = 120;
}
if (this._x < -120) {
this._x = -120;
}
if (25 < this._y) {
this._y = 25;
}
if (this._y < -45) {
this._y = -45;
}
Symbol 712 MovieClip [e_point] Frame 2
this.gotoAndPlay(1);
Symbol 715 MovieClip Frame 4
this.gotoAndPlay(1);
Symbol 715 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 715 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 716 MovieClip [e_msl01] Frame 1
function main_script() {
if (this.hit_flg == 0) {
if (this.msl_core.hitTest(_root.root.p_box.player.p_hit_area)) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -5;
if (this.mov_x2 < 0) {
_root.hit_mov_x = -8;
}
if (0 < this.mov_x2) {
_root.hit_mov_x = 8;
}
this.hit_flg = 1;
}
if (this.msl_core.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg / 5;
this.hit_flg = 1;
}
if (this.msl_core.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg / 5;
this.hit_flg = 1;
}
if (this.msl_core.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg / 5;
this.hit_flg = 1;
}
time++;
if (180 < time) {
this.hit_flg = 1;
}
if (this.spd < 10) {
spd++;
}
if (this.spd >= 10) {
spd--;
}
mov_x1 = Math.sin((-this.e_msl_main._rotation) * (Math.PI/180)) * spd;
mov_y1 = Math.cos((-this.e_msl_main._rotation) * (Math.PI/180)) * spd;
cnt++;
if (3 < cnt) {
cnt = 0;
if (mov_x1 < mov_x2) {
mov_x2--;
}
if (mov_x2 < mov_x1) {
mov_x2++;
}
if (mov_y1 < mov_y2) {
mov_y2 = mov_y2 - 1;
}
if (mov_y2 < mov_y1) {
mov_y2 = mov_y2 + 1;
}
}
this.e_msl_main._rotation = ((-Math.atan2(_root.p_pos_x - this._x, (_root.p_pos_y - 20) - this._y)) / (Math.PI/180)) % 360;
this._x = this._x + this.mov_x2;
this._y = this._y + this.mov_y2;
} else if (this.hit_flg == 1) {
this.hit_flg = 3;
this.e_msl_main.gotoAndPlay(5);
} else if (this.hit_flg == 5) {
_root.display.combo_counter.combo(1);
this.hit_flg = 3;
this.e_msl_main.gotoAndPlay(5);
} else if (this.hit_flg == 2) {
this.e_msl_main._rotation = 0;
this.hit_flg = 3;
this.e_msl_main.gotoAndPlay(5);
}
if (this.hit_flg != 0) {
_root.root.p_box["m_m" + this.num].removeMovieClip();
}
}
mov_x2 = Math.sin((-this.e_msl_main._rotation) * (Math.PI/180)) * spd;
mov_y2 = Math.cos((-this.e_msl_main._rotation) * (Math.PI/180)) * spd;
this.hit_flg = 0;
function field_hit() {
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.msl_core.hitTest(_root.root.bg_box.field.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
Symbol 716 MovieClip [e_msl01] Frame 2
this.main_script();
this.field_hit();
Symbol 716 MovieClip [e_msl01] Frame 3
this.gotoAndPlay(2);
Symbol 720 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 720 MovieClip Frame 25
this.gotoAndPlay(20);
Symbol 720 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 721 MovieClip [e_lock] Frame 1
this._xscale = 100;
this._yscale = 100;
this.lock_flg = 0;
this.time = 0;
Symbol 721 MovieClip [e_lock] Frame 2
this.time++;
if (0 >= _root.root.e_box["enemy" + this.num].hp) {
this.removeMovieClip();
}
if (this.lock_flg == 0) {
this.mov_x = (_root.p_pos_x - this._x) / 5;
this.mov_y = ((_root.p_pos_y - 25) - this._y) / 5;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
if (80 < this.time) {
this.time = 0;
this.lock_flg = 1;
}
}
if (this.lock_flg == 1) {
if (this.e_lock01_main._currentframe < 20) {
this.e_lock01_main.gotoAndPlay(20);
}
if (this.time >= 30) {
_root.root.e_box["enemy" + this.num].cannon_flg = 1;
this.lock_flg = 2;
this.e_lock01_main.gotoAndPlay(30);
}
}
Symbol 721 MovieClip [e_lock] Frame 3
this.gotoAndPlay(2);
Symbol 725 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 725 MovieClip Frame 28
_root.e_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 726 MovieClip [e_fly01] Frame 1
function main_script() {
if (0 >= this.hp) {
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
if (5 >= this.e_main._currentframe) {
this.e_main.gotoAndPlay(15);
_root.destroy_num++;
_root.display.combo_counter.combo(10);
}
} else {
if (-300 < _root.p_pos_y) {
if ((_root.p_pos_y - 250) < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this._rotation) {
this._rotation--;
}
} else if ((_root.p_pos_y - 250) >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this._rotation < 10) {
this._rotation++;
}
}
} else {
if (-250 < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this._rotation) {
this._rotation--;
}
}
if (-250 >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this._rotation < 10) {
this._rotation++;
}
}
}
if (_root.p_pos_x < this._x) {
this._xscale = 100;
}
if (_root.p_pos_x >= this._x) {
this._xscale = -100;
}
if (this._x >= (_root.p_pos_x + 500)) {
if (-10 < mov_x) {
mov_x = mov_x - 1;
}
} else if ((_root.p_pos_x - 500) >= this._x) {
if (mov_x < 10) {
mov_x = mov_x + 1;
}
}
if (((_root.p_pos_x - 500) < this._x) && (this._x < (_root.p_pos_x + 500))) {
if (mov_x < -5) {
mov_x = mov_x + 1;
}
if (5 < mov_x) {
mov_x = mov_x - 1;
}
}
this.time++;
if (this.time >= this.lag) {
_root.root.e_efct_box.e_bom01(this._x, this._y + 20, 45);
this.time = 0;
this.lag = 120 + random(80);
}
this._x = this._x + mov_x;
this._y = this._y + mov_y;
}
if (_root.efct_switch == 1) {
this.e_main.destroy_sw._visible = 1;
} else {
this.e_main.destroy_sw._visible = 0;
}
}
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
Symbol 726 MovieClip [e_fly01] Frame 2
this.dmg_script();
this.main_script();
this.field_hit_x();
this.field_hit_y();
this.result();
Symbol 726 MovieClip [e_fly01] Frame 3
this.gotoAndPlay(2);
Symbol 745 MovieClip Frame 90
this.gotoAndPlay(1);
Symbol 745 MovieClip Frame 101
this.gotoAndPlay(100);
Symbol 745 MovieClip Frame 105
this.gotoAndPlay(1);
Symbol 745 MovieClip Frame 111
this.gotoAndPlay(110);
Symbol 773 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 773 MovieClip Frame 81
this.gotoAndPlay(80);
Symbol 773 MovieClip Frame 90
this.gotoAndPlay(1);
Symbol 773 MovieClip Frame 96
this.gotoAndPlay(95);
Symbol 773 MovieClip Frame 146
this.gotoAndPlay(1);
Symbol 795 MovieClip Frame 90
this.gotoAndPlay(1);
Symbol 795 MovieClip Frame 101
this.gotoAndPlay(100);
Symbol 795 MovieClip Frame 106
this.gotoAndPlay(1);
Symbol 795 MovieClip Frame 111
this.gotoAndPlay(110);
Symbol 798 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 140
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 180
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 206
this.gotoAndPlay(205);
Symbol 798 MovieClip Frame 216
this.gotoAndPlay(215);
Symbol 798 MovieClip Frame 235
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 281
this.gotoAndPlay(280);
Symbol 798 MovieClip Frame 289
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 295
this.gotoAndPlay(280);
Symbol 798 MovieClip Frame 330
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 336
this.gotoAndPlay(335);
Symbol 798 MovieClip Frame 375
this.gotoAndPlay(1);
Symbol 798 MovieClip Frame 421
this.gotoAndPlay(420);
Symbol 798 MovieClip Frame 503
_root.e_num[_parent.num] = 0;
_root.boss_destroy_flg++;
_parent.removeMovieClip();
Symbol 799 MovieClip [e_boss04] Frame 1
function main_script() {
if (0 < this.hp) {
this.arm_anime++;
this.e_core._x = this.e_main.e_head._x;
this.e_core._y = this.e_main.e_head._y;
this.e_main.e_head._x = this.e_main.head_pos._x;
this.e_main.e_head._y = this.e_main.head_pos._y;
if (this.atk_flg == 0) {
this.e_main.e_head.gotoAndPlay(95);
this.e_main.gotoAndPlay(335);
this.arm_anime = 110;
this.e_main.e_head._rotation = this.e_main.e_neck._rotation - 30;
} else if (this.atk_flg == 1) {
if (this.e_main.e_head._currentframe == 95) {
this.e_main.e_head.gotoAndPlay(97);
}
if (this.e_main.e_head._currentframe == 145) {
this.e_main.e_head.gotoAndPlay(1);
this.e_main.gotoAndPlay(337);
this.arm_anime = 1;
this.atk_flg = 2;
}
} else if (this.atk_flg == 2) {
this.lock_x = _root.p_pos_x - (this._x + ((this.e_main.head_pos._x * this._xscale) / 100));
this.lock_y = (_root.p_pos_y - 20) - (this._y + ((this.e_main.head_pos._y * this._yscale) / 100));
this.tgt_rot = (-Math.atan2(this.lock_x, this.lock_y)) / (Math.PI/180);
if ((this.tgt_rot - 67) < this.e_main.e_head._rotation) {
this.e_main.e_head._rotation--;
} else if (this.e_main.e_head._rotation < (this.tgt_rot - 73)) {
this.e_main.e_head._rotation++;
}
if ((this.e_main.e_neck._rotation + 30) < this.e_main.e_head._rotation) {
this.e_main.e_head._rotation = this.e_main.e_neck._rotation + 30;
}
if (this.e_main.e_head._rotation < (this.e_main.e_neck._rotation - 50)) {
this.e_main.e_head._rotation = this.e_main.e_neck._rotation - 50;
}
if ((_root.p_pos_x < (this._x - 200)) && ((this._x + 200) < _root.p_pos_x)) {
this.time = 0;
this.anime_flg = 2 + random(2);
} else if (this.lag < this.time) {
this.time = 0;
this.anime_flg = 1 + random(5);
this.lag = 20 + random(50);
}
if ((0 < this.e_main._currentframe) && (60 >= this.e_main._currentframe)) {
if (90 < this.arm_anime) {
this.arm_anime = 1;
}
if (this.e_main.e_head._currentframe == 80) {
this.e_main.e_head.gotoAndPlay(82);
}
this.time++;
if (this.anime_flg == 1) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(65);
}
if (this.anime_flg == 2) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(145);
}
if (this.anime_flg == 3) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(185);
}
if (this.anime_flg == 4) {
this.anime_flg = 0;
this.lag = 60 + random(60);
this.e_main.gotoAndPlay(240);
}
if (this.anime_flg == 5) {
this.anime_flg = 0;
this.lag = 60 + random(60);
this.e_main.gotoAndPlay(300);
}
}
if ((115 < this.e_main._currentframe) && (125 >= this.e_main._currentframe)) {
this.efct_cnt++;
if (1 < this.efct_cnt) {
this.efct_cnt = -1;
_root.root._y = 150 + this.efct_cnt;
_root.root.e_efct_box.efct_wave01(this._x - 600, this._y + 150, 200, 200, 0, 50);
}
} else if ((258 < this.e_main._currentframe) && (265 >= this.e_main._currentframe)) {
this.efct_cnt++;
if (1 < this.efct_cnt) {
this.efct_cnt = -1;
_root.root._y = 150 + this.efct_cnt;
_root.root.e_efct_box.efct_wave01(this._x - 600, this._y + 150, 200, 200, 0, 50);
}
} else if ((270 < this.e_main._currentframe) && (275 >= this.e_main._currentframe)) {
this.efct_cnt++;
if (1 < this.efct_cnt) {
this.efct_cnt = -1;
_root.root._y = 150 + this.efct_cnt;
_root.root.e_efct_box.efct_wave01(this._x - 550, this._y + 150, 200, 200, 0, 50);
}
} else {
this.efct_cnt = -1;
}
if (this.e_main._currentframe == 280) {
this.time++;
if (this.lag < this.time) {
this.time = 0;
this.lag = 30 + random(30);
this.e_main.gotoAndPlay(282);
}
if (this.e_main.e_head._currentframe < 70) {
this.e_main.e_head.gotoAndPlay(70);
}
this.beam_x = this._x + ((this.e_main.head_pos._x * this._xscale) / 100);
this.beam_y = this._y + ((this.e_main.head_pos._y * this._yscale) / 100);
this.efct++;
if (this.efct >= 10) {
this.efct = 0;
this.lock_x = _root.p_pos_x - (this._x + ((this.e_main.head_pos._x * this._xscale) / 100));
this.lock_y = (_root.p_pos_y - 20) - (this._y + ((this.e_main.head_pos._y * this._yscale) / 100));
this.tgt_rot = (-Math.atan2(this.lock_x, this.lock_y)) / (Math.PI/180);
if (_root.custom_bonus == 6) {
_root.root.e_efct_box.e_shot_ebom(this.beam_x, this.beam_y, 100, 100, this.tgt_rot - 90, 300);
} else {
_root.root.e_efct_box.e_shot_ebom(this.beam_x, this.beam_y, 100, 100, this.tgt_rot - 90, 50);
}
}
}
if (this.e_main._currentframe == 205) {
this.time++;
if (this.lag < this.time) {
this.time = 0;
this.lag = 60 + random(60);
this.e_main.gotoAndPlay(207);
}
if (this.e_main.e_head._currentframe < 70) {
this.e_main.e_head.gotoAndPlay(70);
}
}
if (this.e_main._currentframe == 215) {
this.time++;
if (this.lag < this.time) {
this.time = 0;
this.lag = 30 + random(30);
this.e_main.gotoAndPlay(217);
}
if (this.e_main.e_head._currentframe < 70) {
this.e_main.e_head.gotoAndPlay(70);
}
this.beam_x = this._x + ((this.e_main.head_pos._x * this._xscale) / 100);
this.beam_y = this._y + ((this.e_main.head_pos._y * this._yscale) / 100);
this.efct++;
if (this.efct >= 5) {
this.efct = 0;
if (_root.custom_bonus == 6) {
_root.root.e_efct_box.e_shot_beam(this.beam_x, this.beam_y, 200, 100, this.e_main.e_head._rotation - 20, 150);
} else {
_root.root.e_efct_box.e_shot_beam(this.beam_x, this.beam_y, 200, 100, this.e_main.e_head._rotation - 20, 50);
}
}
}
}
if (this.danger_zone.hitTest(_root.root.p_box.player)) {
_root.p_mov_y = -15;
_root.p_mov_x = -30;
if ((_root.root.p_box.player.anime_flg != 9) && (_root.root.p_box.player.anime_flg != 95)) {
_root.p_hp = _root.p_hp - Math.round(Math.abs(20 + (10 * _root.custom_bonus)));
_root.root.p_box.player.anime_flg = 9;
_root.root.efct_box.efct_spark01(_root.p_pos_x, _root.p_pos_y - 40);
_root.root.efct_box.efct_spark01(_root.p_pos_x, _root.p_pos_y - 40);
}
}
if (this.e_main.hit_area.hitTest(_root.root.p_box.player)) {
_root.p_mov_y = -15;
_root.p_mov_x = -50;
_root.root.efct_box.efct_crash01(_root.p_pos_x, _root.p_pos_y - 50, -200, 200);
if ((_root.root.p_box.player.anime_flg != 9) && (_root.root.p_box.player.anime_flg != 95)) {
_root.p_hp = _root.p_hp - Math.round(Math.abs(20 + (10 * _root.custom_bonus)));
_root.root.p_box.player.anime_flg = 9;
}
}
if (this.e_main.hit_area2.hitTest(_root.root.p_box.player)) {
_root.p_mov_y = -15;
_root.p_mov_x = -50;
_root.root.efct_box.efct_spark01(_root.p_pos_x, _root.p_pos_y - 40);
_root.root.efct_box.efct_spark01(_root.p_pos_x, _root.p_pos_y - 40);
if ((_root.root.p_box.player.anime_flg != 9) && (_root.root.p_box.player.anime_flg != 95)) {
_root.p_hp = _root.p_hp - Math.round(Math.abs(20 + (10 * _root.custom_bonus)));
_root.root.p_box.player.anime_flg = 9;
}
}
this.e_main.e_ar.gotoAndStop(this.arm_anime);
this.e_main.e_al.gotoAndStop(this.arm_anime);
}
}
function dmg_script() {
if ((this.atk_flg != 2) || ((0 < this.e_main._currentframe) && (60 >= this.e_main._currentframe))) {
this.dmg = 0;
this.dmg_flg = 0;
}
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
function destroy_script() {
if (0 >= this.hp) {
this.danger_zone._visible = 0;
this.hp = 0;
if (this.e_main._currentframe < 380) {
_root.alert_flg = 0;
_root.destroy_num++;
_root.display.combo_counter.combo(5000);
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.time = 0;
this.e_main.gotoAndPlay(380);
}
if ((this.e_main._currentframe == 420) && (this.time < 200)) {
this.time++;
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 200) - random(400), (this._y - random(500)) + 100, 100, 100);
}
} else if ((420 >= this.e_main._currentframe) && (this.time >= 200)) {
this.e_main.gotoAndPlay(422);
}
}
}
this.efct = 0;
this.tgt_rot = 0;
this.atk_flg = 0;
this.anime_flg = 0;
this.time = 0;
this.lag = 30 + random(60);
this.time2 = 0;
this.lag2 = 30 + random(60);
this.efct_cnt = -1;
this.arm_anime = 0;
Symbol 799 MovieClip [e_boss04] Frame 2
this.dmg_script();
this.destroy_script();
this.main_script();
_root.data = this.atk_flg;
Symbol 799 MovieClip [e_boss04] Frame 3
this.gotoAndPlay(2);
Symbol 802 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 802 MovieClip Frame 4
_root.root.e_efct_box.e_shot02(this.shot_x, this.shot_y, 500, 40, (this.shot_rot - 5) + random(10), 60, 30);
Symbol 807 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 811 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 811 MovieClip Frame 7
this.gotoAndPlay(5);
Symbol 811 MovieClip Frame 70
_root.e_num[_parent.num] = 0;
_root.boss_destroy_flg++;
_parent.removeMovieClip();
Symbol 812 MovieClip [e_boss03] Frame 1
function main_script() {
if (this.e_propela.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.hit_mov_y = 20;
_root.p_hp = _root.p_hp - ((50 - _root.a_defense_main) - _root.dash_defense);
if (this.mov_x < 0) {
_root.root.efct_box.efct_crash01(_root.p_pos_x, _root.p_pos_y - 50, -100, 100);
_root.hit_mov_x = -20;
_root.root.p_box.player.anime_flg = 9;
}
if (0 < this.mov_x) {
_root.root.efct_box.efct_crash01(_root.p_pos_x, _root.p_pos_y - 50, 100, 100);
_root.hit_mov_x = 20;
_root.root.p_box.player.anime_flg = 9;
}
_root.p_mov_x = _root.hit_mov_x;
_root.p_mov_y = _root.hit_mov_y;
}
}
if (0 >= this.hp) {
this.mov_x = this.mov_x / 2;
if (this._y < 500) {
this.mov_y = 3;
} else {
this.mov_y = 0;
this._y = 500;
}
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
if (this.e_main._currentframe == 1) {
this.e_main.gotoAndPlay(5);
_root.destroy_num++;
_root.display.combo_counter.combo(1200);
}
if (this.time4 < 120) {
this.gun_flg = 1;
this.time++;
if (this.time >= this.lag) {
_root.root.e_efct_box.e_bom01(this._x, this._y + 20, 45);
this.time = 0;
this.lag = 15;
}
this.efct_num++;
if (2 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 150) - random(300), this._y - random(150), 100, 100);
}
this.time4++;
}
if (this.e_main._currentframe == 5) {
if (this.time4 >= 120) {
this.e_shadow._visible = 0;
this.e_main.gotoAndPlay(8);
}
}
} else {
if (this.atk_flg == 1) {
this.time3++;
if (this.time3 >= this.lag3) {
this.gun_flg = 1;
if (this.time3 >= (this.lag3 + 120)) {
this.gun_flg = 0;
this.time3 = 0;
this.lag3 = 30 + random(80);
}
}
if ((_root.p_pos_y - 150) < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this.e_main._rotation) {
this.e_main._rotation--;
}
}
if ((_root.p_pos_y - 150) >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this.e_main._rotation < 10) {
this.e_main._rotation++;
}
}
if (_root.p_pos_x < this._x) {
this._xscale = 100;
}
if (_root.p_pos_x >= this._x) {
this._xscale = -100;
}
if (this._x >= (_root.p_pos_x + 500)) {
if (-30 < mov_x) {
mov_x = mov_x - 1;
}
} else if ((_root.p_pos_x - 500) >= this._x) {
if (mov_x < 30) {
mov_x = mov_x + 1;
}
}
if (((_root.p_pos_x - 700) < this._x) && (this._x < (_root.p_pos_x + 700))) {
if (mov_x < -5) {
mov_x = mov_x + 1;
}
if (5 < mov_x) {
mov_x = mov_x - 1;
}
this.time2++;
if (this.time2 >= this.lag2) {
_root.root.e_efct_box.e_bom01(this._x, this._y + 20, 45);
this.time2 = 0;
this.lag2 = 120 + random(80);
}
}
this.time++;
if (this.time >= this.lag) {
this.time = 0;
this.lag = 10 + random(20);
this.atk_flg = 2 + random(4);
}
}
if (this.atk_flg == 2) {
this.time++;
if (this.time >= this.lag) {
this.msl_flg = 1;
this.time = 0;
this.lag = 120 + random(80);
this.atk_flg = 2 + random(2);
} else {
this.msl_flg = 0;
}
this.gun_flg = 1;
if (150 < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this.e_main._rotation) {
this.e_main._rotation--;
}
}
if (150 >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this.e_main._rotation < 10) {
this.e_main._rotation++;
}
}
if (this._x < (_root.p_pos_x + 1000)) {
this._xscale = -100;
if (mov_x < 30) {
mov_x = mov_x + 1;
}
if (-20 < this.e_main._rotation) {
this.e_main._rotation--;
}
} else if (this._x >= (_root.p_pos_x + 1000)) {
this.time = 0;
this.lag = 60 + random(80);
atksel = random(3);
if (atksel == 0) {
this.atk_flg = 1;
}
if (atksel == 1) {
this.atk_flg = 3;
}
if (atksel == 2) {
this.atk_flg = 5;
}
this.gun_flg = 0;
}
}
if (this.atk_flg == 3) {
this.time++;
if (this.time >= this.lag) {
this.msl_flg = 1;
this.time = 0;
this.lag = 120 + random(80);
this.atk_flg = 2 + random(2);
} else {
this.msl_flg = 0;
}
this.gun_flg = 1;
if (150 < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this.e_main._rotation) {
this.e_main._rotation--;
}
}
if (150 >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this.e_main._rotation < 10) {
this.e_main._rotation++;
}
}
if ((_root.p_pos_x - 1000) < this._x) {
this._xscale = 100;
if (-30 < mov_x) {
mov_x = mov_x - 1;
}
if (-20 < this.e_main._rotation) {
this.e_main._rotation--;
}
} else if ((_root.p_pos_x - 1000) >= this._x) {
this.time = 0;
this.lag = 60 + random(80);
atksel = random(3);
if (atksel == 0) {
this.atk_flg = 1;
}
if (atksel == 1) {
this.atk_flg = 2;
}
if (atksel == 2) {
this.atk_flg = 4;
}
this.gun_flg = 0;
}
}
if (this.atk_flg == 4) {
this.time++;
if (this.time >= this.lag) {
_root.root.e_efct_box.e_bom01(this._x, this._y + 20, 60);
this.time = 0;
this.lag = 10;
}
if (0 < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this.e_main._rotation) {
this.e_main._rotation--;
}
}
if (0 >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this.e_main._rotation < 10) {
this.e_main._rotation++;
}
}
if (this._x < (_root.p_pos_x + 1000)) {
this._xscale = -100;
if (mov_x < 30) {
mov_x = mov_x + 1;
}
if (-20 < this.e_main._rotation) {
this.e_main._rotation--;
}
} else if (this._x >= (_root.p_pos_x + 1000)) {
this.time = 0;
this.lag = 60 + random(80);
atksel = random(3);
if (atksel == 0) {
this.atk_flg = 1;
}
if (atksel == 1) {
this.atk_flg = 3;
}
if (atksel == 2) {
this.atk_flg = 5;
}
this.gun_flg = 0;
}
}
if (this.atk_flg == 5) {
this.time++;
if (this.time >= this.lag) {
_root.root.e_efct_box.e_bom01(this._x, this._y + 20, 60);
this.time = 0;
this.lag = 10;
}
if (0 < this._y) {
if (-20 < mov_y) {
mov_y = mov_y - (1 + random(2));
}
if (-10 < this.e_main._rotation) {
this.e_main._rotation--;
}
}
if (0 >= this._y) {
if (20 >= mov_y) {
mov_y = mov_y + (1 + random(2));
}
if (this.e_main._rotation < 10) {
this.e_main._rotation++;
}
}
if ((_root.p_pos_x - 1000) < this._x) {
this._xscale = 100;
if (-30 < mov_x) {
mov_x = mov_x - 1;
}
if (-20 < this.e_main._rotation) {
this.e_main._rotation--;
}
} else if ((_root.p_pos_x - 1000) >= this._x) {
this.time = 0;
this.lag = 60 + random(80);
atksel = random(3);
if (atksel == 0) {
this.atk_flg = 1;
}
if (atksel == 1) {
this.atk_flg = 2;
}
if (atksel == 2) {
this.atk_flg = 4;
}
this.gun_flg = 0;
}
}
}
if (this.gun_flg == 1) {
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this._xscale) {
this.can_rot = ((-Math.atan2((this.lock_x - this._x) + this.e_main.e_gun._x, this.lock_y - (this._y - 190))) / (Math.PI/180)) - 90;
this.e_main.e_gun.shot_rot = (this.e_main.e_gun._rotation + 180) + this.e_main._rotation;
this.e_main.e_gun.shot_x = this._x + (this.e_main.e_gun._x * Math.cos((Math.PI/180) * this.e_main._rotation));
this.e_main.e_gun.shot_y = this._y + (this.e_main.e_gun._y * Math.sin((Math.PI/180) * this.e_main._rotation));
}
if (this._xscale < 0) {
this.can_rot = (Math.atan2((this.lock_x - this._x) - this.e_main.e_gun._x, this.lock_y - (this._y - 190)) / (Math.PI/180)) - 90;
this.e_main.e_gun.shot_rot = (-this.e_main.e_gun._rotation) + this.e_main._rotation;
this.e_main.e_gun.shot_x = this._x - (this.e_main.e_gun._x * Math.cos((Math.PI/180) * this.e_main._rotation));
this.e_main.e_gun.shot_y = this._y + (this.e_main.e_gun._y * Math.sin((Math.PI/180) * this.e_main._rotation));
}
if (30 < this.can_rot) {
this.can_rot = 40;
}
if (this.can_rot < -40) {
this.can_rot = -60;
}
if (this.e_main.e_gun._currentframe == 1) {
this.e_main.e_gun.gotoAndPlay(3);
}
} else {
this.can_rot = 0;
}
if (this.msl_flg == 1) {
this.shot_x2 = this._x;
if (this.e_main.e_mslpod._currentframe == 1) {
this.e_main.e_mslpod.gotoAndPlay(3);
}
}
if ((this.e_main.e_mslpod._currentframe == 5) || (this.e_main.e_mslpod._currentframe == 12)) {
i = 0;
while (i < 1) {
_root.root.e_efct_box.e_msl01(this.shot_x2, this._y - 20, -180 + random(360), 5, 40);
i++;
}
}
if (this.can_rot < this.e_main.e_gun._rotation) {
this.e_main.e_gun._rotation = this.e_main.e_gun._rotation - 3;
}
if (this.e_main.e_gun._rotation < this.can_rot) {
this.e_main.e_gun._rotation = this.e_main.e_gun._rotation + 3;
}
this.e_main.e_gun._x = this.e_main.wep_pos1._x;
this.e_main.e_gun._y = this.e_main.wep_pos1._y;
this.e_main.e_mslpod._x = this.e_main.wep_pos2._x;
this.e_main.e_mslpod._y = this.e_main.wep_pos2._y;
this._x = this._x + mov_x;
this._y = this._y + mov_y;
if (((_root.ground_left[2] + 150) < this._x) && (this._x < (_root.ground_right[2] - 150))) {
this.gnd_flg = 2;
} else {
this.gnd_flg = 1;
}
}
this.gun_flg = 0;
this.msl_flg = 0;
this.atk_flg = 1;
this.time = 0;
this.lag = 50 + random(80);
this.time2 = 0;
this.lag2 = 60 + random(80);
this.time3 = 0;
this.lag3 = 20 + random(80);
this.time4 = 0;
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
Symbol 812 MovieClip [e_boss03] Frame 2
this.main_script();
this.dmg_script();
Symbol 812 MovieClip [e_boss03] Frame 3
this.gotoAndPlay(2);
Symbol 817 MovieClip Frame 1
gotoAndStop (1);
Symbol 817 MovieClip Frame 3
_root.root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 200, 40, this.shot_rot, 30, 30);
Symbol 832 MovieClip Frame 1
gotoAndStop (1);
Symbol 832 MovieClip Frame 3
_root.root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 200, 40, this.shot_rot, 30, 30);
Symbol 834 MovieClip Frame 60
gotoAndPlay (1);
Symbol 834 MovieClip Frame 85
this.gotoAndPlay(65);
Symbol 834 MovieClip Frame 110
this.gotoAndPlay(90);
Symbol 834 MovieClip Frame 120
this.gotoAndPlay(119);
Symbol 834 MovieClip Frame 130
gotoAndPlay (1);
Symbol 834 MovieClip Frame 140
this.gotoAndPlay(139);
Symbol 834 MovieClip Frame 150
gotoAndPlay (1);
Symbol 834 MovieClip Frame 158
this.gotoAndPlay(157);
Symbol 834 MovieClip Frame 165
this.gotoAndPlay(164);
Symbol 834 MovieClip Frame 180
_parent.anime_flg = random(3);
this.gotoAndPlay(1);
Symbol 834 MovieClip Frame 283
_root.e_num[_parent.num] = 0;
_root.boss_destroy_flg++;
_parent.removeMovieClip();
Symbol 835 MovieClip [e_boss02] Frame 1
function main_script() {
this.smoke._visible = 0;
if (0 >= this.hp) {
this.smoke._visible = 0;
if (180 >= this.e_main._currentframe) {
_root.destroy_num++;
_root.display.combo_counter.combo(1200);
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.time = 0;
this.e_main.gotoAndPlay(181);
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
this.time++;
if ((220 < this.e_main._currentframe) && (this.time < 160)) {
this.efct_num++;
if (2 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 150) - random(300), this._y - random(150), 100, 100);
}
this.e_main.gotoAndPlay(218);
} else if (235 < this.e_main._currentframe) {
this.e_shadow._alpha = 0;
}
this.atk_flg = 0;
} else {
if (this.atk_flg == 0) {
this.tgt_rot = 0;
this.time++;
if (this.lag < this.time) {
this.lag = 20 + random(60);
this.atk_flg = 1;
this.time = 0;
}
}
if (this.jump_flg == 0) {
if (this.anime_flg == 0) {
if (((_root.p_pos_x - 200) < this._x) && (this._x < (_root.p_pos_x + 200))) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
if (((_root.p_pos_x + 200) < this._x) && (this._x < (_root.p_pos_x + 500))) {
this.anime_flg = 1;
}
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
}
if ((this._x < (_root.p_pos_x - 200)) && ((_root.p_pos_x - 500) < this._x)) {
this.anime_flg = 2;
}
if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
}
}
if ((this.anime_flg == 1) || (this.anime_flg == 2)) {
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
} else if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
}
if ((this.anime_flg == 5) || (this.anime_flg == 6)) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.time2 = 0;
this.anime_flg = random(7);
}
}
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = 5 + random(2);
this.time2 = 0;
}
}
if (this.atk_flg == 1) {
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this._xscale) {
this.tgt_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 120))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.tgt_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 120)) / (Math.PI/180)) - 90;
}
if (40 < this.tgt_rot) {
this.tgt_rot = 40;
}
if (this.tgt_rot < -40) {
this.tgt_rot = -40;
}
if (((_root.p_pos_x - 1500) < this._x) && (this._x < (_root.p_pos_x + 1500))) {
if (this.e_main.weparm1.weparm1_main._currentframe == 1) {
this.e_main.weparm1.weparm1_main.gotoAndPlay(3);
}
if (this.e_main.weparm1.weparm1_main._currentframe == 12) {
this.e_main.weparm2.weparm2_main.gotoAndPlay(3);
}
this.cos = Math.cos((Math.PI/180) * this.e_main.weparm1._rotation);
this.sin = Math.sin((Math.PI/180) * this.e_main.weparm1._rotation);
if (0 < this.e_main._xscale) {
this.e_main.weparm1.weparm1_main.shot_rot = this.e_main.weparm1._rotation + 180;
this.e_main.weparm2.weparm2_main.shot_rot = this.e_main.weparm2._rotation + 180;
this.e_main.weparm1.weparm1_main.shot_x = (this._x - (60 * this.cos)) - (75 * this.sin);
this.e_main.weparm1.weparm1_main.shot_y = (this._y + this.e_main.weparm1._y) + (75 * this.cos);
this.e_main.weparm2.weparm2_main.shot_x = (this._x - (60 * this.cos)) - (75 * this.sin);
this.e_main.weparm2.weparm2_main.shot_y = (this._y + this.e_main.weparm2._y) + (75 * this.cos);
}
if (this.e_main._xscale < 0) {
this.e_main.weparm1.weparm1_main.shot_rot = -this.e_main.weparm1._rotation;
this.e_main.weparm2.weparm2_main.shot_rot = -this.e_main.weparm2._rotation;
this.e_main.weparm1.weparm1_main.shot_x = (this._x + (60 * this.cos)) + (75 * this.sin);
this.e_main.weparm1.weparm1_main.shot_y = (this._y + this.e_main.weparm1._y) + (75 * this.cos);
this.e_main.weparm2.weparm2_main.shot_x = (this._x + (60 * this.cos)) + (75 * this.sin);
this.e_main.weparm2.weparm2_main.shot_y = (this._y + this.e_main.weparm2._y) + (75 * this.cos);
}
}
this.time++;
if (this.lag < this.time) {
i = 0;
while (i < 2) {
if (0 < this.e_main._xscale) {
_root.root.e_efct_box.e_msl01(this._x + 50, this._y - 150, -180 + random(360), 10, 30);
}
if (this.e_main._xscale < 0) {
_root.root.e_efct_box.e_msl01(this._x - 50, this._y - 150, -180 + random(360), 10, 30);
}
i++;
}
this.lag = 30 + random(40);
this.atk_flg = 0;
this.time = 0;
this.anime_flg = 2 + random(5);
}
}
if (60 >= this.e_main._currentframe) {
if (this._x >= _root.p_pos_x) {
this.e_main._xscale = 100;
}
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
if (this.anime_flg == 6) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 5) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(166);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if (this.anime_flg == 2) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(65);
}
if (this.anime_flg == 1) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(65);
}
}
if ((60 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if ((60 < this.e_main._currentframe) && (85 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 5) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(166);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if (this.anime_flg == 2) {
if (this.mov_max >= this.mov_x) {
this.mov_x++;
}
if (this.mov_max < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(95);
}
}
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (-this.mov_max)) {
this.mov_x--;
}
if (this.mov_x < (-this.mov_max)) {
this.mov_x++;
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(95);
}
}
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
if ((90 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 5) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(115);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(166);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if (this.anime_flg == 2) {
if (this.mov_max >= this.mov_x) {
this.mov_x++;
}
if (this.mov_max < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (-this.mov_max)) {
this.mov_x--;
}
if (this.mov_x < (-this.mov_max)) {
this.mov_x++;
}
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(65);
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
}
if ((this.e_main._currentframe >= 110) && (150 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(152);
}
if ((this.e_main._currentframe == 118) || (this.e_main._currentframe == 138)) {
if (this.anime_flg == 5) {
this.mov_x = (-this.mov_max) * 5;
}
if (this.anime_flg == 6) {
this.mov_x = this.mov_max * 5;
}
}
if (this.e_main._currentframe == 119) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(122);
}
if (this.anime_flg == 5) {
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(135);
}
}
if (((-this.mov_max) * 3) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < ((-this.mov_max) * 3)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(135);
}
}
if ((this.mov_max * 3) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (this.mov_max * 3)) {
this.mov_x++;
}
}
}
if (this.e_main._currentframe == 139) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(142);
}
if (this.anime_flg == 5) {
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(115);
}
if (((-this.mov_max) * 3) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < ((-this.mov_max) * 3)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(115);
}
if ((this.mov_max * 3) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (this.mov_max * 3)) {
this.mov_x++;
}
}
}
}
if (this.e_main._currentframe == 156) {
this.mov_y = -15 - random(20);
}
if ((150 < this.e_main._currentframe) && (180 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 157) {
if (this.mov_x == 0) {
if (0 < this.e_main._xscale) {
this.mov_x = -10;
}
if (this.e_main._xscale < 0) {
this.mov_x = 10;
}
}
if (this.mov_y >= 0) {
this.e_main.gotoAndPlay(159);
}
}
if (this.e_main._currentframe == 164) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(166);
}
}
}
if ((166 < this.e_main._currentframe) && (180 >= this.e_main._currentframe)) {
this.efct_cnt++;
if (1 < this.efct_cnt) {
this.efct_cnt = -1;
_root.root._y = 150 + this.efct_cnt;
if ((167 < this.e_main._currentframe) && (175 >= this.e_main._currentframe)) {
_root.root.e_efct_box.efct_wave01(this._x, this._y, 200, 200, 0, 50);
}
}
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
} else {
this.efct_cnt = -1;
}
if (this.tgt_rot < this.e_main.weparm1._rotation) {
this.e_main.weparm1._rotation = this.e_main.weparm1._rotation - 2;
}
if (this.e_main.weparm1._rotation < this.tgt_rot) {
this.e_main.weparm1._rotation = this.e_main.weparm1._rotation + 2;
}
if (this.tgt_rot < this.e_main.weparm2._rotation) {
this.e_main.weparm2._rotation = this.e_main.weparm2._rotation - 2;
}
if (this.e_main.weparm2._rotation < this.tgt_rot) {
this.e_main.weparm2._rotation = this.e_main.weparm2._rotation + 2;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
if ((220 < this.e_main._currentframe) && (270 >= this.e_main._currentframe)) {
if ((this.e_main._currentframe >= 225) && (230 >= this.e_main._currentframe)) {
if (0 < this.mov_y) {
this.e_main.gotoAndPlay(231);
}
}
if ((this.e_main._currentframe >= 235) && (240 >= this.e_main._currentframe)) {
if (0 >= this.mov_y) {
this.e_main.gotoAndPlay(241);
}
}
if ((this.e_main._currentframe >= 255) && (260 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
if ((0 < this.e_hp) && (this.mov_x != 0)) {
this.e_main.gotoAndPlay(261);
}
}
}
this.e_main.weparm1._x = this.e_main.arm1_pos._x;
this.e_main.weparm1._y = this.e_main.arm1_pos._y;
this.e_main.weparm2._x = this.e_main.arm2_pos._x;
this.e_main.weparm2._y = this.e_main.arm2_pos._y;
if ((_root.ground_left[2] < this._x) && (this._x < _root.ground_right[2])) {
this.gnd_flg = 2;
} else {
this.gnd_flg = 1;
}
if (this.gnd_hit.hitTest(_root.root.bg_box.field.ground_hit2) && (this.gnd_flg != 2)) {
this.anime_flg = 3;
}
}
this.tgt_rot = 0;
this.atk_flg = 0;
this.anime_flg = 3;
this.jump_flg = 1;
this.time = 0;
this.lag = 60 + random(60);
this.time2 = 0;
this.lag2 = 30 + random(60);
this.efct_cnt = -1;
this.efct_num = 0;
this.gnd_flg = 0;
this.mov_max = 6;
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
}
}
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 100;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 835 MovieClip [e_boss02] Frame 2
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 835 MovieClip [e_boss02] Frame 3
this.gotoAndPlay(2);
Symbol 847 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 847 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 852 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 852 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 855 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 855 MovieClip Frame 115
this.gotoAndPlay(75);
Symbol 855 MovieClip Frame 150
this.gotoAndPlay(145);
Symbol 855 MovieClip Frame 165
_parent.atk_flg = 0;
_parent.time = 0;
this.gotoAndPlay(1);
Symbol 855 MovieClip Frame 190
this.gotoAndPlay(185);
Symbol 855 MovieClip Frame 200
if (((_root.p_pos_x - 300) < _parent._x) && (_parent._x < (_root.p_pos_x + 300))) {
_parent.atk_flg = random(2);
} else {
_parent.atk_flg = 2 + random(2);
}
_parent.time = 0;
_parent.lag = 20 + random(30);
this.gotoAndPlay(1);
Symbol 855 MovieClip Frame 241
this.gotoAndPlay(240);
Symbol 855 MovieClip Frame 305
_root.e_num[_parent.num] = 0;
_root.boss_destroy_flg++;
_parent.removeMovieClip();
Symbol 856 MovieClip [e_boss01] Frame 1
function destroy_script() {
if (0 >= this.hp) {
this.smoke_tankdash._visible = 0;
if (200 >= this.boss_main._currentframe) {
_root.alert_flg = 0;
_root.destroy_num++;
_root.display.combo_counter.combo(600);
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
this.time = 0;
this.boss_main.gotoAndPlay(205);
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
if (this.boss_main._currentframe == 240) {
this.time++;
if (160 >= this.time) {
this.efct_num++;
this.boss_main._y = this.efct_num - 1;
if (2 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 300) - random(600), this._y - random(300), 100, 100);
}
}
if (160 < this.time) {
this.boss_main.gotoAndPlay(242);
}
} else if (245 < this.boss_main._currentframe) {
this.e_shadow._alpha = 0;
}
}
}
function main_script() {
if (0 < this.hp) {
if ((-300 >= this._x) || (this._x >= 5300)) {
this.atk_flg = 1;
}
this.time++;
if (this.boss_main.boss_dmgarea.hitTest(_root.root.p_box.player.p_hit_area)) {
if (_root.p_dmg_flg == 0) {
_root.hit_mov_y = -20;
_root.p_hp = _root.p_hp - ((50 - _root.a_defense_main) - _root.dash_defense);
if (this.mov_x < 0) {
_root.root.efct_box.efct_crash01(_root.p_pos_x, _root.p_pos_y - 50, -100, 100);
_root.hit_mov_x = -20;
_root.root.p_box.player.anime_flg = 9;
}
if (0 < this.mov_x) {
_root.root.efct_box.efct_crash01(_root.p_pos_x, _root.p_pos_y - 50, 100, 100);
_root.hit_mov_x = 20;
_root.root.p_box.player.anime_flg = 9;
}
_root.p_mov_x = _root.hit_mov_x;
_root.p_mov_y = _root.hit_mov_y;
}
}
if (this.atk_flg == 5) {
_root.alert_flg = 1;
if (!((this.boss_main._currentframe >= 120) && (165 >= this.boss_main._currentframe))) {
this.boss_main.gotoAndPlay(121);
}
if ((this.boss_main._currentframe >= 145) && (150 >= this.boss_main._currentframe)) {
this.smoke_tankdash._visible = 1;
if (this.mov_x < 30) {
this.mov_x++;
}
if ((_root.p_pos_x + 400) < this._x) {
this.boss_main.gotoAndPlay(151);
}
}
} else if (this.atk_flg == 4) {
_root.alert_flg = 1;
if (!((this.boss_main._currentframe >= 120) && (165 >= this.boss_main._currentframe))) {
this.boss_main.gotoAndPlay(121);
}
if ((this.boss_main._currentframe >= 145) && (150 >= this.boss_main._currentframe)) {
this.smoke_tankdash._visible = 1;
if (-30 < this.mov_x) {
this.mov_x--;
}
if (this._x < (_root.p_pos_x - 400)) {
this.boss_main.gotoAndPlay(151);
}
}
} else {
_root.alert_flg = 0;
this.smoke_tankdash._visible = 0;
}
if (this.atk_flg == 2) {
if (_root.p_pos_x < this._x) {
this._xscale = 100;
this.atk_flg = 4;
}
if (this._x < _root.p_pos_x) {
this._xscale = -100;
this.atk_flg = 5;
}
}
if (this.atk_flg == 3) {
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
if (!((this.boss_main._currentframe >= 165) && (200 >= this.boss_main._currentframe))) {
this.boss_main.gotoAndPlay(166);
this.time2 = 0;
if (_root.p_pos_x < this._x) {
this._xscale = 100;
}
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
}
if ((this.boss_main._currentframe >= 185) && (190 >= this.boss_main._currentframe)) {
if (this.boss_main.boss01_cannon._currentframe == 7) {
this.shot_x = this._x;
this.shot_y = (this._y + this.boss_main.boss01_cannon._y) - 25;
if (0 < this._xscale) {
this.can_rot2 = this.boss_main.boss01_cannon._rotation + 180;
}
if (this._xscale < 0) {
this.can_rot2 = -this.boss_main.boss01_cannon._rotation;
}
_root.root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 400, 70, this.can_rot2, 100, 80);
this.lock_hold = 0;
}
this.lag = 40;
if (this.lag < this.time) {
this.boss_main.boss01_mslpod.gotoAndPlay(5);
_root.root.e_efct_box.e_msl01(this._x, this._y - 100, 90 + random(180), random(8), 30);
this.time = 0;
}
this.time2++;
if ((this.time2 % 20) == 0) {
this.lock_num++;
_root.root.e_efct_box.e_lock02(this._x, this._y - 170, this.num, this.lock_num);
}
if (240 < this.time2) {
this.lock_num = 0;
this.time2 = 0;
this.boss_main.gotoAndPlay(191);
}
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this._xscale) {
this.can_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 190))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.can_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 190)) / (Math.PI/180)) - 90;
}
if (40 < this.can_rot) {
this.can_rot = 40;
}
if (this.can_rot < -20) {
this.can_rot = -20;
}
if (this.cannon_flg == 1) {
this.boss_main.boss01_cannon.gotoAndPlay(5);
this.cannon_flg = 0;
}
}
} else {
this.can_rot = 0;
}
if (this.atk_flg == 1) {
if ((_root.p_pos_x + 200) < this._x) {
this._xscale = 100;
if (-6 < this.mov_x) {
this.mov_x--;
}
}
if (this._x < (_root.p_pos_x - 200)) {
this._xscale = -100;
if (this.mov_x < 6) {
this.mov_x++;
}
}
if (!((this.boss_main._currentframe >= 60) && (135 >= this.boss_main._currentframe))) {
this.boss_main.gotoAndPlay(65);
}
if (this.lag < this.time) {
if ((this._x >= (_root.p_pos_x - 300)) && ((_root.p_pos_x + 300) >= this._x)) {
this.time = 0;
this.time2 = 0;
this.lag = 20 + random(10);
this.atk_flg = random(3);
} else if ((this._x < (_root.p_pos_x - 300)) || ((_root.p_pos_x + 300) < this._x)) {
this.time = 0;
this.time2 = 0;
this.lag = 20 + random(10);
this.atk_flg = 2 + random(2);
}
}
if (this.boss_main._currentframe == 87) {
this.time2 = 0;
this.boss_main.boss01_mslpod.gotoAndPlay(5);
_root.root.e_efct_box.e_msl01(this._x, this._y - 100, 90 + random(180), 5 + random(8), 30);
}
}
if (this.atk_flg == 0) {
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
if (60 < this.boss_main._currentframe) {
this.boss_main.gotoAndPlay(1);
}
if (this.lag < this.time) {
if ((this._x >= (_root.p_pos_x - 300)) && ((_root.p_pos_x + 300) >= this._x)) {
this.time = 0;
this.time2 = 0;
this.lag = 20 + random(10);
this.atk_flg = random(4);
}
if ((this._x < (_root.p_pos_x - 300)) || ((_root.p_pos_x + 300) < this._x)) {
this.time = 0;
this.time2 = 0;
this.lag = 20 + random(10);
this.atk_flg = 1 + random(3);
} else {
this.time = 0;
this.time2 = 0;
this.lag = 20 + random(10);
this.atk_flg = 1;
}
}
}
if (this.can_rot < this.boss_main.boss01_cannon._rotation) {
this.boss_main.boss01_cannon._rotation--;
}
if (this.boss_main.boss01_cannon._rotation < this.can_rot) {
this.boss_main.boss01_cannon._rotation++;
}
_root.anime_flg = this.lock_num;
}
}
this.time = 0;
this.time2 = 0;
this.lock_num = 0;
this.efct_num = 0;
if (_root._p_pos_x < this._x) {
this.atk_flg = 4;
}
if (this._x < _root._p_pos_x) {
this.atk_flg = 5;
}
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 100;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 856 MovieClip [e_boss01] Frame 2
this.dmg_script();
this.destroy_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 856 MovieClip [e_boss01] Frame 3
if (_root.efct_switch == 1) {
if ((-200 < (this._x + _root.pos_box._x)) && ((this._x + _root.pos_box._x) < 840)) {
if ((this.boss_main._currentframe == 85) || (this.boss_main._currentframe == 105)) {
_root.efct_num++;
_root.p_shot_box.smoke02(this._x - 150, this._y - 20, 70 + random(50), 70 + random(50), 50 - random(100));
_root.efct_num++;
_root.p_shot_box.smoke02(this._x + 150, this._y - 20, 70 + random(50), 70 + random(50), 50 - random(100));
_root.efct_num++;
_root.p_shot_box.smoke02(this._x - 150, this._y - 20, 70 + random(50), 70 + random(50), 50 - random(100));
_root.efct_num++;
_root.p_shot_box.smoke02(this._x + 150, this._y - 20, 70 + random(50), 70 + random(50), 50 - random(100));
}
}
}
this.gotoAndPlay(2);
Symbol 859 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 859 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 859 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 860 MovieClip [e_bom01] Frame 1
this.mov_y = 0;
this.hit_flg = 0;
Symbol 860 MovieClip [e_bom01] Frame 2
if (this.hit_flg == 0) {
this.mov_y++;
this._y = this._y + this.mov_y;
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit2)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit3)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit4)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit5)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit6)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit7)) {
this.hit_flg = 3;
}
if (this.e_bom01_main.hitTest(_root.root.bg_box.field.ground_hit8)) {
this.hit_flg = 3;
}
}
if (this.e_bom01_main.bom_hitarea.hitTest(_root.root.p_box.player.p_hit_area) && (this.hit_flg == 4)) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (_root.p_pos_x < this._x) {
_root.hit_mov_x = -15;
}
if (this._x < _root.p_pos_x) {
_root.hit_mov_x = 15;
}
}
if (this.e_bom01_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt1.hitarea)) {
_root.root.other_box.def_tgt1.dmg = this.dmg / 5;
_root.root.other_box.def_tgt1.hit_flg = 1;
}
if (this.e_bom01_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt2.hitarea)) {
_root.root.other_box.def_tgt2.dmg = this.dmg / 5;
_root.root.other_box.def_tgt2.hit_flg = 1;
}
if (this.e_bom01_main.bom_hitarea.hitTest(_root.root.other_box.def_tgt3.hitarea)) {
_root.root.other_box.def_tgt3.dmg = this.dmg / 5;
_root.root.other_box.def_tgt3.hit_flg = 1;
}
if (this.hit_flg == 1) {
this.e_bom01_main.gotoAndPlay(5);
this.hit_flg = 2;
} else if (this.hit_flg == 3) {
this.e_bom01_main.gotoAndPlay(20);
this.hit_flg = 4;
} else if (this.hit_flg == 5) {
_root.display.combo_counter.combo(1);
this.e_bom01_main.gotoAndPlay(5);
this.hit_flg = 2;
}
Symbol 860 MovieClip [e_bom01] Frame 3
this.gotoAndPlay(2);
Symbol 875 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 875 MovieClip Frame 4
_root.root.e_efct_box.e_shot02(this.shot_x, this.shot_y, 100, 20, this.shot_rot, 30, 5);
Symbol 875 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 878 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 878 MovieClip Frame 4
_root.root.e_efct_box.e_shot_bz(this.shot_x, this.shot_y, 100, 100, this.shot_rot, 40, 30);
Symbol 878 MovieClip Frame 35
this.gotoAndPlay(1);
Symbol 881 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 881 MovieClip Frame 4
_root.root.e_efct_box.e_msl01(this.shot_x, this.shot_y, -180 - random(80), 5, 15);
_root.root.e_efct_box.e_msl01(this.shot_x, this.shot_y, 180 + random(80), 5, 15);
Symbol 881 MovieClip Frame 80
this.gotoAndPlay(1);
Symbol 883 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 883 MovieClip Frame 4
_root.root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 300, 30, this.shot_rot, 50, 50);
Symbol 883 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 925 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 925 MovieClip Frame 85
this.gotoAndPlay(65);
Symbol 925 MovieClip Frame 115
this.gotoAndPlay(95);
Symbol 925 MovieClip Frame 145
_parent.anime_flg = random(3);
this.gotoAndPlay(1);
Symbol 925 MovieClip Frame 170
_parent.anime_flg = random(3);
this.gotoAndPlay(1);
Symbol 925 MovieClip Frame 181
this.gotoAndPlay(180);
Symbol 925 MovieClip Frame 186
this.gotoAndPlay(185);
Symbol 925 MovieClip Frame 199
_parent.anime_flg = 1;
this.gotoAndPlay(1);
Symbol 925 MovieClip Frame 206
this.gotoAndPlay(205);
Symbol 925 MovieClip Frame 211
this.gotoAndPlay(210);
Symbol 925 MovieClip Frame 226
this.gotoAndPlay(225);
Symbol 925 MovieClip Frame 240
this.gotoAndPlay(1);
Symbol 926 MovieClip [e_armor02] Frame 1
this.tgt_rot = 0;
this.atk_flg = 0;
this.anime_flg = 4;
this.jump_flg = 1;
this.time = 0;
this.time2 = 0;
this.time3 = 0;
this.efct_cnt = -1;
this.end_flg = 0;
this.c = 0;
this.lag_def = 20;
this.lag_avg = 30;
this.lag = this.lag_def + random(this.lag_avg);
this.lag2 = this.lag_def + random(this.lag_avg);
this.lag3 = (this.lag_def * 3) + random(this.lag_avg * 2);
this.walk_spd = 5;
this.dash_spd1 = 30;
this.dash_spd2 = 20;
this.jump_pw1 = 15;
this.jump_pw2 = 20;
this.hit_mov_x = 0;
this.hit_mov_y = 0;
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
function main_script() {
this.smoke._visible = 0;
if (0 >= this.hp) {
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
if (215 >= this.e_main._currentframe) {
_root.destroy_num++;
_root.display.combo_counter.combo(15);
this.mov_y = -10;
this.e_main.gotoAndPlay(221);
}
if ((((_root.p_pos_x - 300) < this._x) && (this._x < (_root.p_pos_x + 300))) && (_root.efct_switch == 1)) {
this.efct_num++;
if (7 < this.efct_num) {
this.efct_num = 0;
_root.root.efct_box.efct_bom01((this._x + 25) - random(50), this._y - random(50), 60, 60);
}
}
this.e_main._alpha = this.e_main._alpha - 6;
if (5 >= this.e_main._alpha) {
if (this.hp_max >= 100) {
_root.boss_destroy_flg++;
}
_root.e_num[this.num] = 0;
this.removeMovieClip();
}
this.e_main.head._rotation = this.e_main.body._rotation;
this.e_main.wep_arm._rotation = this.e_main.head._rotation - 90;
this.atk_flg = 0;
} else {
if (this.atk_flg == 0) {
this.tgt_rot = 0;
this.time++;
if (this.lag < this.time) {
this.lag = this.lag_def + random(this.lag_avg);
this.atk_flg = 1;
this.time = 0;
}
}
if (this.jump_flg == 0) {
if (this.anime_flg == 0) {
if (((_root.p_pos_x - 200) < this._x) && (this._x < (_root.p_pos_x + 200))) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = this.lag_def + random(this.lag_avg);
this.anime_flg = random(7);
this.time2 = 0;
}
}
if (((_root.p_pos_x + 200) < this._x) && (this._x < (_root.p_pos_x + 500))) {
this.anime_flg = 1;
}
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
}
if ((this._x < (_root.p_pos_x - 200)) && ((_root.p_pos_x - 500) < this._x)) {
this.anime_flg = 2;
}
if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
}
}
if ((this.anime_flg == 1) || (this.anime_flg == 2)) {
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
} else if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = this.lag_def + random(this.lag_avg);
this.anime_flg = random(7);
this.time2 = 0;
}
}
}
if ((this.anime_flg == 5) || (this.anime_flg == 6)) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = this.lag_def + random(this.lag_avg);
this.anime_flg = random(7);
this.time2 = 0;
}
}
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = this.lag_def + random(this.lag_avg);
this.anime_flg = 5 + random(2);
this.time2 = 0;
}
}
if (60 >= this.e_main._currentframe) {
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
}
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
if (this.anime_flg == 6) {
this._xscale = -100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 5) {
this._xscale = 100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(190);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(175);
}
if (this.anime_flg == 2) {
this._xscale = -100;
this.e_main.gotoAndPlay(61);
}
if (this.anime_flg == 1) {
this._xscale = 100;
this.e_main.gotoAndPlay(61);
}
}
if ((60 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if ((60 < this.e_main._currentframe) && (85 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this._xscale = -100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 5) {
this._xscale = 100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(190);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(175);
}
if (this.anime_flg == 2) {
if (this.walk_spd >= this.mov_x) {
this.mov_x++;
}
if (this.walk_spd < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
this.e_main.gotoAndPlay(91);
}
}
if (this.atk_flg == 0) {
this._xscale = -100;
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (-this.walk_spd)) {
this.mov_x--;
}
if (this.mov_x < (-this.walk_spd)) {
this.mov_x++;
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this._xscale = -100;
this.e_main.gotoAndPlay(91);
}
}
if (this.atk_flg == 0) {
this._xscale = 100;
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
if ((90 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this._xscale = -100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 5) {
this._xscale = 100;
this.e_main.gotoAndPlay(125);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(190);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(175);
}
if (this.anime_flg == 2) {
if (((this.walk_spd / 3) * 2) >= this.mov_x) {
this.mov_x++;
}
if (((this.walk_spd / 3) * 2) < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 0) {
this._xscale = -100;
this.e_main.gotoAndPlay(61);
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (((-this.walk_spd) / 3) * 2)) {
this.mov_x--;
}
if (this.mov_x < (((-this.walk_spd) / 3) * 2)) {
this.mov_x++;
}
if (this.atk_flg == 0) {
this._xscale = 100;
this.e_main.gotoAndPlay(61);
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
}
}
if ((this.e_main._currentframe >= 120) && (170 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(175);
}
if ((this.e_main._currentframe == 128) || (this.e_main._currentframe == 153)) {
if (this.anime_flg == 5) {
this.mov_x = -this.dash_spd1;
}
if (this.anime_flg == 6) {
this.mov_x = this.dash_spd1;
}
}
if ((this.e_main._currentframe >= 120) && (145 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 130) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(132);
}
if (this.anime_flg == 5) {
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this._xscale = -100;
this.e_main.gotoAndPlay(154);
}
}
if ((-this.dash_spd2) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (-this.dash_spd2)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this._xscale = 100;
this.e_main.gotoAndPlay(154);
}
}
if (this.dash_spd2 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < this.dash_spd2) {
this.mov_x++;
}
}
}
}
if ((this.e_main._currentframe >= 145) && (170 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 155) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(157);
}
if (this.anime_flg == 5) {
if (this.atk_flg == 0) {
this._xscale = 100;
this.e_main.gotoAndPlay(129);
}
if ((-this.dash_spd2) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (-this.dash_spd2)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.atk_flg == 0) {
this._xscale = -100;
this.e_main.gotoAndPlay(129);
}
if (this.dash_spd2 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < this.dash_spd2) {
this.mov_x++;
}
}
}
}
}
if ((this.e_main._currentframe >= 180) && (185 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 180) {
if (this.mov_y >= 0) {
this.e_main.gotoAndPlay(182);
}
}
if (this.e_main._currentframe == 185) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(190);
}
}
}
if ((this.e_main._currentframe >= 190) && (200 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
}
if (this.e_main._currentframe == 178) {
this.mov_y = (-this.jump_pw1) - random(this.jump_pw2);
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this._xscale = -100;
}
if (_root.p_pos_x < this._x) {
this._xscale = 100;
}
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this._xscale) {
this.tgt_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 20))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.tgt_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 20)) / (Math.PI/180)) - 90;
}
if (60 < this.tgt_rot) {
this.tgt_rot = 60;
}
if (this.tgt_rot < -60) {
this.tgt_rot = -60;
}
if (((_root.p_pos_x - 500) < this._x) && (this._x < (_root.p_pos_x + 500))) {
if (this.e_main.wep_arm.e_weparm._currentframe == 1) {
this.e_main.wep_arm.e_weparm.gotoAndPlay(3);
}
this.e_main.wep_arm.e_weparm.shot_x = this._x;
this.e_main.wep_arm.e_weparm.shot_y = this._y + (this.e_main.wep_arm._y * 0.67);
if (0 < this._xscale) {
this.e_main.wep_arm.e_weparm.shot_rot = this.e_main.wep_arm._rotation + 180;
}
if (this._xscale < 0) {
this.e_main.wep_arm.e_weparm.shot_rot = -this.e_main.wep_arm._rotation;
}
}
this.time++;
if (this.lag < this.time) {
this.lag = this.lag_def + random(this.lag_avg);
this.atk_flg = 0;
this.time = 0;
}
}
}
if ((220 < this.e_main._currentframe) && (270 >= this.e_main._currentframe)) {
if ((this.e_main._currentframe >= 225) && (230 >= this.e_main._currentframe)) {
if (0 < this.mov_y) {
this.e_main.gotoAndPlay(231);
}
}
if ((this.e_main._currentframe >= 235) && (240 >= this.e_main._currentframe)) {
if (0 >= this.mov_y) {
this.e_main.gotoAndPlay(241);
}
}
if ((this.e_main._currentframe >= 255) && (260 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((this.mov_x < 1) && (this.mov_x < -1)) {
this.mov_x = 0;
}
if ((0 < this.e_hp) && (this.mov_x != 0)) {
this.e_main.gotoAndPlay(261);
}
}
}
this.e_main.head._x = this.e_main.head_pos._x;
this.e_main.head._y = this.e_main.head_pos._y;
this.e_main.wep_arm._x = this.e_main.wep_arm_pos._x;
this.e_main.wep_arm._y = this.e_main.wep_arm_pos._y;
this.e_main.wep_arm.gotoAndStop(this.type1);
this.e_main.head._rotation = this.tgt_rot;
if (this.tgt_rot < this.e_main.wep_arm._rotation) {
this.e_main.wep_arm._rotation = this.e_main.wep_arm._rotation - 5;
}
if (this.e_main.wep_arm._rotation < this.tgt_rot) {
this.e_main.wep_arm._rotation = this.e_main.wep_arm._rotation + 5;
}
}
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 15;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 926 MovieClip [e_armor02] Frame 2
this.p_main.e_wep_arm.e_weparm.weparm_h.gotoAndStop(2);
this.p_main.e_wep_arm.e_weparm.weparm_s.gotoAndStop(2);
this.e_main.wep_arm.gotoAndStop(this.type1);
this.time3++;
if (this.lag3 < this.time3) {
this.lag3 = (this.lag_def * 3) + random(this.lag_avg * 2);
this.time3 = 0;
this.type1 = random(4) + 1;
}
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
Symbol 926 MovieClip [e_armor02] Frame 3
this.gotoAndPlay(2);
Symbol 964 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 964 MovieClip Frame 85
this.gotoAndPlay(65);
Symbol 964 MovieClip Frame 115
this.gotoAndPlay(95);
Symbol 964 MovieClip Frame 135
this.gotoAndPlay(130);
Symbol 964 MovieClip Frame 145
_parent.anime_flg = 0;
this.gotoAndPlay(1);
Symbol 964 MovieClip Frame 160
this.gotoAndPlay(155);
Symbol 964 MovieClip Frame 170
_parent.anime_flg = 0;
this.gotoAndPlay(1);
Symbol 964 MovieClip Frame 185
this.gotoAndPlay(180);
Symbol 964 MovieClip Frame 195
this.gotoAndPlay(190);
Symbol 964 MovieClip Frame 215
_parent.anime_flg = random(3);
this.gotoAndPlay(1);
Symbol 964 MovieClip Frame 231
this.gotoAndPlay(230);
Symbol 964 MovieClip Frame 241
this.gotoAndPlay(240);
Symbol 964 MovieClip Frame 261
this.gotoAndPlay(260);
Symbol 964 MovieClip Frame 270
this.gotoAndPlay(1);
Symbol 964 MovieClip Frame 280
this.gotoAndPlay(1);
Symbol 965 MovieClip [e_armor01] Frame 1
this.tgt_rot = 0;
this.atk_flg = 0;
this.anime_flg = 0;
this.jump_flg = 1;
this.time = 0;
this.lag = 60 + random(60);
this.time2 = 0;
this.lag2 = 30 + random(60);
this.efct_cnt = -1;
this.end_flg = 0;
this.walk_spd = 4;
this.dash_spd1 = 20;
this.dash_spd2 = 15;
this.jump_pw1 = 13;
this.jump_pw2 = 15;
this.hit_mov_x = 0;
this.hit_mov_y = 0;
function main_script() {
this.smoke._visible = 0;
if (0 >= this.hp) {
this.e_hp._alpha = 0;
_root.display.rader.rader_main["e_p" + this.num].removeMovieClip();
if (215 >= this.e_main._currentframe) {
this.mov_y = -10;
this.e_main.gotoAndPlay(221);
}
if ((((_root.p_pos_x - 300) < this._x) && (this._x < (_root.p_pos_x + 300))) && (_root.efct_switch == 1)) {
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
_root.root.efct_box.efct_bom01((this._x + 25) - random(50), this._y - random(50), 60, 60);
}
}
this.e_main._alpha = this.e_main._alpha - 6;
if (5 >= this.e_main._alpha) {
if (this.hp_max >= 100) {
_root.boss_destroy_flg++;
}
_root.destroy_num++;
_root.display.combo_counter.combo(15);
_root.e_num[this.num] = 0;
this.removeMovieClip();
}
this.e_main.head._rotation = this.e_main.body._rotation;
this.e_main.wep_arm._rotation = this.e_main.head._rotation - 90;
this.atk_flg = 0;
} else {
if (this.atk_flg == 0) {
this.tgt_rot = 0;
this.time++;
if (this.lag < this.time) {
this.lag = 60 + random(60);
this.atk_flg = 1;
this.time = 0;
}
}
if (this.jump_flg == 0) {
if (this.anime_flg == 0) {
if (((_root.p_pos_x - 200) < this._x) && (this._x < (_root.p_pos_x + 200))) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
if (((_root.p_pos_x + 200) < this._x) && (this._x < (_root.p_pos_x + 500))) {
this.anime_flg = 1;
}
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
}
if ((this._x < (_root.p_pos_x - 200)) && ((_root.p_pos_x - 500) < this._x)) {
this.anime_flg = 2;
}
if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
}
}
if ((this.anime_flg == 1) || (this.anime_flg == 2)) {
if (this._x >= (_root.p_pos_x + 500)) {
this.anime_flg = 5;
} else if ((_root.p_pos_x - 500) >= this._x) {
this.anime_flg = 6;
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
}
if ((this.anime_flg == 5) || (this.anime_flg == 6)) {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = random(7);
this.time2 = 0;
}
}
} else {
this.time2++;
if (this.lag2 < this.time2) {
this.lag2 = 30 + random(60);
this.anime_flg = 5 + random(2);
this.time2 = 0;
}
}
if (60 >= this.e_main._currentframe) {
if (this._x >= _root.p_pos_x) {
this.e_main._xscale = 100;
}
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
if (this.anime_flg == 6) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 5) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(187);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(171);
}
if (this.anime_flg == 2) {
this.e_main.gotoAndPlay(61);
}
if (this.anime_flg == 1) {
this.e_main.gotoAndPlay(61);
}
if (this.anime_flg == 95) {
this.anime_flg = 96;
this.e_main.gotoAndPlay(271);
}
if (this.anime_flg == 195) {
this.anime_flg = 196;
this.e_main.gotoAndPlay(220);
}
}
if ((60 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if ((60 < this.e_main._currentframe) && (85 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 5) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(187);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(171);
}
if (this.anime_flg == 2) {
if (this.walk_spd >= this.mov_x) {
this.mov_x++;
}
if (this.walk_spd < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 1) {
if (this._x >= _root.p_pos_x) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(91);
}
}
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (-this.walk_spd)) {
this.mov_x--;
}
if (this.mov_x < (-this.walk_spd)) {
this.mov_x++;
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(91);
}
}
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
if (this.anime_flg == 95) {
this.anime_flg = 96;
this.e_main.gotoAndPlay(271);
}
if (this.anime_flg == 195) {
this.anime_flg = 196;
this.e_main.gotoAndPlay(220);
}
}
if ((90 < this.e_main._currentframe) && (115 >= this.e_main._currentframe)) {
if (this.anime_flg == 6) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 5) {
this.e_main.gotoAndPlay(120);
}
if (this.anime_flg == 4) {
this.e_main.gotoAndPlay(187);
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(171);
}
if (this.anime_flg == 2) {
if (((this.walk_spd / 3) * 2) >= this.mov_x) {
this.mov_x++;
}
if (((this.walk_spd / 3) * 2) < this.mov_x) {
this.mov_x--;
}
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(61);
}
}
if (this.anime_flg == 1) {
if (this.mov_x >= (((-this.walk_spd) / 3) * 2)) {
this.mov_x--;
}
if (this.mov_x < (((-this.walk_spd) / 3) * 2)) {
this.mov_x++;
}
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(61);
}
}
if (this.anime_flg == 0) {
this.e_main.gotoAndPlay(1);
}
if (this.anime_flg == 95) {
this.anime_flg = 96;
this.e_main.gotoAndPlay(271);
}
if (this.anime_flg == 195) {
this.anime_flg = 196;
this.e_main.gotoAndPlay(220);
}
}
}
if ((this.e_main._currentframe >= 120) && (170 >= this.e_main._currentframe)) {
if (this.anime_flg == 195) {
this.anime_flg = 196;
this.e_main.gotoAndPlay(220);
}
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (this.anime_flg == 3) {
this.e_main.gotoAndPlay(171);
}
if ((this.e_main._currentframe == 128) || (this.e_main._currentframe == 153)) {
if (this.anime_flg == 5) {
this.mov_x = -this.dash_spd1;
}
if (this.anime_flg == 6) {
this.mov_x = this.dash_spd1;
}
}
if ((this.e_main._currentframe >= 120) && (145 >= this.e_main._currentframe)) {
if ((this.e_main._currentframe >= 130) && (135 >= this.e_main._currentframe)) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(137);
}
if (this.anime_flg == 5) {
if ((-this.dash_spd2) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (-this.dash_spd2)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.dash_spd2 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < this.dash_spd2) {
this.mov_x++;
}
}
}
}
if ((this.e_main._currentframe >= 145) && (170 >= this.e_main._currentframe)) {
if ((this.e_main._currentframe >= 155) && (160 >= this.e_main._currentframe)) {
if ((this.anime_flg != 5) && (this.anime_flg != 6)) {
this.e_main.gotoAndPlay(162);
}
if (this.anime_flg == 5) {
if (this.atk_flg == 0) {
this.e_main._xscale = 100;
this.e_main.gotoAndPlay(129);
}
if ((-this.dash_spd2) < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < (-this.dash_spd2)) {
this.mov_x++;
}
}
if (this.anime_flg == 6) {
if (this.atk_flg == 0) {
this.e_main._xscale = -100;
this.e_main.gotoAndPlay(129);
}
if (this.dash_spd2 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < this.dash_spd2) {
this.mov_x++;
}
}
}
}
}
if ((170 < this.e_main._currentframe) && (180 >= this.e_main._currentframe)) {
if (this.e_main._currentframe == 179) {
this.mov_y = (-this.jump_pw1) - random(this.jump_pw2);
}
}
if ((175 < this.e_main._currentframe) && (215 >= this.e_main._currentframe)) {
if (this.anime_flg == 95) {
this.anime_flg = 96;
this.e_main.gotoAndPlay(271);
}
if ((180 < this.e_main._currentframe) && (195 >= this.e_main._currentframe)) {
if (this.mov_x == 0) {
if (0 < this.e_main._xscale) {
this.mov_x = -5;
}
if (this.e_main._xscale < 0) {
this.mov_x = 5;
}
}
if ((this.e_main._currentframe >= 180) && (185 >= this.e_main._currentframe)) {
if (this.mov_y >= 0) {
this.e_main.gotoAndPlay(186);
}
}
if ((145 < this.e_main._currentframe) && (195 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(196);
}
}
}
if ((195 < this.e_main._currentframe) && (215 >= this.e_main._currentframe)) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
if (0 < this.mov_x) {
this.mov_x--;
}
if (this.mov_x < 0) {
this.mov_x++;
}
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
}
}
}
if (this.atk_flg == 1) {
if (this._x < _root.p_pos_x) {
this.e_main._xscale = -100;
}
if (_root.p_pos_x < this._x) {
this.e_main._xscale = 100;
}
this.lock_x = _root.p_pos_x;
this.lock_y = _root.p_pos_y - 20;
if (0 < this.e_main._xscale) {
this.tgt_rot = ((-Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 20))) / (Math.PI/180)) - 90;
}
if (this.e_main._xscale < 0) {
this.tgt_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 20)) / (Math.PI/180)) - 90;
}
if (60 < this.tgt_rot) {
this.tgt_rot = 60;
}
if (this.tgt_rot < -60) {
this.tgt_rot = -60;
}
if (((_root.p_pos_x - 500) < this._x) && (this._x < (_root.p_pos_x + 500))) {
if (this.e_main.wep_arm.e_weparm._currentframe == 1) {
this.e_main.wep_arm.e_weparm.gotoAndPlay(3);
}
this.e_main.wep_arm.e_weparm.shot_x = this._x;
this.e_main.wep_arm.e_weparm.shot_y = (this._y + this.e_main.wep_arm._y) - 5;
if (0 < this.e_main._xscale) {
this.e_main.wep_arm.e_weparm.shot_rot = this.e_main.wep_arm._rotation + 180;
}
if (this.e_main._xscale < 0) {
this.e_main.wep_arm.e_weparm.shot_rot = -this.e_main.wep_arm._rotation;
}
}
this.time++;
if (this.lag < this.time) {
this.lag = 30 + random(40);
this.atk_flg = 0;
this.time = 0;
}
} else if (this.atk_flg == 0) {
if ((this.anime_flg != 96) && (this.anime_flg != 196)) {
if (this.mov_x < 0) {
this.e_main._xscale = 100;
}
if (0 < this.mov_x) {
this.e_main._xscale = -100;
}
}
}
}
if ((220 < this.e_main._currentframe) && (270 >= this.e_main._currentframe)) {
if (this.mov_x < 0) {
this.e_main._xscale = -100;
}
if (0 < this.mov_x) {
this.e_main._xscale = 100;
}
if (this.e_main._currentframe == 222) {
this.mov_x = this.hit_mov_x / 2;
this.mov_y = ((-Math.abs(this.hit_mov_y)) / 2) - 5;
this.hit_mov_x = 0;
this.hit_mov_y = 0;
}
if (this.e_main._currentframe == 230) {
if (0 < this.mov_y) {
this.e_main.gotoAndPlay(232);
}
}
if (this.e_main._currentframe == 240) {
if (this.jump_flg == 0) {
this.e_main.gotoAndPlay(242);
}
}
if (this.e_main._currentframe == 260) {
if (this.jump_flg == 0) {
this.smoke._visible = 1;
}
this.mov_x = this.mov_x / 1.2;
if ((-1 < this.mov_x) && (this.mov_x < 1)) {
this.mov_x = 0;
this.e_main.gotoAndPlay(262);
}
}
if (265 < this.e_main._currentframe) {
this.anime_flg = 0;
this.e_main.gotoAndPlay(1);
}
}
if ((270 < this.e_main._currentframe) && (275 >= this.e_main._currentframe)) {
this.mov_x = this.mov_x / 1.2;
if ((this.mov_x < -1) && (this.mov_x < 1)) {
this.mov_x = 0;
}
if (this.mov_y < -1) {
this.mov_y = this.mov_y / 1.2;
}
if (this.e_main._currentframe == 271) {
this.mov_x = this.hit_mov_x / 3;
this.mov_y = (-Math.abs(this.hit_mov_y)) / 3;
}
if (274 < this.e_main._currentframe) {
this.anime_flg = 0;
if (this.jump_flg == 0) {
this.e_main.gotoAndPlay(1);
} else if (this.jump_flg == 1) {
this.e_main.gotoAndPlay(187);
}
}
}
this.e_main.head._x = this.e_main.head_pos._x;
this.e_main.head._y = this.e_main.head_pos._y;
this.e_main.wep_arm._x = this.e_main.wep_arm_pos._x;
this.e_main.wep_arm._y = this.e_main.wep_arm_pos._y;
this.e_main.head._rotation = this.tgt_rot;
if (this.tgt_rot < this.e_main.wep_arm._rotation) {
this.e_main.wep_arm._rotation = this.e_main.wep_arm._rotation - 2;
}
if (this.e_main.wep_arm._rotation < this.tgt_rot) {
this.e_main.wep_arm._rotation = this.e_main.wep_arm._rotation + 2;
}
}
function dmg_script() {
if (this.dmg_flg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg_flg != 0) {
if (this.dmg_flg == 1) {
new Color(this).setRGB(16777215);
if ((this.hp_max / 3) < this.dmg) {
this.anime_flg = 195;
} else {
this.anime_flg = 95;
}
this.atk_flg = 0;
this.lag = 60 + random(60);
this.time = 0;
}
if (this.dmg_flg == 2) {
new Color(this).setRGB(16711680);
}
this.hp = this.hp - this.dmg;
_root.e_hp = this.hp;
_root.e_hp_max = this.hp_max;
this.dmg = 0;
this.dmg_flg = 0;
if (0 >= this.hp) {
_root.e_hp = 0;
_root.e_hp_max = this.hp_max;
}
}
}
function field_hit() {
this.hitflg_tall = 0;
this.jump_flg = 1;
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = _root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = _root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = _root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = _root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = _root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = _root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = _root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = _root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = _root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = _root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = _root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = _root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = _root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = _root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = _root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = _root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100);
this.hitflg_side = -1;
}
} else if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.anime_flg = 3;
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.anime_flg = 3;
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 15;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 965 MovieClip [e_armor01] Frame 2
this.dmg_script();
this.main_script();
this.field_hit();
this.result();
if (2000 < this._y) {
this._y = 500;
if (1000 < _root.p_pos_x) {
this._x = _root.p_pos_x - 1500;
} else {
this._x = _root.p_pos_x + 1500;
}
}
this.p_main.e_wep_arm.e_weparm.weparm_h.gotoAndStop(1);
this.p_main.e_wep_arm.e_weparm.weparm_s.gotoAndStop(1);
this.e_main.wep_arm.gotoAndStop(this.type1);
Symbol 965 MovieClip [e_armor01] Frame 3
this.gotoAndPlay(2);
Symbol 968 MovieClip Frame 3
this.gotoAndPlay(1);
Symbol 968 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 970 MovieClip [e_shot_ebom] Frame 1
function field_hit() {
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit2) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit3) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit4) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit5) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit6) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.field.ground_hit7) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
if (this.shot_core.hitTest(_root.root.bg_box.ground.ground_hit8) && (this.hit_flg == 0)) {
this.hit_flg = 2;
}
}
function main_script() {
this.e_shot_main._rotation = this.rot + 90;
if (this.hit_flg == 0) {
this.cnt++;
this.spd = this.spd + 1;
this.m_x = (-Math.cos(this.rot * w((Math.PI/180)))) * this.spd;
this.m_y = (-Math.sin(this.rot * (Math.PI/180))) * this.spd;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
} else if (this.hit_flg == 2) {
this.hit_flg = 9;
this.e_shot_main.gotoAndPlay(5);
}
if (this.shot_core.hitTest(_root.root.p_box.player.p_hit_area)) {
if (this.hit_flg == 0) {
this.hit_flg = 2;
}
if (_root.p_dmg_flg == 0) {
_root.p_dmg = this.dmg;
_root.hit_mov_y = -10;
if (m_x < 0) {
_root.hit_mov_x = -15;
}
if (0 < m_x) {
_root.hit_mov_x = 15;
}
}
}
}
this.spd = 30;
this.m_x = (-Math.cos(this.rot * (Math.PI/180))) * 100;
this.m_y = (-Math.sin(this.rot * (Math.PI/180))) * 100;
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
this._xscale = this.xscale;
this._yscale = this.yscale;
this.hit_flg = 0;
this.cnt = 0;
Symbol 970 MovieClip [e_shot_ebom] Frame 2
this.field_hit();
this.main_script();
Symbol 970 MovieClip [e_shot_ebom] Frame 3
this.gotoAndPlay(2);
Symbol 978 Button
on (release) {
_parent.txt_num++;
}
on (rollOver) {
Mouse.hide();
}
Symbol 979 Button
on (release) {
_parent.txt_num--;
}
on (rollOver) {
Mouse.hide();
}
Symbol 980 Button
on (release) {
_root.screen_flg = 1;
_root.game_flg = 3;
}
on (rollOver) {
Mouse.hide();
}
Symbol 1002 MovieClip [tutorial] Frame 1
this.time = 0;
this.txt_num = 1;
this.main.gotoAndStop(1);
Symbol 1002 MovieClip [tutorial] Frame 2
_quality = "MIDDLE";
if (14 < this.txt_num) {
this.txt_num = 1;
}
if (this.txt_num < 1) {
this.txt_num = 14;
}
this.main.gotoAndStop(this.txt_num);
Symbol 1002 MovieClip [tutorial] Frame 3
this.gotoAndPlay(2);
Symbol 1008 MovieClip [m_18] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.timemode = 0;
_root.root.other_box.def_car01(-400, 500, 12 - _root.custom_bonus, 600 - (_root.custom_bonus * 50), 1);
_root.root.other_box.def_car01(400, 500, (12 - _root.custom_bonus) + 2, 600 - (_root.custom_bonus * 50), 2);
_root.root.other_box.def_car01(0, 500, (12 - _root.custom_bonus) + 3, 600 - (_root.custom_bonus * 50), 3);
_root.tgt_hp = (_root.tgt_hp_max = (_root.root.other_box.def_tgt1.hp + _root.root.other_box.def_tgt2.hp) + _root.root.other_box.def_tgt3.hp);
_root.def_tgt_flg = 1;
_root.def_tgt_destroy = 0;
this.clear_flg = [0, 0, 0];
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1008 MovieClip [m_18] Frame 2
if (this.tgt_point.hitTest(_root.root.other_box.def_tgt1.main)) {
this.clear_flg[0] = 1;
}
if (this.tgt_point.hitTest(_root.root.other_box.def_tgt2.main)) {
this.clear_flg[1] = 1;
}
if (this.tgt_point.hitTest(_root.root.other_box.def_tgt3.main)) {
this.clear_flg[2] = 1;
}
if (_root.def_tgt_destroy >= 3) {
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(8);
this.e_hp = 10 + (_root.custom_bonus * 3);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 10);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 10);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 6) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 7) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(4);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
if (e == 2) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x + (700 + random(1500));
}
if (e == 3) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x - (700 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
}
i++;
}
if ((((this.clear_flg[0] + this.clear_flg[1]) + this.clear_flg[2]) == (3 - _root.def_tgt_destroy)) && (_root.def_tgt_destroy < 3)) {
if ((((this.clear_flg[0] == 1) && (this.clear_flg[1] == 1)) && (this.clear_flg[2] == 1)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.ex_mission_flg = 10;
_root.root.e_box.e_boss02(100 * (1 + (_root.custom_bonus / 3)), 5);
_root.root.e_box.e_armor01(100 * (1 + (_root.custom_bonus / 3)), 2, 6);
_root.root.e_box.e_armor01(100 * (1 + (_root.custom_bonus / 3)), 3, 7);
_root.root.e_box.enemy5._x = _root.p_pos_x;
_root.root.e_box.enemy6._x = _root.p_pos_x + 2000;
_root.root.e_box.enemy7._x = _root.p_pos_x - 2000;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 3) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 20;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1008 MovieClip [m_18] Frame 3
this.gotoAndPlay(2);
Symbol 1010 MovieClip [def_point] Frame 1
point_x = _root.root.other_box["def_tgt" + this.num]._x - _root.p_pos_x;
point_y = _root.root.other_box["def_tgt" + this.num]._y - _root.p_pos_y;
this._x = point_x / 20;
this._y = point_y / 20;
if (120 < this._x) {
this._x = 120;
}
if (this._x < -120) {
this._x = -120;
}
if (25 < this._y) {
this._y = 25;
}
if (this._y < -45) {
this._y = -45;
}
Symbol 1010 MovieClip [def_point] Frame 2
this.gotoAndPlay(1);
Symbol 1011 MovieClip [m_16] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.timemode = 0;
_root.root.other_box.def_car01(-400, 500, 12 - _root.custom_bonus, 600 - (_root.custom_bonus * 50), 1);
_root.tgt_hp = (_root.tgt_hp_max = _root.root.other_box.def_tgt1.hp);
_root.def_tgt_flg = 1;
_root.def_tgt_destroy = 0;
this.clear_flg = [0, 0, 0];
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1011 MovieClip [m_16] Frame 2
if (this.tgt_point.hitTest(_root.root.other_box.def_tgt1.main)) {
this.clear_flg[0] = 1;
}
if (_root.def_tgt_destroy >= 1) {
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(8);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 10);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 10);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 6) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 7) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(4);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
if (e == 2) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x + (700 + random(1500));
}
if (e == 3) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x - (700 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
}
i++;
}
if (this.clear_flg[0] == 1) {
if ((50 < ((_root.tgt_hp / _root.tgt_hp_max) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
if (_root.custom_bonus == 0) {
_root.shop_wep[46] = 4;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss02(100 * ((_root.custom_bonus / 3) + 1), 5);
_root.root.e_box.e_boss03(100 * ((_root.custom_bonus / 3) + 1), 6);
_root.root.e_box.e_boss03(100 * ((_root.custom_bonus / 3) + 1), 7);
_root.root.e_box.enemy5._x = _root.p_pos_x;
_root.root.e_box.enemy6._x = _root.p_pos_x + 2000;
_root.root.e_box.enemy7._x = _root.p_pos_x - 2000;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 3) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 20;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1011 MovieClip [m_16] Frame 3
this.gotoAndPlay(2);
Symbol 1014 MovieClip [m_12] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.efct_bg_flg = 0;
_root.timemode = 0;
this._xscale = 1000;
this._yscale = 500;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1014 MovieClip [m_12] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(6);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 1) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 2) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 5) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = 3000 + random(1500);
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = 700 - random(1500);
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = 3000 - random(1500);
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = -3000 + random(1500);
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = -3000 + random(1500);
}
if (e < 7) {
_root.root.e_box["enemy" + i]._x = 700 - random(1500);
}
}
}
i++;
}
if ((_root.destroy_num >= 20) && (_root.root.p_box.player.hitTest(this.tgt_point))) {
if ((80 < ((_root.p_hp / _root.p_hp_max) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_armor02(500, 4, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1014 MovieClip [m_12] Frame 3
this.gotoAndPlay(2);
Symbol 1018 MovieClip [m_17] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 1;
_root.root.other_box.def_box02(-500, 100, 600 - (_root.custom_bonus * 50), 1);
_root.tgt_hp = (_root.tgt_hp_max = _root.root.other_box.def_tgt1.hp);
_root.root.other_box.def_tgt1._alpha = 0;
this.efct_bg_cnt = random(8);
if (this.efct_bg_cnt < _root.custom_bonus) {
_root.efct_bg_flg = 1;
} else {
_root.efct_bg_flg = 0;
}
_root.timemode = 1;
this._xscale = 1000;
this._yscale = 450;
_root.field_flg = 2;
_root.sky_flg = 4;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1018 MovieClip [m_17] Frame 2
if (0 >= _root.root.other_box.def_tgt1.hp) {
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(6);
this.e_hp = (3 * _root.custom_bonus) + 1;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_tank01(this.e_hp + 5, i, 6);
}
if (e == 1) {
_root.root.e_box.e_tank02(this.e_hp + 7, i, 6);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 5) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
_root.root.e_box["enemy" + i]._x = (_root.p_pos_x + 1000) + random(1500);
}
}
if (this.tgt_point.hitTest(_root.root.e_box["enemy" + i].e_core)) {
_root.root.other_box.def_tgt1.hp = _root.root.other_box.def_tgt1.hp - 1;
}
i++;
}
if (_root.timemode == 2) {
if (((50 < Math.round((_root.tgt_hp / _root.tgt_hp_max) * 100)) && (_root.custom_bonus < 3)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
this.tgt_marker._visible = 0;
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss03(150 * (1 + (_root.custom_bonus / 3)), 5);
_root.root.e_box.enemy5._x = (_root.p_pos_x + 1000) + random(1500);
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1018 MovieClip [m_17] Frame 3
this.gotoAndPlay(2);
Symbol 1021 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 1021 MovieClip Frame 35
_root.def_tgt_destroy++;
_parent.removeMovieClip();
Symbol 1022 MovieClip [def_container] Frame 1
function main_script() {
if (0 < _root.tgt_hp) {
}
}
function dmg_script() {
if (this.dmg == 0) {
new Color(this).setTransform(_root.colorTrans);
}
if (this.dmg != 0) {
new Color(this).setRGB(16777215);
this.hp = this.hp - this.dmg;
this.dmg = 0;
}
}
function destroy_script() {
if (0 >= this.hp) {
if (0 < this.mov_x) {
this.mov_x--;
}
this.hp = 0;
if (this.main._currentframe < 5) {
_root.display.rader.rader_main["def_point2" + this.num].removeMovieClip();
this.time = 0;
this.main.gotoAndPlay(5);
}
if ((this.main._currentframe == 5) && (this.time < 100)) {
this.time++;
this.efct_num++;
if (5 < this.efct_num) {
this.efct_num = 0;
new Color(this).setRGB(16777215);
_root.root.efct_box.efct_bom01((this._x + 100) - random(200), this._y - random(200), 100, 100);
}
} else if ((5 >= this.main._currentframe) && (this.time >= 100)) {
this.main.gotoAndPlay(7);
}
}
}
this.stop_flg = 0;
this.dmg = 0;
function field_hit_x() {
this.hitflg_side = 0;
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_x[1] < this._x) {
this._x = (_root.ground_right[1] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[1]) {
this._x = (_root.ground_left[1] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_x[2] < this._x) {
this._x = (_root.ground_right[2] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[2]) {
this._x = (_root.ground_left[2] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_x[3] < this._x) {
this._x = (_root.ground_right[3] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[3]) {
this._x = (_root.ground_left[3] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_x[4] < this._x) {
this._x = (_root.ground_right[4] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[4]) {
this._x = (_root.ground_left[4] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_x[5] < this._x) {
this._x = (_root.ground_right[5] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[5]) {
this._x = (_root.ground_left[5] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_x[6] < this._x) {
this._x = (_root.ground_right[6] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[6]) {
this._x = (_root.ground_left[6] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_x[7] < this._x) {
this._x = (_root.ground_right[7] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[7]) {
this._x = (_root.ground_left[7] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
if (this.hit_side.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_x[8] < this._x) {
this._x = (_root.ground_right[8] + (((this.hit_side._xscale / 2) * this._xscale) / 100)) + 1;
this.hitflg_side = 1;
} else if (this._x < _root.ground_cent_x[8]) {
this._x = (_root.ground_left[8] - (((this.hit_side._xscale / 2) * this._xscale) / 100)) - 1;
this.hitflg_side = -1;
}
}
}
function field_hit_y() {
this.hitflg_tall = 0;
this.jump_flg = 1;
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit)) {
if (_root.ground_cent_y[1] < this._y) {
this._y = _root.ground_down[1] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[1]) {
this._y = _root.ground_up[1];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit2)) {
if (_root.ground_cent_y[2] < this._y) {
this._y = _root.ground_down[2] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[2]) {
this._y = _root.ground_up[2];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit3)) {
if (_root.ground_cent_y[3] < this._y) {
this._y = _root.ground_down[3] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[3]) {
this._y = _root.ground_up[3];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit4)) {
if (_root.ground_cent_y[4] < this._y) {
this._y = _root.ground_down[4] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[4]) {
this._y = _root.ground_up[4];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit5)) {
if (_root.ground_cent_y[5] < this._y) {
this._y = _root.ground_down[5] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[5]) {
this._y = _root.ground_up[5];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit6)) {
if (_root.ground_cent_y[6] < this._y) {
this._y = _root.ground_down[6] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[6]) {
this._y = _root.ground_up[6];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit7)) {
if (_root.ground_cent_y[7] < this._y) {
this._y = _root.ground_down[7] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[7]) {
this._y = _root.ground_up[7];
this.hitflg_tall = 1;
}
}
if (this.hit_tall.hitTest(_root.root.bg_box.field.ground_hit8)) {
if (_root.ground_cent_y[8] < this._y) {
this._y = _root.ground_down[8] + this.hit_tall._yscale;
this.hitflg_tall = -1;
} else if (this._y < _root.ground_cent_y[8]) {
this._y = _root.ground_up[8];
this.hitflg_tall = 1;
}
}
}
function result() {
if (this.hitflg_side == 1) {
if (this.mov_x < 0) {
this.mov_x = 0;
}
} else if (this.hitflg_side == -1) {
if (0 < this.mov_x) {
this.mov_x = 0;
}
}
if (this.hitflg_tall == 1) {
this.jump_flg = 0;
if (0 < this.mov_y) {
this.mov_y = 0;
}
}
if (this.hitflg_tall == -1) {
if (this.mov_y < 0) {
this.mov_y = 0;
}
}
if (this.jump_flg == 1) {
if (this.mov_y >= 0) {
this.anime_flg = 4;
}
if (this.mov_y < 30) {
this.mov_y++;
}
}
this.hit_tall._y = this.mov_y - 20;
this.hit_tall._x = (-this.mov_x) / 2;
this.hit_side._x = this.mov_x;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
}
Symbol 1022 MovieClip [def_container] Frame 2
this.dmg_script();
this.main_script();
this.destroy_script();
this.field_hit_x();
this.field_hit_y();
this.result();
Symbol 1022 MovieClip [def_container] Frame 3
this.gotoAndPlay(2);
Symbol 1024 MovieClip [m_15] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.timemode = 1;
_root.root.other_box.def_box01(100 + random(3500), 100, 400 - (_root.custom_bonus * 50), 1);
_root.root.other_box.def_box01(100 + random(3500), 100, 400 - (_root.custom_bonus * 50), 2);
_root.root.other_box.def_box01(100 + random(3500), 100, 400 - (_root.custom_bonus * 50), 3);
_root.tgt_hp = (_root.tgt_hp_max = (_root.root.other_box.def_tgt1.hp + _root.root.other_box.def_tgt2.hp) + _root.root.other_box.def_tgt3.hp);
_root.def_tgt_flg = 1;
_root.def_tgt_destroy = 0;
this.clear_flg = [0, 0, 0];
this._xscale = 1000;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1024 MovieClip [m_15] Frame 2
if (_root.def_tgt_destroy >= 3) {
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(8);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 1) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 6) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 7) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(4);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
if (e == 2) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x + (700 + random(1500));
}
if (e == 3) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x - (700 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
}
i++;
}
if (_root.timemode == 2) {
if (((_root.def_tgt_destroy == 0) && (((_root.tgt_hp / _root.tgt_hp_max) * 100) >= 50)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat4");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_boss02(200 * (1 + (_root.custom_bonus / 3)), 7);
_root.root.e_box.enemy7._x = _root.p_pos_x;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1024 MovieClip [m_15] Frame 3
this.gotoAndPlay(2);
Symbol 1025 MovieClip [m_21] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
this.warning_flg = 0;
stopAllSounds();
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1200;
this._yscale = 450;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 3;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1025 MovieClip [m_21] Frame 2
this.e_hp = 1 + (_root.custom_bonus / 2);
if (_root.boss_destroy_flg >= 17) {
_root.screen_flg = 1;
_root.game_flg = 3;
_root.mission_phase = 90;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
if ((_root.warning_flg == 0) && (this.warning_flg == 0)) {
this.warning_flg = 1;
_root.logo_warning();
} else if (_root.warning_flg == 1) {
if (this.e_num_local == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_title");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
this.e_num_local = 1;
_root.root.e_box.e_armor02(500, 4, 1);
_root.root.e_box.e_armor02(500, 4, 2);
_root.root.e_box.e_armor02(500, 4, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 500;
_root.root.e_box.enemy2._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x + 2500;
}
}
if ((_root.boss_destroy_flg >= 3) && (this.e_num_local == 1)) {
this.e_num_local = 2;
}
if ((_root.boss_destroy_flg >= 6) && (this.e_num_local == 3)) {
this.e_num_local = 4;
}
if ((_root.boss_destroy_flg >= 9) && (this.e_num_local == 5)) {
this.e_num_local = 6;
}
if ((_root.boss_destroy_flg >= 13) && (this.e_num_local == 7)) {
this.e_num_local = 8;
}
if (this.e_num_local == 2) {
_root.root.e_box.e_boss03(100 * this.e_hp, 1);
_root.root.e_box.e_boss02(100 * this.e_hp, 2);
_root.root.e_box.e_boss03(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x + 2500;
this.e_num_local = 3;
}
if (this.e_num_local == 4) {
_root.root.e_box.e_boss01(100 * this.e_hp, 1);
_root.root.e_box.e_boss02(100 * this.e_hp, 2);
_root.root.e_box.e_boss01(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 2500;
_root.root.e_box.enemy3._x = _root.p_pos_x - 1500;
this.e_num_local = 5;
}
if (this.e_num_local == 6) {
_root.root.e_box.e_armor02(500, 4, 1);
_root.root.e_box.e_armor02(500, 4, 2);
_root.root.e_box.e_boss03(100 * this.e_hp, 4);
_root.root.e_box.e_boss01(100 * this.e_hp, 3);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy3._x = _root.p_pos_x;
_root.root.e_box.enemy4._x = _root.p_pos_x - 1500;
this.e_num_local = 7;
}
if (this.e_num_local == 8) {
_root.root.e_box.e_boss01(100 * this.e_hp, 1);
_root.root.e_box.e_boss02(100 * this.e_hp, 2);
_root.root.e_box.e_boss03(100 * this.e_hp, 3);
_root.root.e_box.e_armor02(500, 4, 4);
_root.root.e_box.enemy1._x = _root.p_pos_x + 1500;
_root.root.e_box.enemy2._x = _root.p_pos_x - 2500;
_root.root.e_box.enemy3._x = _root.p_pos_x - 1500;
_root.root.e_box.enemy4._x = _root.p_pos_x - 1500;
this.e_num_local = 9;
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = (_root.p_pos_x / 30) + 150;
this.ground_bg._y = (_root.p_pos_y / 15) + 80;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1025 MovieClip [m_21] Frame 3
this.gotoAndPlay(2);
Symbol 1026 MovieClip [m_13] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.timemode = 1;
_root.root.other_box.def_box01(100 + random(3500), 100, 400 - (_root.custom_bonus * 50), 1);
_root.tgt_hp = (_root.tgt_hp_max = _root.root.other_box.def_tgt1.hp);
_root.def_tgt_flg = 1;
_root.def_tgt_destroy = 0;
this.clear_flg = [0, 0, 0];
this.efct_bg_cnt = random(8);
if (this.efct_bg_cnt < _root.custom_bonus) {
_root.efct_bg_flg = 1;
} else {
_root.efct_bg_flg = 0;
}
this._xscale = 1200;
this._yscale = 450;
_root.field_flg = 2;
_root.sky_flg = 4;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1026 MovieClip [m_13] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(8);
this.e_hp = 1 + (_root.custom_bonus * 2);
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 1) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 4, i);
}
if (e == 3) {
_root.root.e_box.e_armor01(this.e_hp + 10, 1, i);
}
if (e == 4) {
_root.root.e_box.e_armor01(this.e_hp + 10, 2, i);
}
if (e == 5) {
_root.root.e_box.e_armor01(this.e_hp + 10, 3, i);
}
if (e == 6) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (e == 7) {
_root.root.e_box.e_walker01(this.e_hp + 12, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(4);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
if (e == 2) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x + (700 + random(1500));
}
if (e == 3) {
_root.root.e_box["enemy" + i]._x = _root.root.other_box.def_tgt._x - (700 + random(1500));
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x + (700 + random(1500));
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = _root.p_pos_x - (700 + random(1500));
}
}
}
i++;
}
if (_root.timemode == 2) {
if ((50 < ((_root.tgt_hp / _root.tgt_hp_max) * 100)) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_armor02(300, 4, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 1) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.def_tgt_destroy >= 1) {
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1026 MovieClip [m_13] Frame 3
this.gotoAndPlay(2);
Symbol 1028 MovieClip [m_14] Frame 1
this.e_num_local = 0;
_root.mission_phase = 0;
_root.warning_flg = 0;
stopAllSounds();
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat1");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.def_tgt_flg = 0;
_root.timemode = 0;
this._xscale = 1000;
this._yscale = 500;
_root.efct_bg_flg = 0;
_root.field_flg = 1;
_root.sky_flg = 2;
_root.ground_left[0] = 0;
_root.ground_right[0] = 0;
_root.ground_up[0] = 0;
_root.ground_down[0] = 0;
_root.ground_left[1] = this._x + ((Math.round(this.ground_hit._x - (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_right[1] = this._x + ((Math.round(this.ground_hit._x + (this.ground_hit._xscale / 2)) * this._xscale) / 100);
_root.ground_up[1] = this._y + ((Math.round((this.ground_hit._y - (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[1] = this._y + ((Math.round((this.ground_hit._y + (this.ground_hit._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[2] = this._x + ((Math.round(this.ground_hit2._x - (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_right[2] = this._x + ((Math.round(this.ground_hit2._x + (this.ground_hit2._xscale / 2)) * this._xscale) / 100);
_root.ground_up[2] = this._y + ((Math.round((this.ground_hit2._y - (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[2] = this._y + ((Math.round((this.ground_hit2._y + (this.ground_hit2._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[3] = this._x + ((Math.round(this.ground_hit3._x - (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_right[3] = this._x + ((Math.round(this.ground_hit3._x + (this.ground_hit3._xscale / 2)) * this._xscale) / 100);
_root.ground_up[3] = this._y + ((Math.round((this.ground_hit3._y - (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[3] = this._y + ((Math.round((this.ground_hit3._y + (this.ground_hit3._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[4] = this._x + ((Math.round(this.ground_hit4._x - (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_right[4] = this._x + ((Math.round(this.ground_hit4._x + (this.ground_hit4._xscale / 2)) * this._xscale) / 100);
_root.ground_up[4] = this._y + ((Math.round((this.ground_hit4._y - (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[4] = this._y + ((Math.round((this.ground_hit4._y + (this.ground_hit4._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[5] = this._x + ((Math.round(this.ground_hit5._x - (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_right[5] = this._x + ((Math.round(this.ground_hit5._x + (this.ground_hit5._xscale / 2)) * this._xscale) / 100);
_root.ground_up[5] = this._y + ((Math.round((this.ground_hit5._y - (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[5] = this._y + ((Math.round((this.ground_hit5._y + (this.ground_hit5._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[6] = this._x + ((Math.round(this.ground_hit6._x - (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_right[6] = this._x + ((Math.round(this.ground_hit6._x + (this.ground_hit6._xscale / 2)) * this._xscale) / 100);
_root.ground_up[6] = this._y + ((Math.round((this.ground_hit6._y - (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[6] = this._y + ((Math.round((this.ground_hit6._y + (this.ground_hit6._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[7] = this._x + ((Math.round(this.ground_hit7._x - (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_right[7] = this._x + ((Math.round(this.ground_hit7._x + (this.ground_hit7._xscale / 2)) * this._xscale) / 100);
_root.ground_up[7] = this._y + ((Math.round((this.ground_hit7._y - (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[7] = this._y + ((Math.round((his.ground_hit7._y + (this.ground_hit7._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[8] = this._x + ((Math.round(this.ground_hit8._x - (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_right[8] = this._x + ((Math.round(this.ground_hit8._x + (this.ground_hit8._xscale / 2)) * this._xscale) / 100);
_root.ground_up[8] = this._y + ((Math.round((this.ground_hit8._y - (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[8] = this._y + ((Math.round((this.ground_hit8._y + (this.ground_hit8._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[90] = this._x + ((Math.round(this.ground_hit90._x - (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_right[90] = this._x + ((Math.round(this.ground_hit90._x + (this.ground_hit90._xscale / 2)) * this._xscale) / 100);
_root.ground_up[90] = this._y + ((Math.round((this.ground_hit90._y - (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[90] = this._y + ((Math.round((this.ground_hit90._y + (this.ground_hit90._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[91] = this._x + ((Math.round(this.ground_hit91._x - (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_right[91] = this._x + ((Math.round(this.ground_hit91._x + (this.ground_hit91._xscale / 2)) * this._xscale) / 100);
_root.ground_up[91] = this._y + ((Math.round((this.ground_hit91._y - (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[91] = this._y + ((Math.round((this.ground_hit91._y + (this.ground_hit91._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[92] = this._x + ((Math.round(this.ground_hit92._x - (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_right[92] = this._x + ((Math.round(this.ground_hit92._x + (this.ground_hit92._xscale / 2)) * this._xscale) / 100);
_root.ground_up[92] = this._y + ((Math.round((this.ground_hit92._y - (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[92] = this._y + ((Math.round((this.ground_hit92._y + (this.ground_hit92._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_left[93] = this._x + ((Math.round(this.ground_hit93._x - (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_right[93] = this._x + ((Math.round(this.ground_hit93._x + (this.ground_hit93._xscale / 2)) * this._xscale) / 100);
_root.ground_up[93] = this._y + ((Math.round((this.ground_hit93._y - (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_down[93] = this._y + ((Math.round((this.ground_hit93._y + (this.ground_hit93._yscale / 2)) + 2) * this._yscale) / 100);
_root.ground_cent_x[0] = 0;
_root.ground_cent_x[1] = this._x + ((Math.round(this.ground_hit._x) * this._xscale) / 100);
_root.ground_cent_x[2] = this._x + ((Math.round(this.ground_hit2._x) * this._xscale) / 100);
_root.ground_cent_x[3] = this._x + ((Math.round(this.ground_hit3._x) * this._xscale) / 100);
_root.ground_cent_x[4] = this._x + ((Math.round(this.ground_hit4._x) * this._xscale) / 100);
_root.ground_cent_x[5] = this._x + ((Math.round(this.ground_hit5._x) * this._xscale) / 100);
_root.ground_cent_x[6] = this._x + ((Math.round(this.ground_hit6._x) * this._xscale) / 100);
_root.ground_cent_x[7] = this._x + ((Math.round(this.ground_hit7._x) * this._xscale) / 100);
_root.ground_cent_x[8] = this._x + ((Math.round(this.ground_hit8._x) * this._xscale) / 100);
_root.ground_cent_x[90] = this._x + ((Math.round(this.ground_hit90._x) * this._xscale) / 100);
_root.ground_cent_x[91] = this._x + ((Math.round(this.ground_hit91._x) * this._xscale) / 100);
_root.ground_cent_x[92] = this._x + ((Math.round(this.ground_hit92._x) * this._xscale) / 100);
_root.ground_cent_x[93] = this._x + ((Math.round(this.ground_hit93._x) * this._xscale) / 100);
_root.ground_cent_y[0] = 0;
_root.ground_cent_y[1] = this._y + ((Math.round(this.ground_hit._y) * this._yscale) / 100);
_root.ground_cent_y[2] = this._y + ((Math.round(this.ground_hit2._y) * this._yscale) / 100);
_root.ground_cent_y[3] = this._y + ((Math.round(this.ground_hit3._y) * this._yscale) / 100);
_root.ground_cent_y[4] = this._y + ((Math.round(this.ground_hit4._y) * this._yscale) / 100);
_root.ground_cent_y[5] = this._y + ((Math.round(this.ground_hit5._y) * this._yscale) / 100);
_root.ground_cent_y[6] = this._y + ((Math.round(this.ground_hit6._y) * this._yscale) / 100);
_root.ground_cent_y[7] = this._y + ((Math.round(this.ground_hit7._y) * this._yscale) / 100);
_root.ground_cent_y[8] = this._y + ((Math.round(this.ground_hit8._y) * this._yscale) / 100);
_root.ground_cent_y[90] = this._y + ((Math.round(this.ground_hit90._y) * this._yscale) / 100);
_root.ground_cent_y[91] = this._y + ((Math.round(this.ground_hit91._y) * this._yscale) / 100);
_root.ground_cent_y[92] = this._y + ((Math.round(this.ground_hit92._y) * this._yscale) / 100);
_root.ground_cent_y[93] = this._y + ((Math.round(this.ground_hit93._y) * this._yscale) / 100);
this.ground_hit._alpha = 0;
this.ground_hit2._alpha = 0;
this.ground_hit3._alpha = 0;
this.ground_hit4._alpha = 0;
this.ground_hit5._alpha = 0;
this.ground_hit6._alpha = 0;
this.ground_hit7._alpha = 0;
this.ground_hit8._alpha = 0;
this.ground_hit9._alpha = 0;
this.ground_hit0._alpha = 0;
this.ground_hit90._alpha = 0;
this.ground_hit91._alpha = 0;
this.ground_hit92._alpha = 0;
this.ground_hit93._alpha = 0;
this.areaover_l._alpha = 0;
this.areaover_r._alpha = 0;
this.tgt_point._alpha = 0;
Symbol 1028 MovieClip [m_14] Frame 2
if (_root.mission_phase == 0) {
i = 0;
while (4 >= i) {
if (_root.e_num[i] == 0) {
this.e_num_local++;
e = random(6);
this.e_hp = 1 + _root.custom_bonus;
if (100 < this.e_hp) {
this.e_hp = 99;
}
if (e == 0) {
_root.root.e_box.e_armor01(this.e_hp + 15, 1 + random(3), i);
}
if (e == 1) {
_root.root.e_box.e_armor01(this.e_hp + 15, 1 + random(3), i);
}
if (e == 2) {
_root.root.e_box.e_fly01(this.e_hp + 5, i);
}
if (e == 3) {
_root.root.e_box.e_fly01(this.e_hp + 5, i);
}
if (e == 4) {
_root.root.e_box.e_walker01(this.e_hp + 20, 1, 1, i);
}
if (e == 5) {
_root.root.e_box.e_walker01(this.e_hp + 20, 1, 1, i);
}
if (this.mission_box01.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e < 7) {
_root.root.e_box["enemy" + i]._x = 6000 + random(1500);
}
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = 700 - random(1500);
}
}
if (this.mission_box02.hitTest(_root.root.p_box.player)) {
e = random(2);
if (e == 0) {
_root.root.e_box["enemy" + i]._x = 6000 + random(1500);
}
if (e == 1) {
_root.root.e_box["enemy" + i]._x = 700 - random(1500);
}
}
if (this.mission_box03.hitTest(_root.root.p_box.player)) {
e = random(10);
if (e >= 7) {
_root.root.e_box["enemy" + i]._x = 6000 + random(1500);
}
if (e < 7) {
_root.root.e_box["enemy" + i]._x = 700 - random(1500);
}
}
}
i++;
}
if ((_root.destroy_num >= 40) && (_root.root.p_box.player.hitTest(this.tgt_point))) {
if ((_root.custom_bonus < 2) && (_root.clear_flg_main[_root.mission_num] != 0)) {
_root.mission_phase = 1;
stopAllSounds();
_root.logo_warning();
} else {
_root.mission_phase = 90;
_root.screen_flg = 1;
_root.game_flg = 3;
if (_root.clear_flg_main[_root.mission_num] != 2) {
_root.clear_flg_main[_root.mission_num] = 1;
}
}
}
}
if ((_root.mission_phase == 1) && (_root.warning_flg == 1)) {
_root.mission_phase = 10;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("mu_combat2");
mu_bgm.start(0, 999);
mu_bgm.setVolume(50);
_root.root.e_box.e_armor02(150, 4, 5);
_root.root.e_box.enemy5._x = _root.p_pos_x - 200;
_root.root.e_box.e_armor02(150, 4, 6);
_root.root.e_box.enemy6._x = _root.p_pos_x + 200;
}
if (_root.mission_phase == 10) {
if (_root.boss_destroy_flg >= 2) {
_root.mission_phase = 99;
_root.screen_flg = 1;
_root.game_flg = 3;
_root.clear_flg_main[_root.mission_num] = 2;
}
}
if (_root.root.p_box.player.flying_flg == 0) {
if (_root.root.p_box.player.jump_flg == 1) {
if (_root.p_mov_y < 30) {
_root.p_mov_y++;
}
}
}
this.ground_bg._x = _root.p_pos_x / 30;
this.ground_bg._y = (_root.p_pos_y / 15) + 100;
if (_root.efct_switch == 1) {
this.ground_bg._visible = 1;
}
if (_root.efct_switch == 0) {
this.ground_bg._visible = 0;
}
Symbol 1028 MovieClip [m_14] Frame 3
this.gotoAndPlay(2);
Symbol 1030 MovieClip [title_flash] Frame 2
if (_root._currentframe == 2) {
if (_root.shot_flg == 1) {
this.gotoAndPlay(3);
} else {
this.gotoAndPlay(1);
}
}
Symbol 1030 MovieClip [title_flash] Frame 50
this.gotoAndPlay(49);
Symbol 1058 MovieClip Frame 1
function getFps() {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
tFps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
fps = (tFps + "/") + fr;
old_timer = getTimer();
time_count = 0;
avFps = Math.floor(((avFps + tFps) / 2) * 10) / 10;
}
}
fr = 45;
time = 1000;
time_count = 0;
avFps = fr;
old_timer = getTimer();
Symbol 1058 MovieClip Frame 2
this.getFps();
Symbol 1058 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1073 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 1080 MovieClip Frame 16
this.gotoAndPlay(15);
Symbol 1081 MovieClip Frame 1
_quality = "HIGH";
loaded = _root.getBytesLoaded();
totalloaded = _root.getBytesTotal();
if (loaded >= totalloaded) {
this.gotoAndStop(4);
} else {
load_parcent = (loaded / totalloaded) * 100;
load_parcent_main = Math.round(load_parcent);
_root.stop();
}
Symbol 1081 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 1081 MovieClip Frame 5
this.gotoAndPlay(4);
Symbol 1082 MovieClip Frame 2
if (_root._currentframe == 2) {
if (_root.title_flash._currentframe == 35) {
this.gotoAndPlay(5);
}
}
if (_root.screen_flg == 1) {
_root.screen_flg = 0;
this.gotoAndPlay(5);
}
if (_root.screen_flg == 2) {
_root.screen_flg = 0;
this.gotoAndPlay(65);
}
Symbol 1082 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1082 MovieClip Frame 35
if (_root.mission_num == 0) {
_root.game_flg = 0;
_root.gotoAndPlay(3);
_root.menu.gotoAndPlay(1);
} else {
if (_root.game_flg == 1) {
_root.game_flg = 0;
_root.gotoAndPlay(3);
_root.menu.gotoAndPlay(45);
}
if (_root.game_flg == 2) {
_root.game_flg = 0;
_root.gotoAndPlay(2);
}
if (_root.game_flg == 3) {
_root.gotoAndPlay(3);
_root.menu.gotoAndPlay(45);
}
if (_root._currentframe == 2) {
_root.gotoAndStop(3);
}
}
_root.screen_flg = 0;
Symbol 1082 MovieClip Frame 63
this.gotoAndPlay(2);
Symbol 1082 MovieClip Frame 96
if (_root.mission_num == 0) {
_root.game_flg = 0;
_root.screen_flg = 0;
_root.gotoAndPlay(3);
_root.menu.gotoAndPlay(1);
} else {
_root.screen_flg = 0;
_root.gotoAndPlay(3);
_root.menu.gotoAndPlay(45);
}
Symbol 1082 MovieClip Frame 124
this.gotoAndPlay(2);
Symbol 1084 Button
on (rollOver) {
Mouse.hide();
}
on (rollOut) {
Mouse.show();
}
Symbol 1090 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 1093 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 1103 MovieClip Frame 1
function main_script() {
if (_root.p_sight._x < (_root.root._x - 80)) {
if (_root.root._x < 300) {
_root.root._x = _root.root._x + 10;
}
}
if ((_root.root._x + 80) < _root.p_sight._x) {
if (100 < _root.root._x) {
_root.root._x = _root.root._x - 10;
}
}
if ((_root.p_sight._x >= (_root.root._x - 80)) && ((_root.root._x + 80) >= _root.p_sight._x)) {
if (190 < _root.root._x) {
_root.root._x = _root.root._x - 10;
}
if (_root.root._x < 210) {
_root.root._x = _root.root._x + 10;
}
}
if (_root.p_sight._y < (_root.root._y - 70)) {
if (_root.root._y < 210) {
_root.root._y = _root.root._y + 10;
}
}
if ((_root.p_sight._y >= (_root.root._y - 70)) && ((_root.root._y + 70) >= _root.p_sight._y)) {
if (_root.root._y < 120) {
_root.root._y = _root.root._y + 10;
}
if (170 < _root.root._y) {
_root.root._y = _root.root._y - 10;
}
}
if (((_root.root._y + 70) < _root.p_sight._y) && (_root.jump_flg == 1)) {
if (90 < _root.root._y) {
_root.root._y = _root.root._y - 10;
}
}
if (_root.jump_flg == 0) {
if (_root.root._y < 210) {
_root.root._y = _root.root._y + 10;
}
}
if ((_root.equip_armor == 2) && (_root.shop_wep[_root.p_weps] != 5)) {
if ((10 < Math.abs(_root.p_mov_x)) || (10 < Math.abs(_root.p_mov_y))) {
if (((100 - Math.abs(_root.p_mov_x)) < _root.root._xscale) || ((100 - Math.abs(_root.p_mov_y)) < _root.root._xscale)) {
if (70 < _root.root._xscale) {
_root.root._xscale = _root.root._xscale - 3;
_root.root._yscale = _root.root._xscale;
}
}
if ((_root.root._xscale < (100 - Math.abs(_root.p_mov_x))) && (_root.root._xscale < (100 - Math.abs(_root.p_mov_y)))) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
}
} else if (100 >= _root.root._xscale) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
}
} else if ((_root.snipe_armor[_root.equip_armor] != 0) && (_root.shop_wep[_root.p_weps] != 5)) {
mouse_x = Math.abs(_root.root._x - this._x);
mouse_y = Math.abs(_root.root._y - this._y);
_root.long_mouse_root = Math.round(Math.sqrt((mouse_x * mouse_x) + (mouse_y * mouse_y)) / 5);
if ((100 - (_root.long_mouse_root - 2)) < _root.root._xscale) {
if (_root.snipe_armor[_root.equip_armor] < _root.root._xscale) {
_root.root._xscale = _root.root._xscale - 3;
_root.root._yscale = _root.root._xscale;
}
} else if (_root.root._xscale < (100 - (_root.long_mouse_root + 2))) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
}
if (_root.root._xscale < _root.snipe_armor[_root.equip_armor]) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
}
} else if (_root.shop_wep[_root.p_weps] == 5) {
mouse_x = Math.abs(_root.root._x - this._x);
mouse_y = Math.abs(_root.root._y - this._y);
_root.long_mouse_root = Math.round(Math.sqrt((mouse_x * mouse_x) + (mouse_y * mouse_y)) / 5);
if (_root.root._xscale < ((100 - _root.long_mouse_root) - 2)) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
} else if (((100 - _root.long_mouse_root) + 2) < _root.root._xscale) {
_root.root._xscale = _root.root._xscale - 3;
_root.root._yscale = _root.root._xscale;
}
} else if (100 >= _root.root._xscale) {
_root.root._xscale = _root.root._xscale + 3;
_root.root._yscale = _root.root._xscale;
}
if (100 < _root.root._xscale) {
_root.root._xscale = _root.root._xscale - 3;
_root.root._yscale = _root.root._xscale;
}
if (50 >= _root.root._xscale) {
_root.root._xscale = 50;
_root.root._yscale = _root.root._xscale;
}
if (Key.isDown(37) || (Key.isDown(90))) {
_root.key_l = 1;
}
if ((!Key.isDown(37)) && (!Key.isDown(90))) {
_root.key_l = 0;
}
if ((Key.isDown(39) || (Key.isDown(67))) || (Key.isDown(86))) {
_root.key_r = 1;
}
if (((!Key.isDown(39)) && (!Key.isDown(67))) && (!Key.isDown(86))) {
_root.key_r = 0;
}
if ((Key.isDown(38) || (Key.isDown(83))) || (Key.isDown(68))) {
_root.key_u = 1;
}
if (((!Key.isDown(38)) && (!Key.isDown(83))) && (!Key.isDown(68))) {
_root.key_u = 0;
}
if (Key.isDown(40) || (Key.isDown(88))) {
_root.key_d = 1;
}
if ((!Key.isDown(40)) && (!Key.isDown(88))) {
_root.key_d = 0;
}
if (Key.isDown(32) || (Key.isDown(17))) {
_root.key_wepchange = 1;
}
if ((!Key.isDown(32)) && (!Key.isDown(17))) {
_root.key_wepchange = 0;
}
if (Key.isDown(13)) {
_root.key_efctchange = 1;
}
if (!Key.isDown(13)) {
_root.key_efctchange = 0;
}
}
tlg = 0;
time = 10;
Symbol 1103 MovieClip Frame 2
if (3 >= _root._currentframe) {
Mouse.hide();
}
this._x = _root._xmouse;
this._y = _root._ymouse;
this.main_script();
Symbol 1103 MovieClip Frame 3
this._x = _root._xmouse;
this._y = _root._ymouse;
this.gotoAndPlay(2);
Symbol 1113 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.mission_num = 0;
_root.time = (_root.time_limit = 999);
_root.tgt_destroy = 20;
_root.e_initialize();
_root.game_initialize();
_root.player_set2();
_root.game_flg = 1;
_root.screen_flg = 1;
_root.field_flg = 1;
_root.sky_flg = 1;
_root.jump_mode = 1;
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒQ[ƒ€‚̃`ƒ…[ƒgƒŠƒAƒ‹‚ðŠJŽn‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒQ[ƒ€‚ÌŠJŽn•û–@‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1114 Button
on (release) {
if ((_root.game_flg != 1) && (_root.screen_flg != 1)) {
_root.p_initialize2();
_root.e_initialize();
_root.game_initialize();
this.continue_flg = 1;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.comment = "@";
this.gotoAndPlay(41);
}
}
on (rollOver) {
_root.comment = "‘±‚«‚©‚çƒvƒŒƒC‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒQ[ƒ€‚ÌŠJŽn•û–@‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1115 Button
on (release) {
if ((_root.game_flg != 1) && (_root.screen_flg != 1)) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.p_initialize();
_root.p_initialize2();
_root.e_initialize();
_root.game_initialize();
_root.jump_mode = 1;
this.gotoAndPlay(5);
_root.comment = "@";
}
}
on (rollOver) {
_root.comment = "ʼn‚©‚çƒvƒŒƒC‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒQ[ƒ€‚ÌŠJŽn•û–@‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1116 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(49);
}
on (rollOver) {
_root.comment = "‹¦—Í‚µ‚Ä‚¢‚½‚¾‚¢‚½•ûX‚ÌЉî‚Å‚·B";
}
on (rollOut) {
_root.comment = "ƒQ[ƒ€‚ÌŠJŽn•û–@‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1121 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(29);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚Ì‹‰»‚â‘•”õ‚Ì•ÏX‚ðs‚¢‚Ü‚·B";
}
on (rollOut) {
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1122 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(9);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "‘•”õ•i‚Ìw“üE”„‹p‚ðs‚¢‚Ü‚·B";
}
on (rollOut) {
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1123 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(33);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µAoŒ‚‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1124 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(37);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒvƒŒƒCƒf[ƒ^‚ð•Û‘¶‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1125 Button
on (release) {
this.continue_flg = 0;
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(41);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒvƒŒƒCƒf[ƒ^‚ð“Ç‚Ýž‚Ý‚Ü‚·B";
}
on (rollOut) {
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1133 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(17);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "•Ší‚𔄋p‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒVƒ‡ƒbƒv‚Å‚Ìs“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1134 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(13);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "•Ší‚ðw“ü‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒVƒ‡ƒbƒv‚Å‚Ìs“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1135 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(25);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚𔄋p‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒVƒ‡ƒbƒv‚Å‚Ìs“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1136 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(21);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚ðw“ü‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒVƒ‡ƒbƒv‚Å‚Ìs“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1137 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(5);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒƒCƒ“ƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
Symbol 1187 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_wep;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
if (_root.getwep_now[this.i] == 8) {
i = 50;
}
i--;
if (((((_root.shop_wep[this.i] == 1) || (_root.shop_wep[this.i] == 2)) || (_root.shop_wep[this.i] == 3)) || (_root.shop_wep[this.i] == 4)) || (_root.shop_wep[this.i] == 5)) {
if (_root.getwep_now[this.i] == 0) {
this.shopicon_wep = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "w“ü‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1188 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_wep;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getwep_now[this.i] == 9) {
i = 1;
}
if (i != 1) {
if (((((_root.shop_wep[this.i] == 1) || (_root.shop_wep[this.i] == 2)) || (_root.shop_wep[this.i] == 3)) || (_root.shop_wep[this.i] == 4)) || (_root.shop_wep[this.i] == 5)) {
if (_root.getwep_now[this.i] == 0) {
this.shopicon_wep = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "w“ü‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1189 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(10);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒVƒ‡ƒbƒvƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1190 Button
on (release) {
if ((this.shopicon_wep != 0) && (this.shopicon_wep != 1)) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_get_item");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= this.price) {
_root.getwep_now[this.shopicon_wep] = _root.shop_wep[this.shopicon_wep];
_root.c_point = _root.c_point - this.price;
this.gotoAndPlay(13);
}
}
}
on (rollOver) {
_root.comment = "Œ»Ý‘I‘𒆂̕Ší‚ðw“ü‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1200 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_wep;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
if (_root.getwep_now[this.i] == 8) {
i = 50;
}
i--;
if (((((_root.shop_wep[this.i] == 1) || (_root.shop_wep[this.i] == 2)) || (_root.shop_wep[this.i] == 3)) || (_root.shop_wep[this.i] == 4)) || (_root.shop_wep[this.i] == 5)) {
if (_root.getwep_now[this.i] != 0) {
this.shopicon_wep = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "”„‹p‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1201 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_wep;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getwep_now[this.i] == 9) {
i = 1;
}
if (((((_root.shop_wep[this.i] == 1) || (_root.shop_wep[this.i] == 2)) || (_root.shop_wep[this.i] == 3)) || (_root.shop_wep[this.i] == 4)) || (_root.shop_wep[this.i] == 5)) {
if (_root.getwep_now[this.i] != 0) {
this.shopicon_wep = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "”„‹p‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1202 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(10);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒVƒ‡ƒbƒvƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1203 Button
on (release) {
if ((this.shopicon_wep != 0) && (this.shopicon_wep != 1)) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_select");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.getwep_now[this.shopicon_wep] = 0;
if (_root.equip_wep[1] == this.shopicon_wep) {
_root.equip_wep[1] = 1;
}
if (_root.equip_wep[2] == this.shopicon_wep) {
_root.equip_wep[2] = 0;
}
_root.c_point = _root.c_point + this.price;
this.gotoAndPlay(17);
}
}
on (rollOver) {
_root.comment = "Œ»Ý‘I‘𒆂̕Ší‚𔄋p‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1232 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_armor;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
if (_root.getarmor_now[this.i] == 8) {
i = 20;
}
i--;
if (((((_root.shop_armor[this.i] == 1) || (_root.shop_armor[this.i] == 2)) || (_root.shop_armor[this.i] == 3)) || (_root.shop_armor[this.i] == 4)) || (_root.shop_armor[this.i] == 5)) {
if (_root.getarmor_now[this.i] == 0) {
this.shopicon_armor = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1233 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_armor;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getarmor_now[this.i] == 9) {
i = 1;
}
if (i != 1) {
if (((((_root.shop_armor[this.i] == 1) || (_root.shop_armor[this.i] == 2)) || (_root.shop_armor[this.i] == 3)) || (_root.shop_armor[this.i] == 4)) || (_root.shop_armor[this.i] == 5)) {
if (_root.getarmor_now[this.i] == 0) {
this.shopicon_armor = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1234 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(10);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒVƒ‡ƒbƒvƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1235 Button
on (release) {
if ((this.shopicon_armor != 0) && (this.shopicon_armor != 1)) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_get_item");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= this.price) {
_root.getarmor_now[this.shopicon_armor] = _root.shop_armor[this.shopicon_armor];
_root.c_point = _root.c_point - this.price;
this.gotoAndPlay(21);
}
}
}
on (rollOver) {
_root.comment = "Œ»Ý‘I‘𒆂̃A[ƒ}[‚ðw“ü‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1243 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_armor;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
if (_root.getarmor_now[this.i] == 8) {
i = 20;
}
i--;
if (((((_root.shop_armor[this.i] == 1) || (_root.shop_armor[this.i] == 2)) || (_root.shop_armor[this.i] == 3)) || (_root.shop_armor[this.i] == 4)) || (_root.shop_armor[this.i] == 5)) {
if (_root.getarmor_now[this.i] != 0) {
this.shopicon_armor = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1244 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.i = this.shopicon_armor;
j = 0;
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getarmor_now[this.i] == 9) {
i = 1;
}
if (((((_root.shop_armor[this.i] == 1) || (_root.shop_armor[this.i] == 2)) || (_root.shop_armor[this.i] == 3)) || (_root.shop_armor[this.i] == 4)) || (_root.shop_armor[this.i] == 5)) {
if (_root.getarmor_now[this.i] != 0) {
this.shopicon_armor = i;
i = -2;
}
}
}
}
on (rollOver) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1245 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(10);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒVƒ‡ƒbƒvƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1246 Button
on (release) {
if ((this.shopicon_armor != 0) && (this.shopicon_armor != 1)) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_select");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.getarmor_now[this.shopicon_armor] = 0;
if (_root.equip_armor == this.shopicon_armor) {
_root.equip_armor = 1;
}
_root.c_point = _root.c_point + this.price;
this.gotoAndPlay(25);
}
}
on (rollOver) {
_root.comment = "Œ»Ý‘I‘𒆂̃A[ƒ}[‚𔄋p‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1261 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.a_max[_root.equip_armor]) {
_root.c_point = _root.c_point + (((200 * _root.a_max[_root.equip_armor]) * _root.a_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.a_max[_root.equip_armor]--;
_root.comment3 = ((200 * _root.a_max[_root.equip_armor]) * _root.a_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.a_max[_root.equip_armor]) {
_root.a_max[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚Ì‘Ï‹vŒÀŠE‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.a_max[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((200 * _root.a_max[_root.equip_armor]) * _root.a_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1262 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.a_defense[_root.equip_armor]) {
_root.c_point = _root.c_point + (((300 * _root.a_defense[_root.equip_armor]) * _root.a_defense[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.a_defense[_root.equip_armor]--;
_root.comment3 = ((300 * _root.a_defense[_root.equip_armor]) * _root.a_defense[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.a_defense[_root.equip_armor]) {
_root.a_defense[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚Ì–hŒä—Í‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.a_defense[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((300 * _root.a_defense[_root.equip_armor]) * _root.a_defense[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1263 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.a_move[_root.equip_armor]) {
_root.c_point = _root.c_point + (((500 * _root.a_move[_root.equip_armor]) * _root.a_move[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.a_move[_root.equip_armor]--;
_root.comment3 = ((500 * _root.a_move[_root.equip_armor]) * _root.a_move[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.a_move[_root.equip_armor]) {
_root.a_move[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚̈ړ®”\\—Í‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.a_move[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((500 * _root.a_move[_root.equip_armor]) * _root.a_move[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1264 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.b_max[_root.equip_armor]) {
_root.c_point = _root.c_point + (((200 * _root.b_max[_root.equip_armor]) * _root.b_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.b_max[_root.equip_armor]--;
_root.comment3 = ((200 * _root.b_max[_root.equip_armor]) * _root.b_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.b_max[_root.equip_armor]) {
_root.b_max[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚ÌŒp‘±ŽžŠÔ‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.b_max[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((200 * _root.b_max[_root.equip_armor]) * _root.b_max[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1265 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.b_pw[_root.equip_armor]) {
_root.c_point = _root.c_point + (((500 * _root.b_pw[_root.equip_armor]) * _root.b_pw[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.b_pw[_root.equip_armor]--;
_root.comment3 = ((500 * _root.b_pw[_root.equip_armor]) * _root.b_pw[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.b_pw[_root.equip_armor]) {
_root.b_pw[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚Ìo—Í‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.b_pw[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((500 * _root.b_pw[_root.equip_armor]) * _root.b_pw[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1266 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (0 < _root.b_recv[_root.equip_armor]) {
_root.c_point = _root.c_point + (((300 * _root.b_recv[_root.equip_armor]) * _root.b_recv[_root.equip_armor]) * _root.cost_armor[_root.equip_armor]);
_root.b_recv[_root.equip_armor]--;
_root.comment3 = ((300 * _root.b_recv[_root.equip_armor]) * _root.b_recv[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
if (0 >= _root.b_recv[_root.equip_armor]) {
_root.b_recv[_root.equip_armor] = 0;
_root.comment3 = "’ቺŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚̉ñ•œ—Í‚ðŠÒŒ³‚µ‚Ü‚·B";
_root.comment2 = "ŠÒŒ³CPF";
if (0 >= _root.b_recv[_root.equip_armor]) {
_root.comment3 = "’ቺŒÀŠE";
} else {
_root.comment3 = ((300 * _root.b_recv[_root.equip_armor]) * _root.b_recv[_root.equip_armor]) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1267 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
if (_root.shop_armor[_root.equip_armor] != 5) {
i = _root.equip_wep[1];
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i--;
if (_root.getwep_now[this.i] == 8) {
i = 50;
}
if (((_root.getwep_now[this.i] == 1) || (_root.getwep_now[this.i] == 5)) || (_root.getwep_now[this.i] == 4)) {
_root.equip_wep[1] = i;
i = -2;
}
if (_root.getwep_now[this.i] == 2) {
if ((_root.shop_armor[_root.equip_armor] == 3) || (_root.shop_armor[_root.equip_armor] == 4)) {
i--;
} else {
_root.equip_wep[1] = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1268 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
if ((_root.shop_armor[_root.equip_armor] == 2) || (_root.shop_armor[_root.equip_armor] == 4)) {
i = _root.equip_wep[2];
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i--;
if (i < 0) {
i = 50;
}
if ((((_root.getwep_now[this.i] == 1) || (_root.getwep_now[this.i] == 45)) || (_root.getwep_now[this.i] == 5)) || (_root.getwep_now[this.i] == 8)) {
_root.equip_wep[2] = i;
i = -2;
}
if (_root.getwep_now[this.i] == 2) {
if ((_root.shop_armor[_root.equip_armor] == 3) || (_root.shop_armor[_root.equip_armor] == 4)) {
i--;
} else {
_root.equip_wep[2] = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1269 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
if (_root.shop_armor[_root.equip_armor] != 5) {
i = _root.equip_wep[1];
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getwep_now[this.i] == 9) {
i = 1;
}
if (((_root.getwep_now[this.i] == 1) || (_root.getwep_now[this.i] == 5)) || (_root.getwep_now[this.i] == 4)) {
_root.equip_wep[1] = i;
i = -2;
}
if (_root.getwep_now[this.i] == 2) {
if ((_root.shop_armor[_root.equip_armor] == 3) || (_root.shop_armor[_root.equip_armor] == 4)) {
i++;
} else {
_root.equip_wep[1] = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1270 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
if ((_root.shop_armor[_root.equip_armor] == 2) || (_root.shop_armor[_root.equip_armor] == 4)) {
i = _root.equip_wep[2];
while ((i != -2) && (j != -1)) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getwep_now[this.i] == 9) {
i = 0;
}
if ((((_root.getwep_now[this.i] == 1) || (_root.getwep_now[this.i] == 45)) || (_root.getwep_now[this.i] == 5)) || (_root.getwep_now[this.i] == 8)) {
_root.equip_wep[2] = i;
i = -2;
}
if (_root.getwep_now[this.i] == 2) {
if ((_root.shop_armor[_root.equip_armor] == 3) || (_root.shop_armor[_root.equip_armor] == 4)) {
i++;
} else {
_root.equip_wep[2] = i;
i = -2;
}
}
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚é•Ší‚ð•ÏX‚µ‚Ü‚·B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1271 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
i = _root.equip_armor;
while (i != -2) {
j++;
if (j >= 100) {
j = -1;
}
i--;
if (_root.getarmor_now[this.i] == 8) {
i = 20;
}
if (((((_root.getarmor_now[this.i] == 1) || (_root.getarmor_now[this.i] == 2)) || (_root.getarmor_now[this.i] == 3)) || (_root.getarmor_now[this.i] == 4)) || (_root.getarmor_now[this.i] == 5)) {
_root.equip_armor = i;
i = -2;
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚éƒA[ƒ}[‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1272 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
j = 0;
i = _root.equip_armor;
while (i != -2) {
j++;
if (j >= 100) {
j = -1;
}
i++;
if (_root.getarmor_now[this.i] == 9) {
i = 1;
}
if (((((_root.getarmor_now[this.i] == 1) || (_root.getarmor_now[this.i] == 2)) || (_root.getarmor_now[this.i] == 3)) || (_root.getarmor_now[this.i] == 4)) || (_root.getarmor_now[this.i] == 5)) {
_root.equip_armor = i;
i = -2;
}
}
}
on (rollOver) {
_root.comment = "‘•”õ‚·‚éƒA[ƒ}[‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1273 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((200 * (_root.a_max[_root.equip_armor] + 1)) * (_root.a_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.a_max[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((200 * (_root.a_max[_root.equip_armor] + 1)) * (_root.a_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.a_max[_root.equip_armor]++;
_root.comment3 = ((200 * (_root.a_max[_root.equip_armor] + 1)) * (_root.a_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.a_max[_root.equip_armor] >= 10) {
_root.a_max[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚Ì‘Ï‹vŒÀŠE‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.a_max[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((200 * (_root.a_max[_root.equip_armor] + 1)) * (_root.a_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1274 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((300 * (_root.a_defense[_root.equip_armor] + 1)) * (_root.a_defense[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.a_defense[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((300 * (_root.a_defense[_root.equip_armor] + 1)) * (_root.a_defense[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.a_defense[_root.equip_armor]++;
_root.comment3 = ((300 * (_root.a_defense[_root.equip_armor] + 1)) * (_root.a_defense[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.a_defense[_root.equip_armor] >= 10) {
_root.a_defense[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚Ì–hŒä—Í‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.a_defense[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((300 * (_root.a_defense[_root.equip_armor] + 1)) * (_root.a_defense[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1275 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((500 * (_root.a_move[_root.equip_armor] + 1)) * (_root.a_move[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.a_move[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((500 * (_root.a_move[_root.equip_armor] + 1)) * (_root.a_move[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.a_move[_root.equip_armor]++;
_root.comment3 = ((500 * (_root.a_move[_root.equip_armor] + 1)) * (_root.a_move[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.a_move[_root.equip_armor] >= 10) {
_root.a_move[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒA[ƒ}[‚̈ړ®”\\—Í‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.a_move[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((500 * (_root.a_move[_root.equip_armor] + 1)) * (_root.a_move[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1276 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((200 * (_root.b_max[_root.equip_armor] + 1)) * (_root.b_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.b_max[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((200 * (_root.b_max[_root.equip_armor] + 1)) * (_root.b_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.b_max[_root.equip_armor]++;
_root.comment3 = ((200 * (_root.b_max[_root.equip_armor] + 1)) * (_root.b_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.b_max[_root.equip_armor] >= 10) {
_root.b_max[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚ÌŒp‘±ŽžŠÔ‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.b_max[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((200 * (_root.b_max[_root.equip_armor] + 1)) * (_root.b_max[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1277 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((500 * (_root.b_pw[_root.equip_armor] + 1)) * (_root.b_pw[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.b_pw[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((500 * (_root.b_pw[_root.equip_armor] + 1)) * (_root.b_pw[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.b_pw[_root.equip_armor]++;
_root.comment3 = ((500 * (_root.b_pw[_root.equip_armor] + 1)) * (_root.b_pw[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.b_pw[_root.equip_armor] >= 10) {
_root.b_pw[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚Ìo—Í‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.b_pw[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((500 * (_root.b_pw[_root.equip_armor] + 1)) * (_root.b_pw[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1278 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.c_point >= (((300 * (_root.b_recv[_root.equip_armor] + 1)) * (_root.b_recv[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor])) {
if (_root.b_recv[_root.equip_armor] < 10) {
_root.c_point = _root.c_point - (((300 * (_root.b_recv[_root.equip_armor] + 1)) * (_root.b_recv[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor]);
_root.b_recv[_root.equip_armor]++;
_root.comment3 = ((300 * (_root.b_recv[_root.equip_armor] + 1)) * (_root.b_recv[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
if (_root.b_recv[_root.equip_armor] >= 10) {
_root.b_recv[_root.equip_armor] = 10;
_root.comment3 = "‹‰»ŒÀŠE";
}
}
on (rollOver) {
_root.comment = "ƒu[ƒXƒg‚̉ñ•œ—Í‚ð‹‰»‚µ‚Ü‚·B";
_root.comment2 = "•K—vCPF";
if (_root.b_recv[_root.equip_armor] >= 10) {
_root.comment3 = "‹‰»ŒÀŠE";
} else {
_root.comment3 = ((300 * (_root.b_recv[_root.equip_armor] + 1)) * (_root.b_recv[_root.equip_armor] + 1)) * _root.cost_armor[_root.equip_armor];
}
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1279 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.jump_mode == 1) {
_root.jump_mode = 0;
} else if (_root.jump_mode == 0) {
_root.jump_mode = 1;
}
if (_root.jump_mode == 0) {
_root.comment = "•ûŒüƒL[ª‚Ń`ƒƒ[ƒW‚µ—£‚·‚ƃWƒƒƒ“ƒv‚µ‚Ü‚·B";
}
if (_root.jump_mode == 1) {
_root.comment = "•ûŒüƒL[ª‚ð‰Ÿ‚·‚ƃWƒƒƒ“ƒv‚µ‚Ü‚·B";
}
}
on (rollOver) {
if (_root.jump_mode == 0) {
_root.comment = "•ûŒüƒL[ª‚Ń`ƒƒ[ƒW‚µ—£‚·‚ƃWƒƒƒ“ƒv‚µ‚Ü‚·B";
}
if (_root.jump_mode == 1) {
_root.comment = "•ûŒüƒL[ª‚ð‰Ÿ‚·‚ƃWƒƒƒ“ƒv‚µ‚Ü‚·B";
}
_root.comment2 = " ";
_root.comment3 = "";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1280 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(5);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒZƒbƒgƒAƒbƒv‚ðI—¹‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
}
Symbol 1285 MovieClip Frame 1
if (_root.jump_mode == 1) {
this.jumpmode_logo.gotoAndStop(2);
}
if (_root.jump_mode == 0) {
this.jumpmode_logo.gotoAndStop(1);
}
Symbol 1285 MovieClip Frame 2
this.goroAndPly(1);
Symbol 1313 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (_root.mission_num != 0) {
_root.player_set();
_root.game_flg = 1;
_root.screen_flg = 1;
}
_root.comment = "@";
}
on (rollOver) {
_root.comment = "oŒ‚‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1314 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(5);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒƒCƒ“ƒƒjƒ…[‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1316 Button
on (release) {
if (_root.game_flg == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
i = _root.mission_num;
while (i != 100) {
i--;
if (i < -70) {
i = 100;
}
if (_root.mission_able[i] == 1) {
_root.mission_num = i;
i = 100;
} else if (_root.mission_able[i] == 9) {
i = 50;
}
}
}
}
on (rollOver) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1317 Button
on (release) {
if (_root.game_flg == 0) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
i = _root.mission_num;
while (i != 100) {
i++;
if (70 < i) {
i = 100;
}
if (_root.mission_able[i] == 1) {
_root.mission_num = i;
i = 100;
} else if (_root.mission_able[i] == 9) {
i = 0;
}
}
}
}
on (rollOver) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð•ÏX‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
}
Symbol 1348 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.save_write1();
_root.comment = "@";
this.gotoAndPlay(37);
}
on (rollOver) {
_root.comment = "ƒf[ƒ^‚P‚É•Û‘¶‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒZ[ƒu‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1349 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.save_write2();
_root.comment = "@";
this.gotoAndPlay(37);
}
on (rollOver) {
_root.comment = "ƒf[ƒ^‚Q‚É•Û‘¶‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒZ[ƒu‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1350 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(5);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ˆê‚‘O‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒZ[ƒu‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1367 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.save_read1();
_root.comment = "@";
this.gotoAndPlay(5);
}
on (rollOver) {
_root.comment = "ƒf[ƒ^‚P‚ð“Ç‚Ýž‚Ý‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒ[ƒh‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1368 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.save_read2();
_root.comment = "@";
this.gotoAndPlay(5);
}
on (rollOver) {
_root.comment = "ƒf[ƒ^‚Q‚ð“Ç‚Ýž‚Ý‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒ[ƒh‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1369 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
if (this.continue_flg == 1) {
this.continue_flg = 0;
this.gotoAndPlay(1);
} else {
this.gotoAndPlay(5);
}
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ˆê‚‘O‚É–ß‚è‚Ü‚·B";
}
on (rollOut) {
_root.comment = "ƒ[ƒh‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
}
Symbol 1396 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
_root.c_point = _root.c_point + Math.round(_root.get_points);
if (9999999999 < _root.c_point) {
_root.c_point = 9999999999;
}
_root.total_destroy = _root.total_destroy + _root.destroy_num;
if (10000 < _root.total_destroy) {
_root.shop_wep[35] = 5;
}
if (5000 < _root.total_destroy) {
_root.shop_wep[36] = 1;
}
_root.game_flg = 0;
_root.game_initialize();
this.gotoAndPlay(5);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "ƒŠƒUƒ‹ƒg‚ðI—¹‚µ‚Ü‚·B";
}
on (rollOut) {
_root.comment = "¡‰ñ‚ÌíÑ‚Å‚·B";
}
Symbol 1400 Button
on (release) {
this.getURL("http://sound.jp/gokamura/");
}
Symbol 1401 Button
on (release) {
this.getURL("http://www3.pf-x.net/~kurogane-second/index.html");
}
Symbol 1403 Button
on (release) {
mu_bgm = new Sound(_root);
mu_bgm.attachSound("se_decision");
mu_bgm.start(0, 1);
mu_bgm.setVolume(50);
this.gotoAndPlay(1);
_root.comment = "@";
}
on (rollOver) {
_root.comment = "";
}
on (rollOut) {
_root.comment = "";
}
Symbol 1409 MovieClip Frame 1
_root.comment = "ƒQ[ƒ€‚ÌŠJŽn•û–@‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 2
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1409 MovieClip Frame 5
_root.comment = "s“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 6
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 7
this.gotoAndPlay(6);
Symbol 1409 MovieClip Frame 9
_root.comment = "ƒVƒ‡ƒbƒv‚Å‚Ìs“®‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 10
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 11
this.gotoAndPlay(10);
Symbol 1409 MovieClip Frame 13
this.shopicon_wep = 0;
this.wep_icons.gotoAndStop(this.shopicon_wep + 1);
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 14
if (_root.clear_flg_main[1] >= 2) {
_root.shop_wep[2] = 1;
}
if (_root.clear_flg_main[12] >= 2) {
_root.shop_wep[3] = 1;
}
if (_root.clear_flg_main[14] >= 2) {
_root.shop_wep[4] = 1;
}
if (_root.clear_flg_main[19] >= 1) {
_root.shop_wep[11] = 5;
}
if (_root.clear_flg_main[3] >= 1) {
_root.shop_wep[20] = 1;
}
if (_root.clear_flg_main[4] >= 1) {
_root.shop_wep[21] = 1;
}
if (_root.clear_flg_main[7] >= 1) {
_root.shop_wep[25] = 1;
}
if (_root.clear_flg_main[8] >= 2) {
_root.shop_wep[30] = 1;
}
if (_root.clear_flg_main[10] >= 2) {
_root.shop_wep[36] = 1;
}
if (_root.clear_flg_main[11] >= 1) {
_root.shop_wep[35] = 5;
}
if (_root.clear_flg_main[13] >= 2) {
_root.shop_wep[41] = 2;
}
if (_root.clear_flg_main[17] >= 2) {
_root.shop_wep[45] = 4;
}
if ((_root.clear_flg_main[17] >= 1) && (_root.custom_bonus == 0)) {
_root.shop_wep[46] = 4;
}
if ((((_root.clear_flg_main[11] >= 1) && (_root.clear_flg_main[21] >= 1)) && (_root.cunstom.bonus == 6)) && (35000000 < _root.c_point)) {
_root.shop_wep[8] = 4;
}
if (this.shopicon_wep == 0) {
this.bar_attack._xscale = 0;
this.bar_rapid._xscale = 0;
this.bar_range._xscale = 0;
this.bar_bullets._xscale = 0;
this.bar_reload._xscale = 0;
this.price = "----";
this.name_wep1 = "----";
} else if (this.shopicon_wep == 1) {
this.bar_attack._xscale = 5;
this.bar_rapid._xscale = 80;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 45;
this.bar_reload._xscale = 50;
this.price = "----";
_root.comment = "˜AŽË”\\—Í‚Ì‚‚¢ƒ}ƒVƒ“ƒKƒ“‚Å‚·B";
this.name_wep1 = "TMG-001 THE VOICE";
} else if (this.shopicon_wep == 2) {
this.bar_attack._xscale = 10;
this.bar_rapid._xscale = 85;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 70;
this.price = 39000;
_root.comment = "UŒ‚—͂̉ü—Ç‚ðŽ{‚µ‚½ƒ}ƒVƒ“ƒKƒ“‚Å‚·B";
this.name_wep1 = "TMG-013S ANTARES";
} else if (this.shopicon_wep == 3) {
this.bar_attack._xscale = 5;
this.bar_rapid._xscale = 90;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 50;
this.bar_reload._xscale = 85;
this.price = 129000 /* 0x01F7E8 */;
_root.comment = "‰ñ“]ƒoƒŒƒ‹‚ðŽÀ‘•‚µ‚½‚‘¬˜AŽËƒKƒgƒŠƒ“ƒO‚Å‚·B";
this.name_wep1 = "TGG-024 TEARS";
} else if (this.shopicon_wep == 4) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 80;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 80;
this.bar_reload._xscale = 95;
this.price = 1208000 /* 0x126EC0 */;
_root.comment = "‹—Í‚È”j‰ó—Í‚ðŽ‚ƒfƒ…ƒAƒ‹ƒKƒgƒŠƒ“ƒO‚Å‚·B";
this.name_wep1 = "GGX-035 MOMENT";
} else if (this.shopicon_wep == 5) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 35;
this.bar_range._xscale = 25;
this.bar_bullets._xscale = 25;
this.bar_reload._xscale = 40;
this.price = 19000;
_root.comment = "ŠgŽU’e‚ð”ŽË‚·‚éƒVƒ‡ƒbƒgƒKƒ“‚Å‚·";
this.name_wep1 = "TSG-001 RAIN";
} else if (this.shopicon_wep == 8) {
this.bar_attack._xscale = 70;
this.bar_rapid._xscale = 5;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 20;
this.bar_reload._xscale = 10;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "‰Á‘¬“x“I‚É”j‰ó—Í‚ªã‚ª‚é˜AŽËŽ®ƒVƒ‡ƒbƒgƒKƒ“‚Å‚·B";
this.name_wep1 = "TSG-C014 TEMPEST";
} else if (this.shopicon_wep == 10) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 30;
this.bar_range._xscale = 90;
this.bar_bullets._xscale = 40;
this.bar_reload._xscale = 50;
this.price = 54000;
_root.comment = "’·‹——£¸–§ŽËŒ‚‚ª‰Â”\\‚ȃXƒiƒCƒp[ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "TSR-022 HAWK-EYE";
} else if (this.shopicon_wep == 11) {
this.bar_attack._xscale = 60;
this.bar_rapid._xscale = 10;
this.bar_range._xscale = 70;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 45;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "‹—Í‚ÈŠÑ’Ê’e‚ð”ŽË‚·‚éƒpƒ[ƒLƒƒƒmƒ“‚Å‚·B";
this.name_wep1 = "TPC-020X PIERCE";
} else if (this.shopicon_wep == 15) {
this.bar_attack._xscale = 15;
this.bar_rapid._xscale = 65;
this.bar_range._xscale = 60;
this.bar_bullets._xscale = 30;
this.bar_reload._xscale = 40;
this.price = 75000 /* 0x0124F8 */;
_root.comment = "”CˆÓ—U“±‚ª‰Â”\\‚ȃ~ƒTƒCƒ‹ƒ|ƒbƒh‚Å‚·B";
this.name_wep1 = "MSL-001 PHANTOM-TAILS";
} else if (this.shopicon_wep == 20) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 35;
this.bar_range._xscale = 15;
this.bar_bullets._xscale = 25;
this.bar_reload._xscale = 40;
this.price = 89000 /* 0x015BA8 */;
_root.comment = "ˆê’莞ŠÔ‚Å”š”‚·‚é’e‚ðŒ‚‚ÂƒOƒŒƒl[ƒhƒ‰ƒ“ƒ`ƒƒ[‚Å‚·B";
this.name_wep1 = "GRB-013 BOUNDARY";
} else if (this.shopicon_wep == 21) {
this.bar_attack._xscale = 65;
this.bar_rapid._xscale = 45;
this.bar_range._xscale = 15;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 65;
this.price = 168000 /* 0x029040 */;
_root.comment = "–Ú•W‚ÉŽh‚³‚èAŽžŠÔ·”š”‚ð‹N‚±‚·ƒOƒŒƒl[ƒhƒpƒCƒ‹‚Å‚·B";
this.name_wep1 = "NGP-003 ECLIPSE";
} else if (this.shopicon_wep == 25) {
this.bar_attack._xscale = 55;
this.bar_rapid._xscale = 15;
this.bar_range._xscale = 40;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 30;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "’…’eŒã”š”‚·‚é’e‚ðŒ‚‚ÂƒoƒY[ƒJ‚Å‚·B";
this.name_wep1 = "TBZ-013 AGONY";
} else if (this.shopicon_wep == 26) {
this.bar_attack._xscale = 55;
this.bar_rapid._xscale = 15;
this.bar_range._xscale = 40;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 30;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "---";
this.name_wep1 = "---";
} else if (this.shopicon_wep == 30) {
this.bar_attack._xscale = 80;
this.bar_rapid._xscale = 45;
this.bar_range._xscale = 70;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 10;
this.price = 28000000 /* 0x1AB3F00 */;
_root.comment = "‚o—͂̃|ƒWƒgƒƒ“ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "PSR-X71 REQUIEM";
} else if (this.shopicon_wep == 35) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 5;
this.bar_range._xscale = 80;
this.bar_bullets._xscale = 5;
this.bar_reload._xscale = 15;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "ƒ`ƒƒ[ƒWƒVƒ‡ƒbƒg‚ð•ú‚ƒŒ[ƒ‹ƒKƒ“‚Å‚·B";
this.name_wep1 = "RGN-050C LONGINUS";
} else if (this.shopicon_wep == 36) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 50;
this.bar_range._xscale = 80;
this.bar_bullets._xscale = 30;
this.bar_reload._xscale = 40;
this.price = 1500000 /* 0x16E360 */;
_root.comment = "”Ä—p«‚Ì‚‚¢ƒr[ƒ€ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "BMR-250 DESIRE";
} else if (this.shopicon_wep == 40) {
this.bar_attack._xscale = 60;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 100;
this.bar_reload._xscale = 100;
this.price = 120000 /* 0x01D4C0 */;
_root.comment = "‹ßÚí—p‚Ì•¨—ƒuƒŒ[ƒh‚Å‚·B";
this.name_wep1 = "BLD-S05 ’fb“";
} else if (this.shopicon_wep == 41) {
this.bar_attack._xscale = 90;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 100;
this.bar_reload._xscale = 100;
this.price = 320000 /* 0x04E200 */;
_root.comment = "‹ßÚí—p‚̃Gƒlƒ‹ƒM[ƒuƒŒ[ƒh‚Å‚·B";
this.name_wep1 = "BLD-E14 Glanzen";
} else if (this.shopicon_wep == 45) {
this.bar_attack._xscale = 40;
this.bar_rapid._xscale = 90;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 80;
this.bar_reload._xscale = 50;
this.price = 560000 /* 0x088B80 */;
_root.comment = "d‹à‘®‰ÁH‘•’u‚ð‰ü‘¢‚µ‚½ƒuƒŒ[ƒhƒ\\[‚Å‚·B";
this.name_wep1 = "BLS-913 GENOS";
} else if (this.shopicon_wep == 46) {
this.bar_attack._xscale = 50;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 20;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 50;
this.price = 1800000 /* 0x1B7740 */;
_root.comment = "‹—Í‚ÈÕŒ‚‚ð—^‚¦‚éƒoƒgƒ‹ƒnƒ“ƒ}[‚Å‚·B";
this.name_wep1 = "HMB-078 s“S";
} else {
this.bar_attack._xscale = 0;
this.bar_rapid._xscale = 0;
this.bar_range._xscale = 0;
this.bar_bullets._xscale = 0;
this.bar_reload._xscale = 0;
this.price = "----";
_root.comment = "w“ü‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
this.name_wep1 = "----";
}
this.wep_icons.gotoAndStop(this.shopicon_wep + 1);
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 15
this.gotoAndPlay(14);
Symbol 1409 MovieClip Frame 17
this.shopicon_wep = 0;
this.wep_icons.gotoAndStop(this.shopicon_wep + 1);
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 18
if (this.shopicon_wep == 0) {
this.bar_attack._xscale = 0;
this.bar_rapid._xscale = 0;
this.bar_range._xscale = 0;
this.bar_bullets._xscale = 0;
this.bar_reload._xscale = 0;
this.price = "----";
this.name_wep1 = "----";
} else if (this.shopicon_wep == 1) {
this.bar_attack._xscale = 5;
this.bar_rapid._xscale = 80;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 45;
this.bar_reload._xscale = 50;
this.price = "----";
_root.comment = "˜AŽË”\\—Í‚Ì‚‚¢ƒ}ƒVƒ“ƒKƒ“‚Å‚·B";
this.name_wep1 = "TMG-001 THE VOICE";
} else if (this.shopicon_wep == 2) {
this.bar_attack._xscale = 10;
this.bar_rapid._xscale = 85;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 70;
this.price = 39000;
_root.comment = "UŒ‚—͂̉ü—Ç‚ðŽ{‚µ‚½ƒ}ƒVƒ“ƒKƒ“‚Å‚·B";
this.name_wep1 = "TMG-013S ANTARES";
} else if (this.shopicon_wep == 3) {
this.bar_attack._xscale = 5;
this.bar_rapid._xscale = 90;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 50;
this.bar_reload._xscale = 85;
this.price = 129000 /* 0x01F7E8 */;
_root.comment = "‰ñ“]ƒoƒŒƒ‹‚ðŽÀ‘•‚µ‚½‚‘¬˜AŽËƒKƒgƒŠƒ“ƒO‚Å‚·B";
this.name_wep1 = "TGG-024 TEARS";
} else if (this.shopicon_wep == 4) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 80;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 80;
this.bar_reload._xscale = 95;
this.price = 1208000 /* 0x126EC0 */;
_root.comment = "‹—Í‚È”j‰ó—Í‚ðŽ‚ƒfƒ…ƒAƒ‹ƒKƒgƒŠƒ“ƒO‚Å‚·B";
this.name_wep1 = "GGX-035 MOMENT";
} else if (this.shopicon_wep == 5) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 35;
this.bar_range._xscale = 25;
this.bar_bullets._xscale = 25;
this.bar_reload._xscale = 40;
this.price = 19000;
_root.comment = "ŠgŽU’e‚ð”ŽË‚·‚éƒVƒ‡ƒbƒgƒKƒ“‚Å‚·";
this.name_wep1 = "TSG-001 RAIN";
} else if (this.shopicon_wep == 8) {
this.bar_attack._xscale = 70;
this.bar_rapid._xscale = 5;
this.bar_range._xscale = 30;
this.bar_bullets._xscale = 20;
this.bar_reload._xscale = 10;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "‰Á‘¬“x“I‚É”j‰ó—Í‚ªã‚ª‚é˜AŽËŽ®ƒVƒ‡ƒbƒgƒKƒ“‚Å‚·B";
this.name_wep1 = "TSG-C014 TEMPEST";
} else if (this.shopicon_wep == 10) {
this.bar_attack._xscale = 25;
this.bar_rapid._xscale = 30;
this.bar_range._xscale = 90;
this.bar_bullets._xscale = 40;
this.bar_reload._xscale = 50;
this.price = 54000;
_root.comment = "’·‹——£¸–§ŽËŒ‚‚ª‰Â”\\‚ȃXƒiƒCƒp[ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "TSR-022 HAWK-EYE";
} else if (this.shopicon_wep == 11) {
this.bar_attack._xscale = 60;
this.bar_rapid._xscale = 10;
this.bar_range._xscale = 70;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 45;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "‹—Í‚ÈŠÑ’Ê’e‚ð”ŽË‚·‚éƒpƒ[ƒLƒƒƒmƒ“‚Å‚·B";
this.name_wep1 = "TPC-020X PIERCE";
} else if (this.shopicon_wep == 15) {
this.bar_attack._xscale = 15;
this.bar_rapid._xscale = 65;
this.bar_range._xscale = 60;
this.bar_bullets._xscale = 30;
this.bar_reload._xscale = 40;
this.price = 75000 /* 0x0124F8 */;
_root.comment = "”CˆÓ—U“±‚ª‰Â”\\‚ȃ~ƒTƒCƒ‹ƒ|ƒbƒh‚Å‚·B";
this.name_wep1 = "MSL-001 PHANTOM-TAILS";
} else if (this.shopicon_wep == 20) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 35;
this.bar_range._xscale = 15;
this.bar_bullets._xscale = 25;
this.bar_reload._xscale = 40;
this.price = 89000 /* 0x015BA8 */;
_root.comment = "ˆê’莞ŠÔ‚Å”š”‚·‚é’e‚ðŒ‚‚ÂƒOƒŒƒl[ƒhƒ‰ƒ“ƒ`ƒƒ[‚Å‚·B";
this.name_wep1 = "GRB-013 BOUNDARY";
} else if (this.shopicon_wep == 21) {
this.bar_attack._xscale = 65;
this.bar_rapid._xscale = 45;
this.bar_range._xscale = 15;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 65;
this.price = 168000 /* 0x029040 */;
_root.comment = "–Ú•W‚ÉŽh‚³‚èAŽžŠÔ·”š”‚ð‹N‚±‚·ƒOƒŒƒl[ƒhƒpƒCƒ‹‚Å‚·B";
this.name_wep1 = "NGP-003 ECLIPSE";
} else if (this.shopicon_wep == 25) {
this.bar_attack._xscale = 55;
this.bar_rapid._xscale = 15;
this.bar_range._xscale = 40;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 30;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "’…’eŒã”š”‚·‚é’e‚ðŒ‚‚ÂƒoƒY[ƒJ‚Å‚·B";
this.name_wep1 = "TBZ-013 AGONY";
} else if (this.shopicon_wep == 26) {
this.bar_attack._xscale = 55;
this.bar_rapid._xscale = 15;
this.bar_range._xscale = 40;
this.bar_bullets._xscale = 15;
this.bar_reload._xscale = 30;
this.price = 280000 /* 0x0445C0 */;
_root.comment = "---";
this.name_wep1 = "---";
} else if (this.shopicon_wep == 30) {
this.bar_attack._xscale = 80;
this.bar_rapid._xscale = 45;
this.bar_range._xscale = 70;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 10;
this.price = 28000000 /* 0x1AB3F00 */;
_root.comment = "‚o—͂̃|ƒWƒgƒƒ“ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "PSR-X71 REQUIEM";
} else if (this.shopicon_wep == 35) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 5;
this.bar_range._xscale = 80;
this.bar_bullets._xscale = 5;
this.bar_reload._xscale = 15;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "ƒ`ƒƒ[ƒWƒVƒ‡ƒbƒg‚ð•ú‚ƒŒ[ƒ‹ƒKƒ“‚Å‚·B";
this.name_wep1 = "RGN-050C LONGINUS";
} else if (this.shopicon_wep == 36) {
this.bar_attack._xscale = 75;
this.bar_rapid._xscale = 50;
this.bar_range._xscale = 80;
this.bar_bullets._xscale = 30;
this.bar_reload._xscale = 40;
this.price = 1500000 /* 0x16E360 */;
_root.comment = "”Ä—p«‚Ì‚‚¢ƒr[ƒ€ƒ‰ƒCƒtƒ‹‚Å‚·B";
this.name_wep1 = "BMR-250 DESIRE";
} else if (this.shopicon_wep == 40) {
this.bar_attack._xscale = 60;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 100;
this.bar_reload._xscale = 100;
this.price = 120000 /* 0x01D4C0 */;
_root.comment = "‹ßÚí—p‚Ì•¨—ƒuƒŒ[ƒh‚Å‚·B";
this.name_wep1 = "BLD-S05 ’fb“";
} else if (this.shopicon_wep == 41) {
this.bar_attack._xscale = 90;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 100;
this.bar_reload._xscale = 100;
this.price = 320000 /* 0x04E200 */;
_root.comment = "‹ßÚí—p‚̃Gƒlƒ‹ƒM[ƒuƒŒ[ƒh‚Å‚·B";
this.name_wep1 = "BLD-E14 Glanzen";
} else if (this.shopicon_wep == 45) {
this.bar_attack._xscale = 40;
this.bar_rapid._xscale = 90;
this.bar_range._xscale = 10;
this.bar_bullets._xscale = 80;
this.bar_reload._xscale = 50;
this.price = 560000 /* 0x088B80 */;
_root.comment = "d‹à‘®‰ÁH‘•’u‚ð‰ü‘¢‚µ‚½ƒuƒŒ[ƒhƒ\\[‚Å‚·B";
this.name_wep1 = "BLS-913 GENOS";
} else if (this.shopicon_wep == 46) {
this.bar_attack._xscale = 50;
this.bar_rapid._xscale = 20;
this.bar_range._xscale = 20;
this.bar_bullets._xscale = 10;
this.bar_reload._xscale = 50;
this.price = 1800000 /* 0x1B7740 */;
_root.comment = "‹—Í‚ÈÕŒ‚‚ð—^‚¦‚éƒoƒgƒ‹ƒnƒ“ƒ}[‚Å‚·B";
this.name_wep1 = "HMB-078 s“S";
} else {
this.bar_attack._xscale = 0;
this.bar_rapid._xscale = 0;
this.bar_range._xscale = 0;
this.bar_bullets._xscale = 0;
this.bar_reload._xscale = 0;
this.price = "----";
_root.comment = "”„‹p‚·‚é•Ší‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
this.name_wep1 = "----";
}
this.wep_icons.gotoAndStop(this.shopicon_wep + 1);
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 19
this.gotoAndPlay(18);
Symbol 1409 MovieClip Frame 21
this.shopicon_armor = 0;
this.armor_icons.gotoAndStop(this.shopicon_armor + 1);
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 22
if (_root.clear_flg_main[12] >= 1) {
_root.shop_armor[4] = 4;
}
if (_root.clear_flg_main[15] >= 2) {
_root.shop_armor[5] = 4;
}
if (((((_root.getarmor_now[1] != 0) && (_root.getarmor_now[2] != 0)) && (_root.getarmor_now[3] != 0)) && (_root.getarmor_now[4] != 0)) && (_root.getarmor_now[5] != 0)) {
_root.shop_armor[9] = 5;
}
if (this.shopicon_armor == 0) {
this.bar_armor._xscale = 0;
this.bar_deffense._xscale = 0;
this.bar_boost._xscale = 0;
this.bar_power._xscale = 0;
this.bar_recv._xscale = 0;
this.price = "----";
_root.comment = "w“ü‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢";
_root.comment2 = "----";
this.armor_profile = "----";
this.armor_profile2 = "----";
this.armor_profile3 = "----";
this.armor_profile4 = "----";
}
if (this.shopicon_armor == 1) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 40;
this.bar_boost._xscale = 40;
this.bar_power._xscale = 50;
this.bar_recv._xscale = 30;
this.price = "----";
_root.comment = "ƒx[ƒVƒbƒN‚È”\\—Í‚ðŽ‚ƒA[ƒ}[‚Å‚·B";
_root.comment2 = "TAT-001C FANG";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒ_ƒbƒVƒ…’†–hŒä—ÍUP\nƒuƒŒ[ƒh‘•”õ‰Â”\\\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
if (this.shopicon_armor == 2) {
this.bar_armor._xscale = 40;
this.bar_deffense._xscale = 30;
this.bar_boost._xscale = 50;
this.bar_power._xscale = 70;
this.bar_recv._xscale = 40;
this.price = 190000 /* 0x02E630 */;
_root.comment = "uŠÔ“I‚Ȉړ®”\\—Í‚É’·‚¯‚½ƒA[ƒ}[‚Å‚·";
_root.comment2 = "TAT-003 GALE";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒVƒ‡[ƒgƒ_ƒbƒVƒ…\nƒ_ƒbƒVƒ…’†–hŒä—ÍUP\nƒuƒŒ[ƒh‘•”õ‰Â”\\\n‘•”õ‰Â”\\•Ší”F‚P";
}
if (this.shopicon_armor == 3) {
this.bar_armor._xscale = 60;
this.bar_deffense._xscale = 50;
this.bar_boost._xscale = 60;
this.bar_power._xscale = 40;
this.bar_recv._xscale = 35;
this.price = 210000 /* 0x033450 */;
_root.comment = "ƒzƒoƒŠƒ“ƒO‹@”\\“‹Ú‚Å‹ó’†í“¬‚ª‰Â”\\‚ȃA[ƒ}[‚Å‚·B";
_root.comment2 = "TAT-015 JAVELIN";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\n‹ó’†‚Ū‚ŃzƒoƒŠƒ“ƒO\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚È‚µ";
}
if (this.shopicon_armor == 4) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 35;
this.bar_power._xscale = 40;
this.bar_recv._xscale = 30;
this.price = 528000 /* 0x080E80 */;
_root.comment = "ƒXƒiƒCƒv‹@”\\‚ª”õ‚í‚Á‚½’·‹——£‘_Œ‚Œ^ƒA[ƒ}[‚Å‚·B";
_root.comment2 = "SAT-070 HORIZON";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒXƒiƒCƒv‹@”\\“‹Ú\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
if (this.shopicon_armor == 5) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 70;
this.bar_power._xscale = 65;
this.bar_recv._xscale = 60;
this.price = 2650000 /* 0x286F90 */;
_root.comment = "‹ó’†‚Å‚Ì‚‹@“®í“¬‚ª‰Â”\\‚ȃA[ƒ}[‚Å‚·B";
_root.comment2 = "AST-265 CARDINAL";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nª2‰ñ‚Å”òsƒ‚[ƒh\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚È‚µ";
}
if (this.shopicon_armor == 9) {
this.bar_armor._xscale = 35;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 60;
this.bar_power._xscale = 50;
this.bar_recv._xscale = 55;
this.price = 10005900 /* 0x98AD8C */;
_root.comment = "ƒGƒlƒ‹ƒM[ƒuƒŒ[ƒh‘•”õ‚̃A[ƒ}[‚Å‚·";
_root.comment2 = "TAF-009 ŸrŽQŽ®";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒVƒ‡[ƒgƒ_ƒbƒVƒ…\nê—p‘•”õFƒGƒNƒŠƒvƒXƒGƒbƒW\n‚»‚Ì‘¼•Ší‘•”õ•s‰Â";
}
if (this.shopicon_armor == 10) {
this.bar_armor._xscale = 60;
this.bar_deffense._xscale = 60;
this.bar_boost._xscale = 65;
this.bar_power._xscale = 80;
this.bar_recv._xscale = 60;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "‚·‚ׂĂ̔\\—Í‚ªƒAƒbƒv‚µ‚½ƒtƒ@ƒ“ƒOƒVƒŠ[ƒY‚ÌÅVŒ^";
_root.comment2 = "TAT-001RF SILVER-FANG";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒŠƒ[ƒhƒXƒs[ƒhƒAƒbƒv\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
this.armor_icons.gotoAndStop(this.shopicon_armor + 1);
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 23
this.gotoAndPlay(22);
Symbol 1409 MovieClip Frame 25
this.shopicon_armor = 0;
this.armor_icons.gotoAndStop(this.shopicon_armor + 1);
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 26
if (this.shopicon_armor == 0) {
this.bar_armor._xscale = 0;
this.bar_deffense._xscale = 0;
this.bar_boost._xscale = 0;
this.bar_power._xscale = 0;
this.bar_recv._xscale = 0;
this.price = "----";
_root.comment = "”„‹p‚·‚éƒA[ƒ}[‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢";
_root.comment2 = "----";
this.armor_profile = "----";
this.armor_profile2 = "----";
this.armor_profile3 = "----";
this.armor_profile4 = "----";
}
if (this.shopicon_armor == 1) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 40;
this.bar_boost._xscale = 40;
this.bar_power._xscale = 50;
this.bar_recv._xscale = 30;
this.price = "----";
_root.comment = "ƒx[ƒVƒbƒN‚È”\\—Í‚ðŽ‚ƒA[ƒ}[‚Å‚·B";
_root.comment2 = "TAT-001C FANG";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒ_ƒbƒVƒ…’†–hŒä—ÍUP\nƒuƒŒ[ƒh‘•”õ‰Â”\\\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
if (this.shopicon_armor == 2) {
this.bar_armor._xscale = 40;
this.bar_deffense._xscale = 30;
this.bar_boost._xscale = 50;
this.bar_power._xscale = 70;
this.bar_recv._xscale = 40;
this.price = 190000 /* 0x02E630 */;
_root.comment = "uŠÔ“I‚Ȉړ®”\\—Í‚É’·‚¯‚½ƒA[ƒ}[‚Å‚·";
_root.comment2 = "TAT-003 GALE";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒVƒ‡[ƒgƒ_ƒbƒVƒ…\nƒ_ƒbƒVƒ…’†–hŒä—ÍUP\nƒuƒŒ[ƒh‘•”õ‰Â”\\\n‘•”õ‰Â”\\•Ší”F‚P";
}
if (this.shopicon_armor == 3) {
this.bar_armor._xscale = 60;
this.bar_deffense._xscale = 50;
this.bar_boost._xscale = 60;
this.bar_power._xscale = 40;
this.bar_recv._xscale = 35;
this.price = 210000 /* 0x033450 */;
_root.comment = "ƒzƒoƒŠƒ“ƒO‹@”\\“‹Ú‚Å‹ó’†í“¬‚ª‰Â”\\‚ȃA[ƒ}[‚Å‚·B";
_root.comment2 = "TAT-015 JAVELIN";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\n‹ó’†‚Ū‚ŃzƒoƒŠƒ“ƒO\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚È‚µ";
}
if (this.shopicon_armor == 4) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 35;
this.bar_power._xscale = 40;
this.bar_recv._xscale = 30;
this.price = 528000 /* 0x080E80 */;
_root.comment = "ƒXƒiƒCƒv‹@”\\‚ª”õ‚í‚Á‚½’·‹——£‘_Œ‚Œ^ƒA[ƒ}[‚Å‚·B";
_root.comment2 = "SAT-070 HORIZON";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒXƒiƒCƒv‹@”\\“‹Ú\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
if (this.shopicon_armor == 5) {
this.bar_armor._xscale = 50;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 70;
this.bar_power._xscale = 65;
this.bar_recv._xscale = 60;
this.price = 2650000 /* 0x286F90 */;
_root.comment = "‹ó’†‚Å‚Ì‚‹@“®í“¬‚ª‰Â”\\‚ȃA[ƒ}[‚Å‚·B";
_root.comment2 = "AST-265 CARDINAL";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nª2‰ñ‚Å”òsƒ‚[ƒh\nƒuƒŒ[ƒh‘•”õ•s‰Â\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚È‚µ";
}
if (this.shopicon_armor == 9) {
this.bar_armor._xscale = 35;
this.bar_deffense._xscale = 35;
this.bar_boost._xscale = 60;
this.bar_power._xscale = 50;
this.bar_recv._xscale = 55;
this.price = 10005900 /* 0x98AD8C */;
_root.comment = "ƒGƒlƒ‹ƒM[ƒuƒŒ[ƒh‘•”õ‚̃A[ƒ}[‚Å‚·";
_root.comment2 = "TAF-009 ŸrŽQŽ®";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒVƒ‡[ƒgƒ_ƒbƒVƒ…\nê—p‘•”õFƒGƒNƒŠƒvƒXƒGƒbƒW\n‚»‚Ì‘¼•Ší‘•”õ•s‰Â";
}
if (this.shopicon_armor == 10) {
this.bar_armor._xscale = 60;
this.bar_deffense._xscale = 60;
this.bar_boost._xscale = 65;
this.bar_power._xscale = 80;
this.bar_recv._xscale = 60;
this.price = 35000000 /* 0x2160EC0 */;
_root.comment = "‚·‚ׂĂ̔\\—Í‚ªƒAƒbƒv‚µ‚½ƒtƒ@ƒ“ƒOƒVƒŠ[ƒY‚ÌÅVŒ^";
_root.comment2 = "TAT-001RF SILVER-FANG";
this.armor_profile = "ƒ_ƒbƒVƒ…ƒ^ƒCƒvFƒƒ“ƒOƒ_ƒbƒVƒ…\nƒŠƒ[ƒhƒXƒs[ƒhƒAƒbƒv\n‘•”õ‰Â”\\•Ší”F‚Q\nƒI[ƒgƒŠƒ[ƒh‚ ‚è";
}
this.armor_icons.gotoAndStop(this.shopicon_armor + 1);
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 27
this.gotoAndPlay(26);
Symbol 1409 MovieClip Frame 29
this.bar_a_max._xscale = _root.a_max[_root.equip_armor] * 10;
this.bar_a_defense._xscale = _root.a_defense[_root.equip_armor] * 10;
this.bar_a_move._xscale = _root.a_move[_root.equip_armor] * 10;
this.bar_b_max._xscale = _root.b_max[_root.equip_armor] * 10;
this.bar_b_pw._xscale = _root.b_pw[_root.equip_armor] * 10;
this.bar_b_recv._xscale = _root.b_recv[_root.equip_armor] * 10;
this.wep_icons1.gotoAndStop(_root.equip_wep[1] + 1);
this.wep_icons2.gotoAndStop(_root.equip_wep[2] + 1);
this.armor_icons.gotoAndStop(_root.equip_armor + 1);
if (_root.shop_armor[_root.equip_armor] == 1) {
_root.equip_wep[2] = 0;
}
_root.player_set();
_root.comment = "ŠeŽíƒZƒbƒgƒAƒbƒv‚ðs‚Á‚Ä‚‚¾‚³‚¢B";
_root.comment2 = " ";
_root.comment3 = " ";
Symbol 1409 MovieClip Frame 30
if (_root.equip_wep[2] == 0) {
this.name_wep2 = "----";
this.name_wep22 = "----";
} else if (_root.equip_wep[2] == 1) {
this.name_wep2 = "TMG-001";
this.name_wep22 = " THE VOICE";
} else if (_root.equip_wep[2] == 2) {
this.name_wep2 = "TMG-013S";
this.name_wep22 = "ANTARES ";
} else if (_root.equip_wep[2] == 3) {
this.name_wep2 = "TGG-024";
this.name_wep22 = "TEARS ";
} else if (_root.equip_wep[2] == 4) {
this.name_wep2 = "GGX-035";
this.name_wep22 = "MOMENT ";
} else if (_root.equip_wep[2] == 5) {
this.name_wep2 = "TSG-001";
this.name_wep22 = "RAIN ";
} else if (_root.equip_wep[2] == 8) {
this.name_wep2 = "TSG-C014";
this.name_wep22 = "TEMPEST ";
} else if (_root.equip_wep[2] == 10) {
this.name_wep2 = "TSR-022";
this.name_wep22 = "HAWK-EYE ";
} else if (_root.equip_wep[2] == 11) {
this.name_wep2 = "TPC-020X";
this.name_wep22 = "PIERCE ";
} else if (_root.equip_wep[2] == 15) {
this.name_wep2 = "MSL-001";
this.name_wep22 = "PHANTOM-TAILS ";
} else if (_root.equip_wep[2] == 20) {
this.name_wep2 = "GRB-013\n";
this.name_wep22 = "BOUNDARY ";
} else if (_root.equip_wep[2] == 21) {
this.name_wep2 = "NGP-003";
this.name_wep22 = "ECLIPSE ";
} else if (_root.equip_wep[2] == 25) {
this.name_wep2 = "TBZ-013";
this.name_wep22 = "AGONY ";
} else if (_root.equip_wep[2] == 30) {
this.name_wep2 = "PSR-X71";
this.name_wep22 = "REQUIEM ";
} else if (_root.equip_wep[2] == 35) {
this.name_wep2 = "RGN-050C";
this.name_wep22 = "LONGINUS ";
} else if (_root.equip_wep[2] == 36) {
this.name_wep2 = "BMR-250";
this.name_wep22 = "DESIRE ";
} else if (_root.equip_wep[2] == 40) {
this.name_wep2 = "BLD-S05";
this.name_wep22 = "’fb“ ";
} else if (_root.equip_wep[2] == 41) {
this.name_wep2 = "BLD-E14";
this.name_wep22 = "Glanzen ";
} else if (_root.equip_wep[2] == 45) {
this.name_wep2 = "BLS-913";
this.name_wep22 = " GENOS";
} else if (_root.equip_wep[2] == 46) {
this.name_wep2 = "HMB-078";
this.name_wep22 = "s“S ";
} else {
this.name_wep2 = "----";
}
if (_root.equip_wep[1] == 0) {
this.name_wep1 = "----";
this.name_wep12 = " ----";
} else if (_root.equip_wep[1] == 1) {
this.name_wep1 = "TMG-001";
this.name_wep12 = " THE VOICE";
} else if (_root.equip_wep[1] == 2) {
this.name_wep1 = "TMG-013S";
this.name_wep12 = "ANTARES ";
} else if (_root.equip_wep[1] == 3) {
this.name_wep1 = "TGG-024";
this.name_wep12 = "TEARS ";
} else if (_root.equip_wep[1] == 4) {
this.name_wep1 = "GGX-035";
this.name_wep12 = "MOMENT ";
} else if (_root.equip_wep[1] == 5) {
this.name_wep1 = "TSG-001";
this.name_wep12 = "RAIN ";
} else if (_root.equip_wep[1] == 8) {
this.name_wep1 = "TSG-C014";
this.name_wep12 = "TEMPEST ";
} else if (_root.equip_wep[1] == 10) {
this.name_wep1 = "TSR-022";
this.name_wep12 = "HAWK-EYE ";
} else if (_root.equip_wep[1] == 11) {
this.name_wep1 = "TPC-020X";
this.name_wep12 = "PIERCE ";
} else if (_root.equip_wep[1] == 15) {
this.name_wep1 = "MSL-001";
this.name_wep12 = "PHANTOM-TAILS ";
} else if (_root.equip_wep[1] == 20) {
this.name_wep1 = "GRB-013\n";
this.name_wep12 = "BOUNDARY ";
} else if (_root.equip_wep[1] == 21) {
this.name_wep1 = "NGP-003";
this.name_wep12 = "ECLIPSE ";
} else if (_root.equip_wep[1] == 25) {
this.name_wep1 = "TBZ-013";
this.name_wep12 = "AGONY ";
} else if (_root.equip_wep[1] == 30) {
this.name_wep1 = "PSR-X71";
this.name_wep12 = "REQUIEM ";
} else if (_root.equip_wep[1] == 35) {
this.name_wep1 = "RGN-050C";
this.name_wep12 = "LONGINUS ";
} else if (_root.equip_wep[1] == 36) {
this.name_wep1 = "BMR-250";
this.name_wep12 = "DESIRE ";
} else if (_root.equip_wep[1] == 40) {
this.name_wep1 = "BLD-S05";
this.name_wep12 = "’fb“ ";
} else if (_root.equip_wep[1] == 41) {
this.name_wep1 = "BLD-E14";
this.name_wep12 = "Glanzen ";
} else if (_root.equip_wep[1] == 45) {
this.name_wep1 = "BLS-913";
this.name_wep12 = " GENOS";
} else if (_root.equip_wep[1] == 46) {
this.name_wep1 = "HMB-078";
this.name_wep12 = "s“S ";
} else {
this.name_wep2 = "----";
}
if (_root.equip_armor == 1) {
this.comment_armor = "ƒx[ƒVƒbƒN‚È”\\—Í‚ðŽ‚ƒA[ƒ}[‚Å‚·B•Ší‘•”õ‰Â”\\”‚Q";
this.name_armor = "TAT-001C\nFANG";
}
if (_root.equip_armor == 2) {
this.comment_armor = "uŠÔ“I‚Ȉړ®”\\—Í‚É’·‚¯‚½ƒA[ƒ}[‚Å‚·B•Ší‘•”õ‰Â”\\”‚P";
this.name_armor = "TAT-003\nGALE";
}
if (_root.equip_armor == 3) {
this.comment_armor = "‹ó’†‚Å‚Ì퓬‚ª‰Â”\\‚ȃA[ƒ}[‚Å‚·B•Ší‘•”õ‰Â”\\”‚QBƒuƒŒ[ƒh•s‰Â";
this.name_armor = "TAT-015\nJAVELIN";
}
if (_root.equip_armor == 4) {
this.comment_armor = "ƒXƒiƒCƒv‹@”\\“‹ÚƒA[ƒ}[‚Å‚·B•Ší‘•”õ‰Â”\\”‚QBƒuƒŒ[ƒh•s‰Â";
this.name_armor = "SAT-070\nHORIZON";
}
if (_root.equip_armor == 5) {
this.comment_armor = "‹ó’†í“¬”\\—Í‚ª‚‚¢‚‹@“®ƒA[ƒ}[‚Å‚·B•Ší‘•”õ‰Â”\\”‚QBƒuƒŒ[ƒh•s‰ÂBª‚Q‰ñ‚Å”òsƒ‚[ƒh";
this.name_armor = "AST-265\nCARDINAL";
}
if (_root.equip_armor == 9) {
this.comment_armor = "“ÁŽê‘•”õ‚̃Gƒlƒ‹ƒM[ƒuƒŒ[ƒh‚ð‘•”õ‚µ‚½‹ßÚíê—pƒA[ƒ}[‚Å‚·B•Ší‘•”õ•s‰Â";
this.name_armor = "TAF-009\nŸrŽQŽ®";
}
if (_root.equip_armor == 10) {
this.comment_armor = "FANGƒVƒŠ[ƒY‚ÌÅVŒ^‹@‚Å‚·B";
this.name_armor = "TAT-001RF\nSILVER-FANG";
}
this.bar_a_max._xscale = _root.a_max[_root.equip_armor] * 10;
this.bar_a_defense._xscale = _root.a_defense[_root.equip_armor] * 10;
this.bar_a_move._xscale = _root.a_move[_root.equip_armor] * 10;
this.bar_b_max._xscale = _root.b_max[_root.equip_armor] * 10;
this.bar_b_pw._xscale = _root.b_pw[_root.equip_armor] * 10;
this.bar_b_recv._xscale = _root.b_recv[_root.equip_armor] * 10;
this.wep_icons1.gotoAndStop(_root.equip_wep[1] + 1);
this.wep_icons2.gotoAndStop(_root.equip_wep[2] + 1);
this.armor_icons.gotoAndStop(_root.equip_armor + 1);
if ((_root.shop_armor[_root.equip_armor] == 1) || (_root.shop_armor[_root.equip_armor] == 3)) {
_root.equip_wep[2] = 0;
}
if ((_root.shop_armor[_root.equip_armor] == 3) || (_root.shop_armor[_root.equip_armor] == 4)) {
if (_root.getwep_now[_root.equip_wep[1]] == 2) {
_root.equip_wep[1] = 1;
}
if (_root.getwep_now[_root.equip_wep[2]] == 2) {
_root.equip_wep[2] = 0;
}
}
if (_root.shop_armor[_root.equip_armor] == 5) {
if (_root.equip_armor == 9) {
this.wep_icons1.gotoAndStop(1);
this.wep_icons2.gotoAndStop(1);
this.name_wep1 = "----";
this.name_wep12 = "---- ";
this.name_wep2 = "----";
this.name_wep22 = "---- ";
}
} else if (_root.equip_wep[1] == 0) {
_root.equip_wep[1] = 1;
}
_root.player_set();
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 31
this.gotoAndPlay(30);
Symbol 1409 MovieClip Frame 33
_root.player_set();
_root.mission_num = 1;
_root.comment = "oŒ‚‚·‚éƒ~ƒbƒVƒ‡ƒ“‚ð‘I‘ð‚µ‚Ä‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 34
if (_root.clear_flg_main[3] >= 1) {
_root.mission_able[5] = 1;
}
if (_root.clear_flg_main[4] >= 1) {
_root.mission_able[6] = 1;
}
if ((_root.clear_flg_main[5] >= 1) && (_root.mission_able[6] >= 1)) {
_root.mission_able[7] = 1;
_root.mission_able[9] = 1;
}
if (_root.clear_flg_main[7] >= 1) {
_root.mission_able[8] = 1;
}
if (_root.clear_flg_main[9] >= 1) {
_root.mission_able[10] = 1;
}
if (_root.clear_flg_main[9] >= 1) {
_root.mission_able[12] = 1;
}
if (((_root.clear_flg_main[7] >= 2) && (_root.clear_flg_main[9] >= 2)) && (_root.clear_flg_main[10] >= 2)) {
_root.mission_able[11] = 1;
}
if (_root.clear_flg_main[12] >= 1) {
_root.mission_able[13] = 1;
_root.mission_able[14] = 1;
}
if (_root.clear_flg_main[13] >= 1) {
_root.mission_able[15] = 1;
}
if (_root.clear_flg_main[14] >= 1) {
_root.mission_able[16] = 1;
}
if (_root.clear_flg_main[16] >= 1) {
_root.mission_able[18] = 1;
}
if (((((_root.clear_flg_main[12] >= 1) && (_root.clear_flg_main[13] >= 1)) && (_root.clear_flg_main[14] >= 1)) && (_root.clear_flg_main[15] >= 1)) && (_root.clear_flg_main[16] >= 1)) {
_root.mission_able[17] = 1;
}
if ((((_root.clear_flg_main[14] >= 1) && (_root.clear_flg_main[13] >= 1)) && (_root.clear_flg_main[15] >= 1)) && (_root.clear_flg_main[18] >= 1)) {
_root.mission_able[19] = 1;
}
if (_root.clear_flg_main[19] >= 1) {
_root.mission_able[20] = 1;
}
_root.player_set();
_root.e_initialize();
_root.game_initialize();
if (_root.clear_flg_main[_root.mission_num] == 2) {
this.logo_cleared.gotoAndStop(3);
} else if (_root.clear_flg_main[_root.mission_num] == 1) {
this.logo_cleared.gotoAndStop(2);
} else {
this.logo_cleared.gotoAndStop(1);
}
if (_root.mission_num == 0) {
_root.menu.m_name = "----";
_root.menu.comment1 = "----";
_root.menu.comment2 = "----";
_root.menu.comment3 = "----";
_root.clear_bonus = "----";
_root.time = 100;
_root.tgt_destroy = 30;
this.mission_bgs.gotoAndStop(1);
}
if (_root.mission_num == 1) {
_root.menu.m_name = "‰w";
_root.menu.comment1 = "100•bˆÈ“à‚Ì“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“G퓬ŽÔ—¼20‹@";
_root.menu.comment3 = "š";
_root.clear_bonus = 500;
_root.time = (_root.time_limit = 100);
_root.tgt_destroy = 20;
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 2) {
_root.menu.m_name = "“G•”‘àŒ}Œ‚";
_root.menu.comment1 = "100•bˆÈ“à‚Ì“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“G퓬ŽÔ—¼30‹@";
_root.menu.comment3 = "šš";
_root.clear_bonus = 1000;
_root.time = (_root.time_limit = 100);
_root.tgt_destroy = 30;
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 3) {
_root.menu.m_name = "Ž¾‘–";
_root.menu.comment1 = "150•bˆÈ“à‚Ì“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“G퓬•ºŠíŒQ40‹@";
_root.menu.comment3 = "ššš";
_root.clear_bonus = 5000;
_root.time = (_root.time_limit = 120);
_root.tgt_destroy = 40;
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 4) {
_root.menu.m_name = "NU‘jŽ~";
_root.menu.comment1 = "250•bˆÈ“à‚Ì“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“G퓬•ºŠíŒQ60‹@";
_root.menu.comment3 = "šššššš";
_root.clear_bonus = 7000;
_root.time = (_root.time_limit = 250);
_root.tgt_destroy = 60;
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 5) {
_root.menu.m_name = "—•º";
_root.menu.comment1 = "“GTAT•”‘àŸr–Å";
_root.menu.comment2 = "“GTAT•º40‹@";
_root.menu.comment3 = "ššššššš";
_root.clear_bonus = 8500;
_root.time = (_root.time_limit = 250);
_root.tgt_destroy = 40;
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 6) {
_root.menu.m_name = "Ÿr–Å";
_root.menu.comment1 = "“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“G‹@“®•º‘•ŒQ50‹@";
_root.menu.comment3 = "šššššššš";
_root.clear_bonus = 10000;
_root.time = (_root.time_limit = 500);
_root.tgt_destroy = 50;
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 7) {
_root.menu.m_name = "d‹@“®•ºŠíŒ‚”j";
_root.menu.comment1 = "‘åŒ^퓬ŽÔ—¼Œ‚”j";
_root.menu.comment2 = "‘åŒ^퓬ŽÔ—¼@ƒ†ƒjƒR[ƒ““󎮂P‹@";
_root.menu.comment3 = "šššššš";
_root.clear_bonus = 7500;
_root.time = (_root.time_limit = 100);
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 8) {
_root.menu.m_name = "ŽO‹R";
_root.menu.comment1 = "‘åŒ^퓬ŽÔ—¼ŒQŒ‚”j";
_root.menu.comment2 = "‘åŒ^퓬ŽÔ—¼@ƒ†ƒjƒR[ƒ““󎮂R‹@";
_root.menu.comment3 = "ššššššššš";
_root.clear_bonus = 15000;
_root.time = (_root.time_limit = 150);
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 9) {
_root.menu.m_name = "“ñ‹r‹@“®•º‹@Œ‚”j";
_root.menu.comment1 = "“ñ‹r‹@“®•ºŠíŒ‚”jƒTƒCƒNƒƒvƒX‚ÌŒ‚”j";
_root.menu.comment2 = "“ñ‹r‹@“®•ºŠí@ƒTƒCƒNƒƒvƒXC‚P‹@";
_root.menu.comment3 = "šššššššš";
_root.clear_bonus = 16000;
_root.time = (_root.time_limit = 200);
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 10) {
_root.menu.m_name = "“V‹ó‚Ì–Ú";
_root.menu.comment1 = "‚‹@“®”Ä—p퓬ƒwƒŠ‚ÌŒ‚”j";
_root.menu.comment2 = "‚‹@“®”Ä—p퓬ƒwƒŠ@ƒOƒŠƒtƒHƒ“ƒÀ1‹@";
_root.menu.comment3 = "ššššššš";
_root.clear_bonus = 19000;
_root.time = (_root.time_limit = 150);
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 11) {
_root.menu.m_name = "ˆ«–²";
_root.menu.comment1 = "“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "----";
_root.clear_bonus = 5000000 /* 0x4C4B40 */;
_root.time = (_root.time_limit = 999);
this.mission_bgs.gotoAndStop(1);
}
if (_root.mission_num == 12) {
_root.menu.m_name = "ƒ^ƒCƒ€ƒAƒ^ƒbƒN";
_root.menu.comment1 = "‚Q‚O‹@ˆÈ㌂”j‚µA–Ú•W’n“_‚Ö“ž’B‚·‚é";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "ššš";
_root.clear_bonus = 10000;
_root.time = (_root.time_limit = 300);
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 13) {
_root.menu.m_name = "—A‘—ƒRƒ“ƒeƒi–h‰q";
_root.menu.comment1 = "•â‹‹•¨Ž‘‚̃Rƒ“ƒeƒi‚Ì–h‰q";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "šššš";
_root.clear_bonus = 15000;
_root.time = (_root.time_limit = 100);
this.mission_bgs.gotoAndStop(5);
}
if (_root.mission_num == 14) {
_root.menu.m_name = "ƒ^ƒCƒ€ƒAƒ^ƒbƒN‚Q";
_root.menu.comment1 = "‚S‚O‹@ˆÈ㌂”j‚µA–Ú•W’n“_‚Ö“ž’B‚·‚é";
_root.menu.comment2 = "“G•¡‡•”‘à‚S‚O‹@";
_root.menu.comment3 = "šššššš";
_root.clear_bonus = 20000;
_root.time = (_root.time_limit = 300);
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 15) {
_root.menu.m_name = "‹@–§•¨Ž‘”j‰ó‘jŽ~";
_root.menu.comment1 = "‚Ð‚Æ‚Â‚Å‚à‘½‚‹@–§•¨Ž‘ƒRƒ“ƒeƒi‚ðŽç‚é";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "ššššššš";
_root.clear_bonus = 24000;
_root.time = (_root.time_limit = 100);
this.mission_bgs.gotoAndStop(3);
}
if (_root.mission_num == 16) {
_root.menu.m_name = "—A‘—ŽÔŒì‰q";
_root.menu.comment1 = "—A‘—ŽÔ‚Ì–Ú•W’n“_“ž’B";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "šššš";
_root.clear_bonus = 22000;
_root.time = (_root.time_limit = 150);
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 17) {
_root.menu.m_name = "–h‰qüŽ€Žç";
_root.menu.comment1 = "ˆê’莞ŠÔ“G‚Ì–h‰qü“Ë”j‚ð‘jŽ~";
_root.menu.comment2 = "“G•¡‡•”‘à‘½”";
_root.menu.comment3 = "šššššššš";
_root.clear_bonus = 18000;
_root.time = (_root.time_limit = 80);
this.mission_bgs.gotoAndStop(5);
}
if (_root.mission_num == 18) {
_root.menu.m_name = "‹s“Ë”j";
_root.menu.comment1 = "‚P‘ä‚Å‚à‘½‚‚ÌA—A‘—ŽÔ–Ú•W’n“_“ž’B";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "šššššššššš";
_root.clear_bonus = 22300;
_root.time = (_root.time_limit = 200);
this.mission_bgs.gotoAndStop(2);
}
if (_root.mission_num == 19) {
_root.menu.m_name = "D - U - E - L";
_root.menu.comment1 = "VŒ^TAT•ºŒ‚‘Þ";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "ššššššš";
_root.clear_bonus = 29100;
_root.time = (_root.time_limit = 200);
this.mission_bgs.gotoAndStop(5);
}
if (_root.mission_num == 20) {
_root.menu.m_name = "ˆÅ";
_root.menu.comment1 = "“GŒRŒ¤‹†Ž{Ý’²¸";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "----";
if (_root.custom_bonus == 6) {
_root.clear_bonus = 666000 /* 0x0A2990 */;
} else {
_root.clear_bonus = 123000 /* 0x01E078 */;
}
_root.time = (_root.time_limit = 300);
this.mission_bgs.gotoAndStop(1);
}
if (_root.mission_num == 21) {
_root.menu.m_name = "C—…";
_root.menu.comment1 = "“Gí—Í‚ÌŸr–Å";
_root.menu.comment2 = "“Gí—Í•s–¾";
_root.menu.comment3 = "----";
_root.clear_bonus = 10000000 /* 0x989680 */;
_root.time = (_root.time_limit = 999);
this.mission_bgs.gotoAndStop(1);
}
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
_root.custom_bonus = Math.round(((((_root.a_defense[_root.equip_armor] + _root.a_max[_root.equip_armor]) + _root.a_move[_root.equip_armor]) + _root.b_max[_root.equip_armor]) + _root.b_pw[_root.equip_armor]) + _root.b_recv[_root.equip_armor]) / 10;
Symbol 1409 MovieClip Frame 35
this.gotoAndPlay(34);
Symbol 1409 MovieClip Frame 37
this.wep_num1 = 0;
this.armor_num1 = 0;
this.wep_num2 = 0;
this.armor_num2 = 0;
this.clear1 = 0;
this.clear2 = 0;
i = 0;
while (52 >= i) {
if (((((_root.saves.data.getwep[0][i] == 1) || (_root.saves.data.getwep[0][i] == 2)) || (_root.saves.data.getwep[0][i] == 3)) || (_root.saves.data.getwep[0][i] == 4)) || (_root.saves.data.getwep[0][i] == 5)) {
this.wep_num1++;
}
if (((((_root.saves.data.getwep[1][i] == 1) || (_root.saves.data.getwep[1][i] == 2)) || (_root.saves.data.getwep[1][i] == 3)) || (_root.saves.data.getwep[1][i] == 4)) || (_root.saves.data.getwep[1][i] == 5)) {
this.wep_num2++;
}
if (((((_root.saves.data.getarmor[0][i] == 1) || (_root.saves.data.getarmor[0][i] == 2)) || (_root.saves.data.getarmor[0][i] == 3)) || (_root.saves.data.getarmor[0][i] == 4)) || (_root.saves.data.getarmor[0][i] == 5)) {
this.armor_num1++;
}
if (((((_root.saves.data.getarmor[1][i] == 1) || (_root.saves.data.getarmor[1][i] == 2)) || (_root.saves.data.getarmor[1][i] == 3)) || (_root.saves.data.getarmor[1][i] == 4)) || (_root.saves.data.getarmor[1][i] == 5)) {
this.armor_num2++;
}
if ((_root.saves.data.clear_flg[0][i] == 1) || (_root.saves.data.clear_flg[0][i] == 2)) {
this.clear1++;
}
if ((_root.saves.data.clear_flg[1][i] == 1) || (_root.saves.data.clear_flg[1][i] == 2)) {
this.clear2++;
}
i++;
}
this.c_point1 = _root.saves.data.c_point[0];
this.c_point2 = _root.saves.data.c_point[1];
this.total_destroy1 = _root.saves.data.total_destroy_num[0];
this.total_destroy2 = _root.saves.data.total_destroy_num[1];
_root.comment = "ƒZ[ƒu‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 38
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 39
this.gotoAndPlay(38);
Symbol 1409 MovieClip Frame 41
this.wep_num1 = 0;
this.armor_num1 = 0;
this.wep_num2 = 0;
this.armor_num2 = 0;
this.clear1 = 0;
this.clear2 = 0;
i = 0;
while (52 >= i) {
if (((((_root.saves.data.getwep[0][i] == 1) || (_root.saves.data.getwep[0][i] == 2)) || (_root.saves.data.getwep[0][i] == 3)) || (_root.saves.data.getwep[0][i] == 4)) || (_root.saves.data.getwep[0][i] == 5)) {
this.wep_num1++;
}
if (((((_root.saves.data.getwep[1][i] == 1) || (_root.saves.data.getwep[1][i] == 2)) || (_root.saves.data.getwep[1][i] == 3)) || (_root.saves.data.getwep[1][i] == 4)) || (_root.saves.data.getwep[1][i] == 5)) {
this.wep_num2++;
}
if (((((_root.saves.data.getarmor[0][i] == 1) || (_root.saves.data.getarmor[0][i] == 2)) || (_root.saves.data.getarmor[0][i] == 3)) || (_root.saves.data.getarmor[0][i] == 4)) || (_root.saves.data.getarmor[0][i] == 5)) {
this.armor_num1++;
}
if (((((_root.saves.data.getarmor[1][i] == 1) || (_root.saves.data.getarmor[1][i] == 2)) || (_root.saves.data.getarmor[1][i] == 3)) || (_root.saves.data.getarmor[1][i] == 4)) || (_root.saves.data.getarmor[1][i] == 5)) {
this.armor_num2++;
}
if ((_root.saves.data.clear_flg[0][i] == 1) || (_root.saves.data.clear_flg[0][i] == 2)) {
this.clear1++;
}
if ((_root.saves.data.clear_flg[1][i] == 1) || (_root.saves.data.clear_flg[1][i] == 2)) {
this.clear2++;
}
i++;
}
this.c_point1 = _root.saves.data.c_point[0];
this.c_point2 = _root.saves.data.c_point[1];
this.total_destroy1 = _root.saves.data.total_destroy_num[0];
this.total_destroy2 = _root.saves.data.total_destroy_num[1];
_root.comment = "ƒ[ƒh‚·‚éƒf[ƒ^‚ð‘I‚ñ‚Å‚‚¾‚³‚¢B";
Symbol 1409 MovieClip Frame 42
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 43
this.gotoAndPlay(42);
Symbol 1409 MovieClip Frame 45
this.time_bonus = 0;
_root.comment = "¡‰ñ‚ÌíÑ‚Å‚·B";
Symbol 1409 MovieClip Frame 46
_root.p_initialize2();
_root.e_initialize();
_root.time_bonus = (5 * Math.round((_root.time / _root.time_limit) * 100)) / 100;
this.tech_bonus = Math.round((_root.destroy_num * _root.max_combo) * _root.time_bonus);
this.getscore = Math.round((_root.score + _root.clear_bonus) * _root.life_bonus);
_root.get_points = Math.round(this.tech_bonus + this.getscore);
if (_root.game_flg == 3) {
if (_root.mission_phase == 99) {
this.result_mission.gotoAndStop(1);
} else {
this.result_mission.gotoAndStop(2);
}
}
if (_root.game_flg == 9) {
_root.clear_bonus = 0;
this.result_mission.gotoAndStop(3);
}
if (99999999 < _root.c_point) {
_root.c_point = 99999999 /* 0x5F5E0FF */;
}
Symbol 1409 MovieClip Frame 47
this.gotoAndPlay(46);
Symbol 1409 MovieClip Frame 51
this.gotoAndPlay(50);
Symbol 1421 MovieClip Frame 2
this.bg_main.gotoAndStop(_root.sky_flg);
Symbol 1430 MovieClip Frame 1
if (_root.efct_bg_flg == 1) {
this.efct_bg.gotoAndStop(1);
} else if (_root.efct_bg_flg == 2) {
this.efct_bg.gotoAndStop(2);
} else {
this.efct_bg.gotoAndStop(10);
}
Symbol 1430 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 1431 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
if (Key.isDown(13)) {
_root.pause = 1;
} else {
_root.pause = 0;
}
Symbol 1431 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
this.gotoAndPlay(2);
Symbol 1433 MovieClip Frame 1
this.attachMovie(_root.mission_name[_root.mission_num], "field", 1);
Symbol 1433 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
Symbol 1433 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
this.gotoAndPlay(2);
Symbol 1435 MovieClip Frame 1
function def_car01(x, y, mov_max, hp, num) {
this.attachMovie("def_car01", "def_tgt" + num, num);
this["def_tgt" + num]._x = x;
this["def_tgt" + num]._y = y;
this["def_tgt" + num].num = num;
this["def_tgt" + num].hp = hp;
this["def_tgt" + num].hp_max = hp;
this["def_tgt" + num].mov_max = mov_max;
_root.display.rader.def_point(num, 150, 150);
}
function def_box01(x, y, hp, num) {
this.attachMovie("def_container", "def_tgt" + num, num);
this["def_tgt" + num]._x = x;
this["def_tgt" + num]._y = y;
this["def_tgt" + num].num = num;
this["def_tgt" + num].hp = hp;
this["def_tgt" + num].hp_max = hp;
_root.display.rader.def_point(num, 100, 100);
}
function def_box02(x, y, hp, num) {
this.attachMovie("def_container", "def_tgt" + num, num);
this["def_tgt" + num]._x = x;
this["def_tgt" + num]._y = y;
this["def_tgt" + num].num = num;
this["def_tgt" + num].hp = hp;
this["def_tgt" + num].hp_max = hp;
}
Symbol 1435 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
Symbol 1435 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
this.gotoAndPlay(2);
Symbol 1436 MovieClip Frame 1
function e_tank01(hp, num, max_x) {
this.attachMovie("e_tank01", "enemy" + num, num);
this["enemy" + num]._y = 600;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].max_x = max_x;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_tank02(hp, num, max_x) {
this.attachMovie("e_tank02", "enemy" + num, num);
this["enemy" + num]._y = 600;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].max_x = max_x;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_fly01(hp, num) {
this.attachMovie("e_fly01", "enemy" + num, num);
this["enemy" + num]._y = _root.p_pos_y - 400;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_armor01(hp, type1, num) {
this.attachMovie("e_armor01", "enemy" + num, num);
this["enemy" + num]._y = _root.p_pos_y - 500;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].type1 = type1;
this["enemy" + num].num = num;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_armor02(hp, type1, num) {
this.attachMovie("e_armor02", "enemy" + num, num);
this["enemy" + num]._y = _root.p_pos_y - 500;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].type1 = type1;
this["enemy" + num].num = num;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_walker01(hp, type1, type2, num) {
this.attachMovie("e_walker01", "enemy" + num, num);
this["enemy" + num]._y = _root.p_pos_y - 700;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].num = num;
this["enemy" + num].type1 = type1;
this["enemy" + num].type2 = type2;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 100, 100);
}
function e_boss01(hp, num) {
this.attachMovie("e_boss01", "enemy" + num, num);
this["enemy" + num]._y = 500;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 200, 200);
}
function e_boss02(hp, num) {
this.attachMovie("e_boss02", "enemy" + num, num);
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 200, 200);
}
function e_boss03(hp, num) {
this.attachMovie("e_boss03", "enemy" + num, num);
this["enemy" + num]._y = 0;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 200, 200);
}
function e_boss04(hp, num, x, y) {
this.attachMovie("e_boss04", "enemy" + num, num);
this["enemy" + num]._x = x;
this["enemy" + num]._y = y;
this["enemy" + num]._xscale = 150;
this["enemy" + num]._yscale = 150;
this["enemy" + num].num = num;
this["enemy" + num].hp = hp;
this["enemy" + num].hp_max = hp;
this["enemy" + num].lag = 60 + random(80);
this["enemy" + num].time = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].c = 0;
_root.e_num[num] = 1;
_root.display.rader.e_point(num, 200, 200);
}
Symbol 1436 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
Symbol 1436 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
this.gotoAndPlay(2);
Symbol 1437 MovieClip Frame 1
function p_shot_mg(x, y, xscale, yscale, rot, spd, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_mg", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].xscale = xscale;
this["p_shot" + _root.p_shot_num].yscale = yscale;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this["p_shot" + _root.p_shot_num].hit_flg = 0;
this["p_shot" + _root.p_shot_num].time = 0;
}
function p_shot_sg(x, y, rot, spd, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_mg", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].xscale = 80 + random(100);
this["p_shot" + _root.p_shot_num].yscale = this["p_shot" + _root.p_shot_num]._xscale / 5;
this["p_shot" + _root.p_shot_num].rot = (rot + 20) - random(40);
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this["p_shot" + _root.p_shot_num].hit_flg = 0;
this["p_shot" + _root.p_shot_num].time = 0;
}
function p_shot_rg(x, y, xscale, yscale, rot, spd, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_rg", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].xscale = xscale + 50;
this["p_shot" + _root.p_shot_num].yscale = yscale + 5;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this["p_shot" + _root.p_shot_num].hit_flg = 0;
}
function p_shot_br(x, y, xscale, yscale, rot, spd, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_br", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].xscale = xscale;
this["p_shot" + _root.p_shot_num].yscale = yscale;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this["p_shot" + _root.p_shot_num].hit_flg = 0;
this["p_shot" + _root.p_shot_num].time = 0;
}
function p_shot_bz(x, y, rot, spd, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_bz", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this["p_shot" + _root.p_shot_num].hit_flg = 0;
}
function p_shot_gr(x, y, rot, spd, atk) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_gr", "p_shot" + _root.p_shot_num, _root.p_shot_num + 10);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].atk = atk;
if ((_root.p_mov_x * Math.cos(rot * (Math.PI/180))) >= 0) {
this["p_shot" + _root.p_shot_num].m_x = _root.p_mov_x + (Math.cos(rot * (Math.PI/180)) * spd);
} else if ((_root.p_mov_x * Math.cos(rot * (Math.PI/180))) < 0) {
this["p_shot" + _root.p_shot_num].m_x = Math.cos(rot * (Math.PI/180)) * spd;
}
this["p_shot" + _root.p_shot_num].m_y = _root.p_mov_y + (Math.sin(rot * (Math.PI/180)) * spd);
}
function p_shot_msl01(x, y, atk, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_msl01", "p_shot" + _root.p_shot_num, 100 + _root.p_shot_num);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
}
function p_shot_pr(x, y, rot, atk) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_beam01", "p_shot" + _root.p_shot_num, 100 + _root.p_shot_num);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num]._rotation = rot;
this["p_shot" + _root.p_shot_num].atk = atk;
}
function p_shot_pb01(x, y, rot, atk) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_pb01", "p_shot" + _root.p_shot_num, 100 + _root.p_shot_num);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].atk = atk;
if ((_root.p_mov_x * Math.cos(rot * (Math.PI/180))) >= 0) {
this["p_shot" + _root.p_shot_num].m_x = _root.p_mov_x + (Math.cos(rot * (Math.PI/180)) * 30);
} else if ((_root.p_mov_x * Math.cos(rot * (Math.PI/180))) < 0) {
this["p_shot" + _root.p_shot_num].m_x = Math.cos(rot * (Math.PI/180)) * 30;
}
this["p_shot" + _root.p_shot_num].m_y = Math.sin(rot * (Math.PI/180)) * 30;
this["p_shot" + _root.p_shot_num]._rotation = rot;
}
function p_shot_hb01(x, y, rot, atk, spd, ftbs) {
_root.p_shot_num++;
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.attachMovie("p_shot_hb", "p_shot" + _root.p_shot_num, 100 + _root.p_shot_num);
this["p_shot" + _root.p_shot_num]._x = x;
this["p_shot" + _root.p_shot_num]._y = y;
this["p_shot" + _root.p_shot_num].atk = atk;
this["p_shot" + _root.p_shot_num].spd = spd;
this["p_shot" + _root.p_shot_num].m_y = Math.sin(rot * (Math.PI/180)) * 30;
this["p_shot" + _root.p_shot_num].rot = rot;
this["p_shot" + _root.p_shot_num].ftbs = ftbs;
this.p_shot_hb_chains(_root.p_shot_num - 1);
}
function p_shot_hb_chains(num) {
this.attachMovie("p_hb_chains", "p_shot" + num, 100 + num);
this["p_shot" + num]._x = this.player._x;
this["p_shot" + num]._y = this.player._y - 30;
this["p_shot" + num]._alpha = 0;
}
function msl_mark(num) {
this.attachMovie("msl_mark", "m_m" + num, 550 + num);
this["m_m" + num]._x = 200;
this["m_m" + num]._y = 150;
this["m_m" + num]._xscale = 100;
this["m_m" + num]._yscale = 100;
this["m_m" + num].num = num;
this["m_m" + num].hit = 0;
}
if (_root.equip_armor == 1) {
this.attachMovie("player01", "player", 2);
} else if (_root.equip_armor == 2) {
this.attachMovie("player02", "player", 2);
} else if (_root.equip_armor == 3) {
this.attachMovie("player03", "player", 2);
} else if (_root.equip_armor == 4) {
this.attachMovie("player04", "player", 2);
} else if (_root.equip_armor == 5) {
this.attachMovie("player05", "player", 2);
} else if (_root.equip_armor == 9) {
this.attachMovie("player09", "player", 2);
} else if (_root.equip_armor == 10) {
this.attachMovie("player10", "player", 2);
} else {
this.attachMovie("player01", "player", 2);
}
this.player._x = 200;
this.player._y = 150;
Symbol 1437 MovieClip Frame 3
this._x = -200;
this._y = -150;
this.gotoAndPlay(2);
Symbol 1439 MovieClip Frame 1
function efct_dash01(x, y, xscale, yscale) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_dash01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = x;
this["efct" + _root.p_efct_num]._y = y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = random(60) - 30;
}
function efct_jump01(x, y, xscale, yscale) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_jump01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = x;
this["efct" + _root.p_efct_num]._y = y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = random(160) - 80;
}
function efct_jump02(x, y, xscale, yscale, rot) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_jump01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = x;
this["efct" + _root.p_efct_num]._y = y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = rot;
}
function efct_sw01(pos_x, pos_y, xscale, yscale, rot) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_sw01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = rot;
}
function efct_sw02(pos_x, pos_y, xscale, yscale, rot) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_sw02", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = rot;
}
function efct_rg01(pos_x, pos_y, xscale, yscale, rot) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_rg", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = rot;
}
function efct_bom01(pos_x, pos_y, xscale, yscale) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_bom01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = 0;
this["efct" + _root.p_efct_num].num = _root.efct_num;
}
function efct_crash01(pos_x, pos_y, xscale, yscale) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_crash01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = 0;
}
function efct_slash01(pos_x, pos_y) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_slash01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = (this["efct" + _root.p_efct_num]._yscale = 50 + random(180));
this["efct" + _root.p_efct_num]._rotation = random(180);
this["efct" + _root.p_efct_num].num = _root.p_efct_num;
}
function efct_e_slash01(pos_x, pos_y) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_e_slash01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = (this["efct" + _root.p_efct_num]._yscale = 50 + random(180));
this["efct" + _root.p_efct_num]._rotation = random(180);
this["efct" + _root.p_efct_num].num = _root.p_efct_num;
}
function efct_spark01(pos_x, pos_y) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_spark01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._alpha = random(30) + 30;
this["efct" + _root.p_efct_num]._xscale = (this["efct" + _root.p_efct_num]._yscale = 200 + random(200));
this["efct" + _root.p_efct_num]._rotation = random(200) - 100;
this["efct" + _root.p_efct_num].num = _root.p_efct_num;
}
Symbol 1439 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
Symbol 1439 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.gotoAndPlay(2);
Symbol 1441 MovieClip Frame 1
function e_lock02(x, y, tgt_num, num) {
this.attachMovie("e_lock", "e_lock" + num, num);
this["e_lock" + num]._x = x;
this["e_lock" + num]._y = y;
this["e_lock" + num].num = tgt_num;
this["e_lock" + num].num2 = num;
}
function e_lock01(x, y, xscale, yscale, num) {
this.attachMovie("e_lock", "e_lock" + num, num);
this["e_lock" + num]._x = x;
this["e_lock" + num]._y = y;
this["e_lock" + num]._xscale = xscale;
this["e_lock" + num]._yscale = yscale;
this["e_lock" + num].lock_flg = 0;
this["e_lock" + num].num = num;
}
function e_shot01(x, y, xscale, yscale, rot, spd, dmg) {
_root.e_shot_num++;
if (20 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this.attachMovie("e_shot01", "e_shot" + _root.e_shot_num, _root.e_shot_num + 40);
this["e_shot" + _root.e_shot_num]._x = x;
this["e_shot" + _root.e_shot_num]._y = y;
this["e_shot" + _root.e_shot_num].xscale = xscale;
this["e_shot" + _root.e_shot_num].yscale = yscale;
this["e_shot" + _root.e_shot_num].rot = rot;
this["e_shot" + _root.e_shot_num].spd = spd;
this["e_shot" + _root.e_shot_num].dmg = dmg;
this["e_shot" + _root.e_shot_num].hit = 0;
}
function e_shot02(x, y, xscale, yscale, rot, spd, dmg) {
_root.e_shot_num++;
if (20 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this.attachMovie("e_shot02", "e_shot" + _root.e_shot_num, _root.e_shot_num + 40);
this["e_shot" + _root.e_shot_num]._x = x;
this["e_shot" + _root.e_shot_num]._y = y;
this["e_shot" + _root.e_shot_num].xscale = xscale;
this["e_shot" + _root.e_shot_num].yscale = yscale;
this["e_shot" + _root.e_shot_num].rot = rot;
this["e_shot" + _root.e_shot_num].spd = spd;
this["e_shot" + _root.e_shot_num].dmg = dmg;
this["e_shot" + _root.e_shot_num].hit = 0;
}
function e_shot_bz(x, y, xscale, yscale, rot, spd, dmg) {
_root.e_msl++;
if (20 < _root.e_msl) {
_root.e_msl = 0;
}
this.attachMovie("e_shot_bz", "e_msl" + _root.e_msl, _root.e_msl + 100);
this["e_msl" + _root.e_msl]._x = x;
this["e_msl" + _root.e_msl]._y = y;
this["e_msl" + _root.e_msl].xscale = xscale;
this["e_msl" + _root.e_msl].yscale = yscale;
this["e_msl" + _root.e_msl].rot = rot;
this["e_msl" + _root.e_msl].spd = spd;
this["e_msl" + _root.e_msl].dmg = dmg;
this["e_msl" + _root.e_msl].hit = 0;
}
function e_bom01(x, y, dmg) {
_root.e_msl++;
if (20 < _root.e_msl) {
_root.e_msl = 0;
}
this.attachMovie("e_bom01", "e_msl" + _root.e_msl, _root.e_msl + 100);
this["e_msl" + _root.e_msl]._x = x;
this["e_msl" + _root.e_msl]._y = y;
this["e_msl" + _root.e_msl].dmg = dmg;
this["e_msl" + _root.e_msl].hit = 0;
}
function e_msl01(x, y, rot, spd, dmg) {
_root.e_msl++;
if (20 < _root.e_msl) {
_root.e_msl = 0;
}
this.attachMovie("e_msl01", "e_msl" + _root.e_msl, _root.e_msl + 100);
this["e_msl" + _root.e_msl]._x = x;
this["e_msl" + _root.e_msl]._y = y;
this["e_msl" + _root.e_msl].e_msl_main._rotation = rot;
this["e_msl" + _root.e_msl].spd = spd;
this["e_msl" + _root.e_msl].num = _root.e_msl;
this["e_msl" + _root.e_msl].dmg = dmg;
this["e_msl" + _root.e_msl].hit = 0;
_root.root.p_box.msl_mark(_root.e_msl);
}
function e_mine01(x, y, mov_x, mov_y, lag, dmg) {
_root.e_msl++;
if (20 < _root.e_msl) {
_root.e_msl = 0;
}
this.attachMovie("e_mine01", "e_msl" + _root.e_msl, _root.e_msl + 100);
this["e_msl" + _root.e_msl]._x = x;
this["e_msl" + _root.e_msl]._y = y;
this["e_msl" + _root.e_msl].mov_x = mov_x;
this["e_msl" + _root.e_msl].mov_y = mov_y;
this["e_msl" + _root.e_msl]._rotation = 0;
this["e_msl" + _root.e_msl].lag = lag;
this["e_msl" + _root.e_msl].dmg = dmg;
this["e_msl" + _root.e_msl].hit = 0;
}
function e_shot_beam(x, y, xscale, yscale, rot, dmg) {
_root.e_shot_num++;
if (20 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this.attachMovie("e_shot_beam", "e_shot" + _root.e_shot_num, _root.e_shot_num + 40);
this["e_shot" + _root.e_shot_num]._x = x;
this["e_shot" + _root.e_shot_num]._y = y;
this["e_shot" + _root.e_shot_num].xscale = xscale;
this["e_shot" + _root.e_shot_num].yscale = yscale;
this["e_shot" + _root.e_shot_num].rot = rot;
this["e_shot" + _root.e_shot_num].spd = spd;
this["e_shot" + _root.e_shot_num].dmg = dmg;
this["e_shot" + _root.e_shot_num].hit = 0;
}
function e_shot_ebom(x, y, xscale, yscale, rot, dmg) {
_root.e_shot_num++;
if (20 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this.attachMovie("e_shot_ebom", "e_shot" + _root.e_shot_num, _root.e_shot_num + 40);
this["e_shot" + _root.e_shot_num]._x = x;
this["e_shot" + _root.e_shot_num]._y = y;
this["e_shot" + _root.e_shot_num].xscale = xscale;
this["e_shot" + _root.e_shot_num].yscale = yscale;
this["e_shot" + _root.e_shot_num].rot = rot;
this["e_shot" + _root.e_shot_num].spd = spd;
this["e_shot" + _root.e_shot_num].dmg = dmg;
this["e_shot" + _root.e_shot_num].hit = 0;
}
function efct_e_beam(x, y, xscale, yscale, rot) {
_root.e_shot_num++;
if (20 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this.attachMovie("efct_e_beam", "e_shot" + _root.e_shot_num, _root.e_shot_num + 40);
this["e_shot" + _root.e_shot_num]._x = x;
this["e_shot" + _root.e_shot_num]._y = y;
this["e_shot" + _root.e_shot_num].xscale = xscale;
this["e_shot" + _root.e_shot_num].yscale = yscale;
this["e_shot" + _root.e_shot_num].rot = rot;
this["e_shot" + _root.e_shot_num].hit = 0;
}
function efct_wave01(pos_x, pos_y, xscale, yscale, rot, atk) {
_root.p_efct_num = _root.p_efct_num + 1;
if (40 < _root.p_efct_num) {
_root.p_efct_num = 0;
}
this.attachMovie("efct_wave01", "efct" + _root.p_efct_num, _root.p_efct_num);
this["efct" + _root.p_efct_num]._x = pos_x;
this["efct" + _root.p_efct_num]._y = pos_y;
this["efct" + _root.p_efct_num]._xscale = xscale;
this["efct" + _root.p_efct_num]._yscale = yscale;
this["efct" + _root.p_efct_num]._rotation = rot;
this["efct" + _root.p_efct_num].atk = atk;
}
Symbol 1441 MovieClip Frame 2
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
Symbol 1441 MovieClip Frame 3
this._x = -_root.p_pos_x;
this._y = -_root.p_pos_y;
this.gotoAndPlay(2);
Symbol 1449 MovieClip Frame 1
function e_point(num, xscale, yscale) {
this.rader_main.attachMovie("e_point", "e_p" + num, 500 + num);
this.rader_main["e_p" + num]._x = -50;
this.rader_main["e_p" + num]._y = -50;
this.rader_main["e_p" + num]._xscale = xscale;
this.rader_main["e_p" + num]._yscale = yscale;
this.rader_main["e_p" + num].num = num;
}
function def_point(num, xscale, yscale) {
this.rader_main.attachMovie("def_point", "def_point2" + num, 600 + num);
this.rader_main["def_point2" + num]._x = -50;
this.rader_main["def_point2" + num]._y = -50;
this.rader_main["def_point2" + num]._xscale = xscale;
this.rader_main["def_point2" + num]._yscale = yscale;
this.rader_main["def_point2" + num].num = num;
}
Symbol 1449 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1520 MovieClip Frame 1
function combo(score) {
_root.combo_time = _root.combo_limit;
this._xscale = (this._yscale = 120);
_root.combo_cnt++;
_root.score_now = score * _root.combo_cnt;
_root.score = _root.score + _root.score_now;
}
function combo(this_score) {
_root.combo_time = _root.combo_limit;
this._xscale = (this._yscale = 120);
_root.combo_cnt++;
_root.score_now = this_score * _root.combo_cnt;
_root.score = _root.score + _root.score_now;
}
this._alpha = 0;
Symbol 1520 MovieClip Frame 2
if (_root.max_combo < _root.combo_cnt) {
_root.max_combo = _root.combo_cnt;
}
if (_root.combo_cnt >= 1000) {
_root.combo_cnt = 999;
}
combo1 = Math.floor((_root.combo_cnt % 10) + 1);
combo2 = Math.floor(((_root.combo_cnt / 10) % 10) + 1);
combo3 = Math.floor((_root.combo_cnt / 100) + 1);
this.combo_nums1.gotoAndStop(combo1);
this.combo_nums2.gotoAndStop(combo2);
this.combo_nums3.gotoAndStop(combo3);
if (80 < this._xscale) {
this._xscale = (this._yscale = this._yscale - 5);
}
if (0 < _root.combo_time) {
_root.combo_time--;
this.combo_bar._xscale = (_root.combo_time / _root.combo_limit) * 100;
this._alpha = 100;
} else {
_root.score_now = " ";
if (0 < this._alpha) {
this._alpha = this._alpha - 5;
}
if (this._alpha < 10) {
_root.combo_cnt = 0;
this._alpha = 0;
}
}
Symbol 1520 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1521 MovieClip Frame 1
function tutorial() {
this.attachMovie("tutorial", "tutorial2", 2000);
this.tutorial2._x = 0;
this.tutorial2._y = -60;
this.tutorial2._xscale = 100;
this.tutorial2._yscale = 100;
}
this.wep_ammo_max = [0, 0, 0];
this.wep_ammo_now = [0, 0, 0];
this.wep_reload_time = [0, 0, 0];
this.reload_flg = [0, 0, 0];
this.reload_cnt = [0, 0, 0];
this.wep_ammo_max[1] = (this.wep_ammo_now[1] = _root.ammo_wep[_root.equip_wep[1]]);
this.wep_ammo_max[2] = (this.wep_ammo_now[2] = _root.ammo_wep[_root.equip_wep[2]]);
this.wep_reload_time[1] = _root.wep_reload[_root.equip_wep[1]];
this.wep_reload_time[2] = _root.wep_reload[_root.equip_wep[2]];
this.p_states_set.p_hp_bar._xscale = 0;
this.p_states_set.p_bp_bar._xscale = 0;
this.p_states_set.p_pw_bar._yscale = 0;
this.e_states_set.e_hp_bar._xscale = 0;
this.weps = 1;
this.tlg = 0;
Symbol 1521 MovieClip Frame 2
if (((_root.key_wepchange == 1) && (this.tlg == 0)) && (_root.wep_change_able == 1)) {
if (_root.equip_wep[2] != 0) {
this.weps++;
this.tlg = 1;
if (2 < this.weps) {
this.weps = 1;
}
} else {
this.weps = 1;
}
}
if (_root.key_wepchange == 0) {
this.tlg = 0;
}
_root.p_weps = _root.equip_wep[this.weps];
this.wep_ctrl.gotoAndStop(this.weps);
this.wep_ctrl.wep_icons1.gotoAndStop(_root.equip_wep[1] + 1);
this.wep_ctrl.wep_icons2.gotoAndStop(_root.equip_wep[2] + 1);
this.wep_ammo_num = this.wep_ammo_now[this.weps];
if (_root.shot_cnt == 1) {
_root.shot_cnt = 0;
this.wep_ammo_now[this.weps]--;
}
if (0 >= this.wep_ammo_now[this.weps]) {
this.reload_flg[this.weps] = 1;
this.wep_ammo_now[this.weps] = 0;
}
_root.now_ammo_num = this.wep_ammo_now[this.weps];
if (_root.armor_reload[_root.equip_armor] == 0) {
if (this.reload_flg[this.weps] == 1) {
_root.shot_able = 0;
if (this.reload_cnt[this.weps] < this.wep_reload_time[this.weps]) {
this.reload_cnt[this.weps] = this.reload_cnt[this.weps] + _root.p_reload_time[_root.equip_armor];
this.wep_ctrl.bar_wep_ammo._xscale = (this.reload_cnt[this.weps] / this.wep_reload_time[this.weps]) * 100;
}
if (this.reload_cnt[this.weps] >= this.wep_reload_time[this.weps]) {
this.reload_flg[this.weps] = 0;
this.reload_cnt[this.weps] = 0;
this.wep_ammo_now[this.weps] = this.wep_ammo_max[this.weps];
}
} else {
_root.shot_able = 1;
this.wep_ctrl.bar_wep_ammo._xscale = (this.wep_ammo_now[this.weps] / this.wep_ammo_max[this.weps]) * 100;
}
}
if (_root.armor_reload[_root.equip_armor] == 1) {
if (this.reload_flg[1] == 1) {
if (this.reload_cnt[1] < this.wep_reload_time[1]) {
this.reload_cnt[1] = this.reload_cnt[1] + _root.p_reload_time[_root.equip_armor];
}
if (this.reload_cnt[1] >= this.wep_reload_time[1]) {
this.reload_flg[1] = 0;
this.reload_cnt[1] = 0;
this.wep_ammo_now[1] = this.wep_ammo_max[1];
}
}
if (this.reload_flg[2] == 1) {
if (this.reload_cnt[2] < this.wep_reload_time[2]) {
this.reload_cnt[2] = this.reload_cnt[2] + _root.p_reload_time[_root.equip_armor];
}
if (this.reload_cnt[2] >= this.wep_reload_time[2]) {
this.reload_flg[2] = 0;
this.reload_cnt[2] = 0;
this.wep_ammo_now[2] = this.wep_ammo_max[2];
}
}
if (this.reload_flg[this.weps] == 1) {
_root.shot_able = 0;
this.wep_ctrl.bar_wep_ammo._xscale = (this.reload_cnt[this.weps] / this.wep_reload_time[this.weps]) * 100;
} else {
_root.shot_able = 1;
this.wep_ctrl.bar_wep_ammo._xscale = (this.wep_ammo_now[this.weps] / this.wep_ammo_max[this.weps]) * 100;
}
}
if (_root.shop_armor[_root.equip_armor] == 5) {
if (_root.equip_armor == 9) {
this.wep_ctrl.wep_icons1.gotoAndStop(1);
this.wep_ctrl.wep_icons2.gotoAndStop(1);
}
}
this.p_states_set.p_hp_bar._xscale = (_root.p_hp / _root.a_max_main) * 100;
this.p_states_set.p_bp_bar._xscale = (_root.p_bp / _root.b_max_main) * 100;
this.p_states_set.p_pw_bar._yscale = (_root.p_pw / _root.b_pw_main) * 100;
this.e_hp.e_hp_bar._xscale = (_root.e_hp / _root.e_hp_max) * 100;
p_states_set.armor_icons.gotoAndStop(_root.equip_armor + 1);
if (_root.p_dmg == 0) {
ColorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
new Color(_root.root.p_box.player).setTransform(ColorTrans);
}
if (0 < _root.p_dmg) {
new Color(_root.root.p_box.player).setRGB(16777215);
if (0 < ((_root.p_dmg - _root.a_defense_main) - _root.dash_defense)) {
if (20 < ((_root.p_dmg - _root.a_defense_main) - _root.dash_defense)) {
if (_root.p_dmg_flg == 0) {
_root.p_hp = _root.p_hp - ((_root.p_dmg - _root.a_defense_main) - _root.dash_defense);
_root.root.p_box.player.anime_flg = 9;
_root.p_mov_x = _root.hit_mov_x;
_root.p_mov_y = _root.hit_mov_y;
}
_root.hit_mov_x = 0;
_root.hit_mov_y = 0;
} else {
_root.p_hp = _root.p_hp - ((_root.p_dmg - _root.a_defense_main) - _root.dash_defense);
_root.hit_mov_x = 0;
_root.hit_mov_y = 0;
}
} else if (0 >= ((_root.p_dmg - _root.a_defense_main) - _root.dash_defense)) {
_root.p_hp = _root.p_hp - 1;
_root.hit_mov_x = 0;
_root.hit_mov_y = 0;
}
_root.p_dmg = 0;
}
_root.life_bonus = (Math.round(((6 - _root.custom_bonus) / 3) * 100) / 100) + (Math.round((_root.p_hp / _root.a_max_main) * 100) / 100);
if (0 >= _root.p_hp) {
_root.root.p_box.player.anime_flg = 9;
_root.p_hp = 0;
_root.game_flg = 9;
if ((_root.p_dmg_flg == 1) && (_root._currentframe == 4)) {
if (_root.p_mov_x == 0) {
_root.life_bonus = 0.1;
_root.screen_flg = 2;
}
}
}
if (_root.p_bp < 0) {
_root.p_bp = 0;
}
if (_root.p_bp < _root.b_max_main) {
_root.p_bp = _root.p_bp + _root.b_recv_main;
}
if (0 < _root.time) {
_root.time_now--;
if (_root.time_now < 0) {
_root.time--;
_root.time_now = 45;
}
} else if (0 >= _root.time) {
if (_root.timemode == 0) {
_root.time = 0;
_root.time_now = 0;
_root.screen_flg = 2;
_root.game_flg = 9;
}
if (_root.timemode == 1) {
_root.time = 0;
_root.time_now = 0;
_root.timemode = 2;
}
}
if ((_root.key_efctchange == 1) && (this.efct_tlg == 0)) {
_root.efct_switch++;
this.efct_tlg = 1;
if (1 < _root.efct_switch) {
_root.efct_switch = 0;
}
}
if (_root.key_efctchange == 0) {
this.efct_tlg = 0;
}
if (_root.def_tgt_flg == 1) {
this.def_tgt_hp._visible = 1;
_root.tgt_hp = (_root.root.other_box.def_tgt1.hp + _root.root.other_box.def_tgt2.hp) + _root.root.other_box.def_tgt3.hp;
this.def_tgt_hp.hp_bar._xscale = (_root.tgt_hp / _root.tgt_hp_max) * 100;
if (0 >= ((_root.tgt_hp / _root.tgt_hp_max) * 100)) {
this.def_tgt_hp.hp_bar._xscale = 0;
}
} else {
this.def_tgt_hp._visible = 0;
}
Symbol 1521 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 1526 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 1526 MovieClip Frame 4
this.gotoAndPlay(3);
Symbol 1527 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 1527 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 1527 MovieClip Frame 20
this.gotoAndPlay(5);
Symbol 1528 MovieClip Frame 1
this._visible = 0;
Symbol 1528 MovieClip Frame 2
if (_root.alert_flg == 1) {
se_art.attachSound("se_art");
if (this.alert_main._currentframe < 5) {
this.alert_main.gotoAndPlay(5);
}
this.alert_main.alert.gotoAndPlay(3);
this._visible = 1;
} else if (_root.area_over == 1) {
se_art.attachSound("se_art");
if (this.alert_main._currentframe < 5) {
this.alert_main.gotoAndPlay(5);
}
this.alert_main.alert.gotoAndPlay(1);
this._visible = 1;
} else {
this.alert_main.gotoAndStop(1);
this._visible = 0;
}
Symbol 1528 MovieClip Frame 3
this.gotoAndPlay(2);