Frame 2
_root._quality = "low";
stopAllSounds();
mu_title = new Sound(_root);
mu_title.attachSound("mu_title");
mu_title.start(0, 999);
_root.gotoAndStop(2);
frame_flg = 0;
time = 0;
time_now = 0;
score_now = 0;
score = 0;
max_combo = 0;
destroy_num = 0;
t_score = 0;
combo_cnt = 0;
combo_time = 0;
combo_limit = 120;
p_flg = 1;
p_anime_cnt = 0;
wep_anime_cnt = 0;
sight_pos = 0;
anime_flg = 0;
dash_cnt = 0;
dash_tlg = 0;
dash_flg = 0;
start_x = 0;
start_y = 0;
p_pos_x = start_x;
p_pos_y = -500;
p_mov_x = 0;
p_mov_y = 0;
P_hp_max = 300;
p_bp_max = 300;
P_hp = 300;
p_bp = 300;
dmg_flg = 0;
hit_mov_x = 0;
hit_mov_y = 0;
p_max_x = 5;
p_max_y = -22;
jump_cnt = 0;
jump_max = 20;
jump_pw = 0;
jump_flg = 1;
jump_charge = 3;
p_v_x = 1;
p_v_y = 1;
p_wep_start = [0, 1, 10, 45, 55];
p_wep_end = [0, 4, 30, 50, 80];
p_wep_num = 1;
wep_anime_cnt = 1;
key_l = 0;
key_r = 0;
key_u = 0;
key_d = 0;
p_shot_num = 0;
efct_num = 0;
enemy_flg = 0;
Mouse.hide();
e_shot_num = 0;
_root.enemy_num = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
efct_switch = 1;
Instance of Symbol 144 MovieClip "p_sight" in Frame 2
onClipEvent (mouseDown) {
_root.shot_flg = 1;
}
onClipEvent (mouseUp) {
_root.shot_flg = 0;
}
Frame 3
stopAllSounds();
mu_title = new Sound(_root);
mu_title.attachSound("mu_combat1");
mu_title.start(0, 999);
Frame 4
stopAllSounds();
Symbol 5 MovieClip [smoke_other01] Frame 10
this.removeMovieClip();
Symbol 16 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 16 MovieClip Frame 9
_parent.removeMovieClip();
Symbol 16 MovieClip Frame 34
_parent.removeMovieClip();
Symbol 16 MovieClip Frame 44
_parent.removeMovieClip();
Symbol 19 MovieClip [p_shot_01] Frame 1
if (this.hit_flg == 0) {
m_x = Math.cos(this._rotation * (Math.PI/180)) * shot_spd;
m_y = Math.sin(this._rotation * (Math.PI/180)) * shot_spd;
if (this.hitTest(_root.bg_ground.bg_gnd_main)) {
this._xscale = 70;
this._yscale = 70;
this._rotation = 0;
this.hit_flg = 1;
this.p_shot01_main.gotoAndPlay(11);
}
i = 0;
while (15 >= i) {
if (this.p_shot01_core.hitTest(_root.enemy_box["enemy" + i].e_core2)) {
if ((shot_spd / 2) < m_y) {
if (_root.enemy_box["enemy" + i].end_flg == 0) {
new Color(_root.enemy_box["enemy" + i]).setRGB(16711680);
_root.enemy_box["enemy" + i].e_hp = _root.enemy_box["enemy" + i].e_hp + 3;
_root.enemy_box["enemy" + i].c = 0;
this.hit_flg = 1;
if (_root.p_wep_num == 1) {
this._xscale = 80;
this._yscale = 80;
this._rotation = this._rotation + (15 - random(30));
this.p_shot01_main.gotoAndPlay(5);
}
if (_root.p_wep_num == 2) {
this._rotation = this._rotation + (15 - random(30));
this._xscale = this._xscale - 150;
this._yscale = this._yscale + 70;
this.p_shot01_main.gotoAndPlay(36);
}
}
}
}
if (this.p_shot01_core.hitTest(_root.enemy_box["enemy" + i].e_core)) {
if (this.hit_flg == 0) {
if (_root.enemy_box["enemy" + i].end_flg == 0) {
new Color(_root.enemy_box["enemy" + i]).setRGB(16777215);
_root.enemy_box["enemy" + i].e_hp++;
_root.enemy_box["enemy" + i].c = 0;
this.hit_flg = 1;
if (_root.p_wep_num == 1) {
this._xscale = 50;
this._yscale = 50;
this._rotation = this._rotation + (15 - random(30));
this.p_shot01_main.gotoAndPlay(5);
this._yscale = this._yscale + 20;
}
if (_root.p_wep_num == 2) {
this._rotation = this._rotation + (150 + random(60));
this._xscale = this._xscale - 50;
this._yscale = this._yscale + 20;
this.p_shot01_main.gotoAndPlay(36);
}
}
}
}
if (this.p_shot01_core.hitTest(_root.e_efct_box["e_msl" + i]) && (_root.e_efct_box["e_msl" + i].hit == 0)) {
_root.combo_counter.combo(5);
_root.e_efct_box["e_msl" + i].hit = 1;
this._xscale = 50;
this._yscale = 50;
this._rotation = this._rotation + (150 + random(60));
this.p_shot01_main.gotoAndPlay(5);
this.hit_flg = 1;
}
if (this.p_shot01_core.hitTest(_root.e_efct_box["e_bom" + i]) && (_root.e_efct_box["e_bom" + i].hit == 0)) {
_root.combo_counter.combo(10);
_root.e_efct_box["e_bom" + i].hit = 1;
this._xscale = 50;
this._yscale = 50;
this._rotation = this._rotation + (150 + random(60));
this.p_shot01_main.gotoAndPlay(5);
this.hit_flg = 1;
}
i++;
}
this._x = this._x + m_x;
this._y = this._y + m_y;
this.time++;
if (10 < this.time) {
this.removeMovieClip();
}
} else if (this.hit_flg != 0) {
m_x = 0;
m_y = 0;
this._x = this._x + (m_x + _root.p_mov_x);
this._y = this._y + (m_y + _root.p_mov_y);
}
Symbol 19 MovieClip [p_shot_01] Frame 2
this.gotoAndPlay(1);
Symbol 33 MovieClip Frame 3
this.gotoAndPlay(1);
Symbol 33 MovieClip Frame 24
_parent.removeMovieClip();
Symbol 33 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 36 MovieClip [p_msl01] Frame 1
if (this.hit_flg == 0) {
this.time++;
if (100 < this.time) {
this.hit_flg = 1;
}
if (spd < 20) {
spd++;
}
mov_x1 = Math.sin((-this._rotation) * (Math.PI/180)) * spd;
mov_y1 = Math.cos((-this._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;
}
}
if (this.msl_core.hitTest(_root.bg_ground.bg_gnd_main) && (this.hit_flg == 0)) {
this.hit_flg = 3;
}
i = 0;
while (15 >= i) {
if (this.msl_core.hitTest(_root.enemy_box["enemy" + i].e_core)) {
if (this.hit_flg == 0) {
if (_root.enemy_box["enemy" + i].end_flg == 0) {
new Color(_root.enemy_box["enemy" + i]).setRGB(16777215);
_root.enemy_box["enemy" + i].e_hp = _root.enemy_box["enemy" + i].e_hp + 3;
_root.enemy_box["enemy" + i].c = 0;
this.hit_flg = 1;
}
}
}
if (this.msl_core.hitTest(_root.e_efct_box["e_msl01" + i]) && (_root.e_efct_box["e_msl01" + i].hit == 0)) {
_root.combo_counter.combo(5);
_root.e_efct_box["e_msl01" + i].hit = 1;
this.hit_flg = 1;
}
i++;
}
this._rotation = (-Math.atan2((_root.p_sight._x - _root.pos_box._x) - this._x, (_root.p_sight._y - _root.pos_box._y) - this._y)) / (Math.PI/180);
this._x = this._x + this.mov_x2;
this._y = this._y + this.mov_y2;
}
if (this.hit_flg == 1) {
this.p_msl_main.gotoAndPlay(5);
this.hit_flg = 2;
}
if (this.hit_flg == 3) {
this._rotation = 0;
this.p_msl_main.gotoAndPlay(25);
this.hit_flg = 2;
}
Symbol 36 MovieClip [p_msl01] Frame 2
this.gotoAndPlay(1);
Symbol 39 MovieClip Frame 4
this.gotoAndPlay(1);
Symbol 39 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 39 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 40 MovieClip [e_msl01] Frame 1
if (this.msl_core.hitTest(_root.player01.p_hit_area) && (this.hit == 0)) {
if (_root.anime_flg < 90) {
_root.p_hp = _root.p_hp - 20;
_root.hit_mov_y = 10;
_root.p_mov_x = 0;
if (mov_x2 < 0) {
_root.hit_mov_x = 10;
_root.anime_flg = 90;
}
if (0 < mov_x2) {
_root.hit_mov_x = -10;
_root.anime_flg = 91;
}
}
this.hit = 1;
}
if (this.msl_core.hitTest(_root.bg_ground.bg_gnd_main) && (this.hit == 0)) {
this.hit = 3;
}
if (this.hit == 0) {
if (spd < 10) {
spd++;
}
mov_x1 = Math.sin((-this._rotation) * (Math.PI/180)) * spd;
mov_y1 = Math.cos((-this._rotation) * (Math.PI/180)) * spd;
cnt++;
if (5 < 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 - 0.5;
}
if (mov_y2 < mov_y1) {
mov_y2 = mov_y2 + 0.5;
}
}
this._x = this._x + this.mov_x2;
this._y = this._y + this.mov_y2;
this._rotation = (-Math.atan2(_root.p_pos_x - this._x, (_root.p_pos_y - 20) - this._y)) / (Math.PI/180);
} else if (this.hit == 1) {
_root.p_shot_box["m_m" + this.num].removeMovieClip();
this.hit = 2;
this.e_msl01_main.gotoAndPlay(5);
} else if (this.hit == 3) {
_root.p_shot_box["m_m" + this.num].removeMovieClip();
this._rotation = 0;
this.hit = 4;
this.e_msl01_main.gotoAndPlay(30);
}
Symbol 40 MovieClip [e_msl01] Frame 2
this.gotoAndPlay(1);
Symbol 42 MovieClip [msl_mark] Frame 1
this._x = _root.p_pos_x;
this._y = _root.p_pos_y - 50;
msl_x = _root.e_efct_box["e_msl" + this.num]._x;
msl_y = _root.e_efct_box["e_msl" + this.num]._y;
this._rotation = Math.atan2(msl_x - this._x, this._y - msl_y) / (Math.PI/180);
Symbol 42 MovieClip [msl_mark] Frame 2
this._x = _root.p_pos_x;
this._y = _root.p_pos_y - 50;
msl_x = _root.e_efct_box["e_msl" + this.num]._x;
msl_y = _root.e_efct_box["e_msl" + this.num]._y;
this._rotation = Math.atan2(msl_x - this._x, this._y - msl_y) / (Math.PI/180);
this.gotoAndPlay(1);
Symbol 45 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 45 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 51 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 51 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 57 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 57 MovieClip Frame 25
_root.enemy_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 62 MovieClip Frame 6
this.gotoAndPlay(1);
Symbol 63 MovieClip [e_tank01] Frame 1
if (this.e_tank01_main._currentframe < 5) {
if (this.e_hp >= 10) {
_root.destroy_num++;
_root.combo_counter.combo(90);
_root.e_efct_box["e_lock" + this.num].removeMovieClip();
this.end_flg = 1;
_root.rader["e_p" + this.num].removeMovieClip();
this.e_tank01_main.gotoAndPlay(10);
}
}
ColorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
if (c < 2) {
this.c++;
} else if (c >= 2) {
this.c = 0;
new Color(this).setTransform(ColorTrans);
}
if (_root.p_flg == 1) {
if (this.end_flg == 0) {
if (this.atk_flg == 3) {
if (this.e_tank01_main.e_cannon._currentframe == 4) {
this.shot_x = this._x + this.e_tank01_main.e_cannon._x;
this.shot_y = (this._y + (this.e_tank01_main.e_cannon._y / 2)) - 20;
if (0 < this._xscale) {
this.can_rot2 = this.can_rot + 180;
}
if (this._xscale < 0) {
this.can_rot2 = -this.can_rot;
}
_root.e_shot_num++;
_root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 150, 30, this.can_rot2, 50, _root.e_shot_num);
}
if (this.e_tank01_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 == 2) {
this.e_tank01_main.e_cannon.gotoAndPlay(3);
this.atk_flg = 3;
}
if (this.atk_flg == 1) {
this.mov_x = 0;
this.lock_x = _root.e_efct_box["e_lock" + this.num]._x;
this.lock_y = _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.atk_flg == 0) {
this.can_rot = 0;
if (this._x < _root.p_pos_x) {
this._xscale = -62;
} else if (_root.p_pos_x < this._x) {
this._xscale = 62;
}
if (this._x < (_root.p_pos_x - 600)) {
if (this.mov_x < 10) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if ((_root.p_pos_x + 600) < this._x) {
if (-10 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else if ((this._x < (_root.p_pos_x + 350)) && (_root.p_pos_x < this._x)) {
if (this.mov_x < 5) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if (((_root.p_pos_x - 350) < this._x) && (this._x < _root.p_pos_x)) {
if (-5 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else {
this.mov_x = this.mov_x / 2;
if ((this.mov_x < 1) && (-1 < this.mov_x)) {
this.smoke_tankdash._visible = 1;
this.mov_x = 0;
}
}
this.time++;
if (this.time >= this.lag) {
this.smoke_tankdash._visible = 0;
_root.e_efct_box.e_lock01(this._x, this._y - 70, this.num);
this.atk_flg = 1;
}
}
if (this.can_rot < this.e_tank01_main.e_cannon._rotation) {
this.e_tank01_main.e_cannon._rotation--;
}
if (this.e_tank01_main.e_cannon._rotation < this.can_rot) {
this.e_tank01_main.e_cannon._rotation++;
}
this._x = this._x + this.mov_x;
}
} else {
this.smoke_tankdash._visible = 0;
}
Symbol 63 MovieClip [e_tank01] Frame 2
this.gotoAndPlay(1);
Symbol 65 MovieClip [smoke_msl01] Frame 25
this.removeMovieClip();
Symbol 66 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 67 MovieClip [smoke_jump01] Frame 2
this.gotoAndPlay(1);
Symbol 70 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 71 MovieClip [smoke_dash01] Frame 2
this.gotoAndPlay(1);
Symbol 74 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 75 MovieClip [smoke_black01] Frame 1
this._x = this._x + _root.p_mov_x;
this._y = this._y + _root.p_mov_y;
Symbol 75 MovieClip [smoke_black01] Frame 2
this.gotoAndPlay(1);
Symbol 76 MovieClip [efct_sw01] Frame 10
this.removeMovieClip();
Symbol 81 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 81 MovieClip Frame 15
_parent.gotoAndPlay(12);
Symbol 84 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 84 MovieClip Frame 15
_parent.gotoAndPlay(12);
Symbol 85 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 85 MovieClip Frame 11
this.gotoAndPlay(10);
Symbol 85 MovieClip Frame 25
this.gotoAndPlay(1);
Symbol 85 MovieClip Frame 45
_root.enemy_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 86 MovieClip [e_tank02] Frame 1
if (this.e_tank02_main._currentframe < 30) {
if (this.e_hp >= 13) {
_root.destroy_num++;
_root.combo_counter.combo(100);
_root.e_efct_box["e_lock" + this.num].removeMovieClip();
this.end_flg = 1;
_root.rader["e_p" + this.num].removeMovieClip();
this.e_tank02_main.gotoAndPlay(30);
}
}
ColorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
if (c < 2) {
this.c++;
} else if (c >= 2) {
this.c = 0;
new Color(this).setTransform(ColorTrans);
}
if (_root.p_flg == 1) {
if (this.end_flg == 0) {
if (this.e_tank02_main._currentframe >= 24) {
this.time = 0;
this.lag = 120 + random(60);
}
if (this.atk_flg == 0) {
if (this._x < _root.p_pos_x) {
this.smoke_tankdash._visible = 1;
this._xscale = -62;
this.smoke_tankdash._visible = 1;
} else if (_root.p_pos_x < this._x) {
this._xscale = 62;
}
if (this._x < (_root.p_pos_x - 500)) {
if (this.mov_x < 10) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if ((_root.p_pos_x + 500) < this._x) {
if (-10 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else if ((this._x < (_root.p_pos_x + 250)) && (_root.p_pos_x < this._x)) {
if (this.mov_x < 3) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if (((_root.p_pos_x - 250) < this._x) && (this._x < _root.p_pos_x)) {
if (-3 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else {
this.smoke_tankdash._visible = 0;
this.mov_x = this.mov_x / 2;
if ((this.mov_x < 1) && (-1 < this.mov_x)) {
this.mov_x = 0;
}
}
this.time++;
if (this.lag < this.time) {
this.atk_flg = 1;
this.time = 0;
}
}
if (this.atk_flg == 1) {
this.atk_flg = 2;
this.e_tank02_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.e_shot_num++;
_root.e_efct_box.e_msl01(shot_x, this._y - 100, 0, _root.e_shot_num);
this.e_tank02_main.e_msl_pod.gotoAndPlay(3);
this.atk_flg = 3;
}
}
if (this.atk_flg != 0) {
if (this.e_tank02_main.e_msl_pod._currentframe >= 14) {
this.e_tank02_main.gotoAndPlay(12);
}
if (this.e_tank02_main._currentframe >= 24) {
this.atk_flg = 0;
this.e_tank02_main.gotoAndPlay(1);
}
}
}
this._x = this._x + this.mov_x;
} else {
this.smoke_tankdash._visible = 0;
}
Symbol 86 MovieClip [e_tank02] Frame 2
this.gotoAndPlay(1);
Symbol 89 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 89 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 89 MovieClip Frame 55
_parent.removeMovieClip();
Symbol 90 MovieClip [e_shot01] Frame 1
m_x = Math.cos(this._rotation * (Math.PI/180)) * this.spd;
m_y = Math.sin(this._rotation * (Math.PI/180)) * this.spd;
this._x = this._x + m_x;
this._y = this._y + m_y;
Symbol 90 MovieClip [e_shot01] Frame 2
m_x = Math.cos(this._rotation * (Math.PI/180)) * this.spd;
m_y = Math.sin(this._rotation * (Math.PI/180)) * this.spd;
this._x = this._x + m_x;
this._y = this._y + m_y;
Symbol 90 MovieClip [e_shot01] Frame 3
if (this.hit == 3) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this.e_shot01_main.gotoAndPlay(5);
this.hit = 4;
}
if (this.hit == 1) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this.e_shot01_main.gotoAndPlay(35);
this.hit = 4;
}
if (this.hit == 0) {
this._time++;
m_x = Math.cos(this._rotation * (Math.PI/180)) * this.spd;
m_y = Math.sin(this._rotation * (Math.PI/180)) * this.spd;
this._x = this._x + m_x;
this._y = this._y + m_y;
if (this.time >= 2) {
if (15 < this.time) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.bg_ground.bg_gnd_main)) {
this.hit = 3;
}
}
if (this.hitTest(_root.player01.p_hit_area) && (this.hit == 0)) {
if (_root.anime_flg < 90) {
_root.p_hp = _root.p_hp - 60;
_root.hit_mov_y = 10;
if (m_x < 0) {
_root.hit_mov_x = 15;
_root.anime_flg = 90;
}
if (0 < m_x) {
_root.hit_mov_x = -15;
_root.anime_flg = 91;
}
}
this.hit = 1;
}
Symbol 90 MovieClip [e_shot01] Frame 4
this.gotoAndPlay(3);
Symbol 94 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 94 MovieClip Frame 25
this.gotoAndPlay(20);
Symbol 95 MovieClip [e_lock01] Frame 1
this.time++;
if (this.lock_flg == 0) {
this.mov_x = (_root.p_pos_x - this._x) / 3;
this.mov_y = ((_root.p_pos_y - 10) - this._y) / 3;
this._x = this._x + this.mov_x;
this._y = this._y + this.mov_y;
if (120 < 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 >= 20) {
_root.enemy_box["enemy" + this.num].atk_flg = 2;
this.removeMovieClip();
this.lock_flg = 2;
}
}
Symbol 95 MovieClip [e_lock01] Frame 2
this.gotoAndPlay(1);
Symbol 97 MovieClip [e_point] Frame 1
point_x = _root.enemy_box["enemy" + this.num]._x - _root.p_pos_x;
point_y = _root.enemy_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 97 MovieClip [e_point] Frame 2
this.gotoAndPlay(1);
Symbol 114 MovieClip [boss01] Frame 1
if (this.e_tank01_main._currentframe < 5) {
if (this.e_hp >= 15) {
_root.combo_counter.combo();
_root.e_efct_box["e_lock" + this.num].removeMovieClip();
this.end_flg = 1;
_root.rader["e_p" + this.num].removeMovieClip();
this.e_tank01_main.gotoAndPlay(10);
}
}
ColorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
if (c < 2) {
this.c++;
} else if (c >= 2) {
this.c = 0;
new Color(this).setTransform(ColorTrans);
}
if (this.end_flg == 0) {
if (this.atk_flg == 3) {
if (this.e_tank01_main.e_cannon._currentframe == 4) {
this.shot_x = this._x + this.e_tank01_main.e_cannon._x;
this.shot_y = (this._y + this.e_tank01_main.e_cannon._y) - 20;
if (0 < this._xscale) {
this.can_rot2 = this.can_rot + 180;
}
if (this._xscale < 0) {
this.can_rot2 = -this.can_rot;
}
_root.e_shot_num++;
_root.e_efct_box.e_shot01(this.shot_x, this.shot_y, 200, 50, this.can_rot2, 60, _root.e_shot_num);
}
if (this.e_tank01_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 == 2) {
this.e_tank01_main.e_cannon.gotoAndPlay(3);
this.atk_flg = 3;
}
if (this.atk_flg == 1) {
this.mov_x = 0;
this.lock_x = _root.e_efct_box["e_lock" + this.num]._x;
this.lock_y = _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 - 100))) / (Math.PI/180)) - 90;
}
if (this._xscale < 0) {
this.can_rot = (Math.atan2(this.lock_x - this._x, this.lock_y - (this._y - 100)) / (Math.PI/180)) - 90;
}
if (40 < this.can_rot) {
this.can_rot = 40;
}
if (this.can_rot < -20) {
this.can_rot = -20;
}
}
if (this.atk_flg == 0) {
this.can_rot = 0;
if (this._x < _root.p_pos_x) {
this._xscale = -100;
} else if (_root.p_pos_x < this._x) {
this._xscale = 100;
}
if (this._x < (_root.p_pos_x - 600)) {
if (this.mov_x < 15) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if ((_root.p_pos_x + 600) < this._x) {
if (-15 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else if ((this._x < (_root.p_pos_x + 350)) && (_root.p_pos_x < this._x)) {
if (this.mov_x < 15) {
this.smoke_tankdash._visible = 1;
this.mov_x++;
}
} else if (((_root.p_pos_x - 350) < this._x) && (this._x < _root.p_pos_x)) {
if (-15 < this.mov_x) {
this.smoke_tankdash._visible = 1;
this.mov_x--;
}
} else {
this.mov_x = this.mov_x / 2;
if ((this.mov_x < 1) && (-1 < this.mov_x)) {
this.smoke_tankdash._visible = 1;
this.mov_x = 0;
}
}
this.time++;
if (this.time >= this.lag) {
if (this.atk_flg == 0) {
this.smoke_tankdash._visible = 0;
_root.e_efct_box.e_lock01(this._x, this._y - 70, this.num);
this.atk_flg = 1;
}
}
}
if (this.can_rot < this.e_tank01_main.e_cannon._rotation) {
this.e_tank01_main.e_cannon._rotation--;
}
if (this.e_tank01_main.e_cannon._rotation < this.can_rot) {
this.e_tank01_main.e_cannon._rotation++;
}
this._x = this._x + this.mov_x;
}
Symbol 114 MovieClip [boss01] Frame 2
this.gotoAndPlay(1);
Symbol 117 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 117 MovieClip Frame 35
_root.enemy_num[_parent.num] = 0;
_parent.removeMovieClip();
Symbol 118 MovieClip [e_fly01] Frame 1
if (this.e_fly01_main._currentframe < 5) {
if (this.e_hp >= 5) {
_root.destroy_num++;
_root.combo_counter.combo(70);
this.end_flg = 1;
_root.rader["e_p" + this.num].removeMovieClip();
this.e_fly01_main.gotoAndPlay(10);
}
}
ColorTrans = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
if (c < 2) {
this.c++;
} else if (c >= 2) {
this.c = 0;
new Color(this).setTransform(ColorTrans);
}
if (this.end_flg == 0) {
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--;
}
}
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++;
}
}
if (_root.p_pos_x < this._x) {
this._xscale = 62;
}
if (_root.p_pos_x >= this._x) {
this._xscale = -62;
}
if ((_root.p_pos_x + 500) < this._x) {
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) {
this.time = 0;
this.lag = 120 + random(150);
_root.e_shot_num++;
_root.e_efct_box.e_bom01(this._x, this._y + 20, _root.e_shot_num);
}
}
this._x = this._x + mov_x;
this._y = this._y + mov_y;
}
if (this.end_flg == 1) {
this.e_fly01_main.gotoAndPlay(15);
this.end_flg = 2;
}
Symbol 118 MovieClip [e_fly01] Frame 2
this.gotoAndPlay(1);
Symbol 124 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 124 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 124 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 125 MovieClip [e_bom01] Frame 1
if (this.hit == 0) {
this.mov_y++;
this._y = this._y + this.mov_y;
if (this.hitTest(_root.bg_ground.bg_gnd_main)) {
this.hit = 3;
}
}
if (this.e_bom01_main.bom_hitarea.hitTest(_root.player01.p_hit_area) && (this.hit == 4)) {
if (_root.anime_flg < 90) {
_root.p_hp = _root.p_hp - 15;
_root.hit_mov_y = 10;
_root.p_mov_x = 0;
if (_root.p_pos_x < this._x) {
_root.hit_mov_x = 15;
_root.anime_flg = 90;
}
if (this._x < _root.p_pos_x) {
_root.hit_mov_x = -15;
_root.anime_flg = 91;
}
}
}
if (this.hit == 1) {
this.e_bom01_main.gotoAndPlay(5);
this.hit = 2;
}
if (this.hit == 3) {
this.e_bom01_main.gotoAndPlay(20);
this.hit = 4;
}
Symbol 125 MovieClip [e_bom01] Frame 2
this.gotoAndPlay(1);
Symbol 132 MovieClip Frame 1
loaded = _root.getBytesLoaded();
totalloaded = _root.getBytesTotal();
if (loaded >= totalloaded) {
_root.gotoAndStop(2);
} else {
load_parcent = (loaded / totalloaded) * 100;
load_parcent_main = Math.round(load_parcent);
this._loading_bar._xscale = (loaded / totalloaded) * 100;
_root.stop();
}
Symbol 132 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 137 MovieClip Frame 60
this.gotoAndPlay(1);
Symbol 140 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 144 MovieClip Frame 1
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root.p_sight._x < _root.player01._x) {
if (_root.player01._x < 280) {
_root.player01._x = _root.player01._x + 5;
_root.pos_box._x = _root.pos_box._x + 5;
}
}
if (_root.player01._x < _root.p_sight._x) {
if (120 < _root.player01._x) {
_root.player01._x = _root.player01._x - 5;
_root.pos_box._x = _root.pos_box._x - 5;
}
}
if (_root.p_sight._y < _root.player01._y) {
if (_root.player01._y < 220) {
_root.player01._y = _root.player01._y + 5;
_root.pos_box._y = _root.pos_box._y + 5;
}
}
if (_root.player01._y < _root.p_sight._y) {
if (_root.jump_flg == 1) {
if (100 < _root.player01._y) {
_root.player01._y = _root.player01._y - 5;
_root.pos_box._y = _root.pos_box._y - 5;
}
} else if (_root.jump_flg == 0) {
if (_root.player01._y < 220) {
_root.player01._y = _root.player01._y + 5;
_root.pos_box._y = _root.pos_box._y + 5;
}
}
}
Symbol 144 MovieClip Frame 2
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root.p_sight._x < _root.player01._x) {
if (_root.player01._x < 280) {
_root.player01._x = _root.player01._x + 5;
_root.pos_box._x = _root.pos_box._x + 5;
}
}
if (_root.player01._x < _root.p_sight._x) {
if (120 < _root.player01._x) {
_root.player01._x = _root.player01._x - 5;
_root.pos_box._x = _root.pos_box._x - 5;
}
}
if (_root.p_sight._y < _root.player01._y) {
if (_root.player01._y < 220) {
_root.player01._y = _root.player01._y + 5;
_root.pos_box._y = _root.pos_box._y + 5;
}
}
if (_root.player01._y < _root.p_sight._y) {
if (_root.jump_flg == 1) {
if (100 < _root.player01._y) {
_root.player01._y = _root.player01._y - 5;
_root.pos_box._y = _root.pos_box._y - 5;
}
} else if (_root.jump_flg == 0) {
if (_root.player01._y < 220) {
_root.player01._y = _root.player01._y + 5;
_root.pos_box._y = _root.pos_box._y + 5;
}
}
}
this.gotoAndPlay(1);
Symbol 148 MovieClip Frame 1
if (_root._currentframe == 2) {
if (_root.frame_flg == 0) {
this.screen_white._alpha = 0;
}
if (0 < this.screen_black._alpha) {
this.screen_black._alpha = this.screen_black._alpha - 2;
}
if (this.screen_black._alpha < 2) {
this.screen_black._alpha = 0;
}
if (0 >= this.screen_black._alpha) {
if ((_root.shot_flg == 1) && (_root.frame_flg == 0)) {
_root.frame_flg = 1;
}
if (_root.frame_flg == 1) {
if (100 >= this.screen_white._alpha) {
this.screen_white._alpha = this.screen_white._alpha + 3;
}
}
if (this.screen_white._alpha >= 100) {
_root.frame_flg = 2;
_root.gotoAndStop(3);
}
}
}
if (_root._currentframe == 3) {
this.screen_black._alpha = 0;
if ((0 < this.screen_white._alpha) && (_root.frame_flg == 2)) {
this.screen_white._alpha = this.screen_white._alpha - 2;
}
if (this.screen_white._alpha < 2) {
_root.frame_flg = 3;
this.screen_white._alpha = 0;
}
if (_root.p_flg == 2) {
if (100 >= this.screen_white._alpha) {
this.screen_white._alpha = this.screen_white._alpha + 3;
}
if (this.screen_white._alpha >= 100) {
_root.gotoAndStop(4);
}
}
}
if (_root._currentframe == 4) {
if (0 < this.screen_white._alpha) {
this.screen_white._alpha = this.screen_white._alpha - 2;
}
if (0 >= this.screen_white._alpha) {
if ((_root.shot_flg == 1) && (_root.frame_flg == 3)) {
_root.frame_flg = 0;
}
if (_root.frame_flg == 0) {
if (100 >= this.screen_black._alpha) {
this.screen_black._alpha = this.screen_black._alpha + 3;
}
}
if (this.screen_black._alpha >= 100) {
_root.gotoAndStop(2);
}
}
}
Symbol 148 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 165 MovieClip Frame 1
this._x = this._x + _root.p_mov_x;
this._y = this._y + _root.p_mov_y;
Symbol 165 MovieClip Frame 2
if (_root.bg_ground._y < (_root.player01._y - _root.p_mov_y)) {
this._y = this._y + ((_root.player01._y - _root.bg_ground._y) - 1);
if (_root.p_mov_y < 0) {
_root.jump_flg = 0;
_root.p_mov_y = 0;
}
} else {
_root.jump_flg = 1;
}
this._x = this._x + _root.p_mov_x;
this._y = this._y + _root.p_mov_y;
_root.p_pos_x = _root.player01._x - this._x;
_root.p_pos_y = _root.player01._y - this._y;
Symbol 165 MovieClip Frame 3
if (_root.bg_ground._y < (_root.player01._y - _root.p_mov_y)) {
this._y = this._y + ((_root.player01._y - _root.bg_ground._y) - 1);
if (_root.p_mov_y < 0) {
_root.jump_flg = 0;
_root.p_mov_y = 0;
}
} else {
_root.jump_flg = 1;
}
_root.p_pos_x = _root.player01._x - this._x;
_root.p_pos_y = _root.player01._y - this._y;
this.gotoAndPlay(2);
Symbol 173 MovieClip Frame 1
this._x = (_root.pos_box._x - _root.start_x) / 3;
this._y = (_root.pos_box._y + 1000) / 3;
Symbol 173 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 175 MovieClip Frame 1
this._x = _root.pos_box._x - _root.start_x;
this._y = _root.pos_box._y + 500;
Symbol 175 MovieClip Frame 2
this._x = _root.pos_box._x - _root.start_x;
this._y = _root.pos_box._y + 500;
this.gotoAndPlay(1);
Symbol 176 MovieClip Frame 1
function e_tank01(num, pos_x, pos_y) {
this.attachMovie("e_tank01", "enemy" + num, 200 + num);
this["enemy" + num]._x = pos_x;
this["enemy" + num]._y = pos_y;
this["enemy" + num]._xscale = 62;
this["enemy" + num]._yscale = 62;
this["enemy" + num].e_hp = 0;
this["enemy" + num].c = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].time = 0;
this["enemy" + num].lag = 120 + random(80);
this["enemy" + num].end_flg = 0;
this["enemy" + num].num = num;
_root.rader.e_point(num, 100, 100);
}
function e_tank02(num, pos_x, pos_y) {
this.attachMovie("e_tank02", "enemy" + num, 200 + num);
this["enemy" + num]._x = pos_x;
this["enemy" + num]._y = pos_y;
this["enemy" + num]._xscale = 62;
this["enemy" + num]._yscale = 62;
this["enemy" + num].e_hp = 0;
this["enemy" + num].c = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].time = 0;
this["enemy" + num].lag = 100 + random(60);
this["enemy" + num].end_flg = 0;
this["enemy" + num].num = num;
_root.rader.e_point(num, 100, 100);
}
function e_fly01(num, pos_x, pos_y) {
this.attachMovie("e_fly01", "enemy" + num, 200 + num);
this["enemy" + num]._x = pos_x;
this["enemy" + num]._y = pos_y;
this["enemy" + num]._xscale = 62;
this["enemy" + num]._yscale = 62;
this["enemy" + num].e_hp = 0;
this["enemy" + num].c = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].time = 0;
this["enemy" + num].lag = 100 + random(60);
this["enemy" + num].end_flg = 0;
this["enemy" + num].num = num;
_root.rader.e_point(num, 100, 100);
}
function e_lock01(pos_x, pos_y, num) {
this.attachMovie("e_lock01", "e_lock" + num, 50 + num);
this["e_lock" + num]._x = pos_x;
this["e_lock" + num]._y = pos_y;
this["e_lock" + num]._xscale = 100;
this["e_lock" + num]._yscale = 100;
this["e_lock" + num].lock_flg = 0;
this["e_lock" + num].time = 0;
this["e_lock" + num].num = _root.num;
}
function e_boss01(num, pos_x, pos_y) {
this.attachMovie("boss01", "enemy" + num, 200 + num);
this["enemy" + num]._x = pos_x;
this["enemy" + num]._y = pos_y;
this["enemy" + num]._xscale = 100;
this["enemy" + num]._yscale = 100;
this["enemy" + num].e_hp = 0;
this["enemy" + num].c = 0;
this["enemy" + num].atk_flg = 0;
this["enemy" + num].time = 0;
this["enemy" + num].lag = 120 + random(80);
this["enemy" + num].end_flg = 0;
this["enemy" + num].num = num;
_root.rader.e_point(num, 200, 200);
}
Symbol 176 MovieClip Frame 2
i = 0;
while (i < 4) {
if (_root.enemy_num[i] == 0) {
enem = random(6);
_root.enemy_num[i] = 1;
if ((500 < _root.p_pos_x) && (_root.p_pos_x < 4500)) {
if (enem == 0) {
e_tank01(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 1) {
e_tank01(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 2) {
e_tank02(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 3) {
e_tank02(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 4) {
e_fly01(i, (_root.p_pos_x + 500) + random(1000), (_root.p_pos_y - 300) - random(300));
}
if (enem == 5) {
e_fly01(i, (_root.p_pos_x - 500) - random(1000), (_root.p_pos_y - 300) - random(300));
}
}
if (500 >= _root.p_pos_x) {
if (enem == 0) {
e_tank01(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 1) {
e_tank01(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 2) {
e_tank02(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 3) {
e_tank02(i, (_root.p_pos_x + 500) + random(1000), 500);
}
if (enem == 4) {
e_fly01(i, (_root.p_pos_x + 500) + random(1000), (_root.p_pos_y - 300) - random(300));
}
if (enem == 5) {
e_fly01(i, (_root.p_pos_x - 500) - random(1000), (_root.p_pos_y - 300) - random(300));
}
}
if (_root.p_pos_x >= 4500) {
if (enem == 0) {
e_tank01(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 1) {
e_tank01(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 2) {
e_tank02(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 3) {
e_tank02(i, (_root.p_pos_x - 500) - random(1000), 500);
}
if (enem == 4) {
e_fly01(i, (_root.p_pos_x + 500) + random(1000), (_root.p_pos_y - 300) - random(300));
}
if (enem == 5) {
e_fly01(i, (_root.p_pos_x - 500) - random(1000), (_root.p_pos_y - 300) - random(300));
}
}
}
i++;
}
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
Symbol 176 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 178 MovieClip Frame 1
this._alpha = 50 - ((this._y - _root.player01._y) / 5);
this._xscale = 100 - ((this._y - _root.player01._y) / 5);
this._x = _root.player01._x;
this._y = _root.pos_box._y + 500;
Symbol 178 MovieClip Frame 2
this._alpha = 50 - ((this._y - _root.player01._y) / 5);
this._xscale = 100 - ((this._y - _root.player01._y) / 5);
this._x = _root.player01._x;
this._y = _root.pos_box._y + 500;
this._gotoAndPlay(1);
Symbol 198 MovieClip Frame 1
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 5;
}
Symbol 198 MovieClip Frame 10
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 30;
}
Symbol 198 MovieClip Frame 45
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 50;
}
Symbol 198 MovieClip Frame 46
_root.p_shot_num++;
_root.p_shot_box.attachMovie("p_msl01", "p_shot_sub" + _root.p_shot_num, 100 + _root.p_shot_num);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._xscale = 50;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._yscale = 50;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].spd = random(80);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].time = 0;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].hit_flg = 0;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._y = (_root.p_pos_y + (_root.player01.p1_main.p1_wep_arm._y / 2)) - 15;
if (0 < _parent._parent._xscale) {
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._x = _root.p_pos_x + (_root.player01.p1_main.p1_wep_arm._x / 2);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._rotation = _root.player01.p1_main.p1_wep_arm._rotation + 180;
}
if (_parent._parent._xscale < 0) {
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._x = _root.p_pos_x - (_root.player01.p1_main.p1_wep_arm._x / 2);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._rotation = -_root.player01.p1_main.p1_wep_arm._rotation;
}
Symbol 214 MovieClip Frame 1
if (_root.p_anime_cnt < 270) {
_parent.p1_wep_arm._rotation = _root.wep_arm_rot;
_parent.p1_head._rotation = _root.p_head_rot;
}
Symbol 214 MovieClip Frame 2
if (_root.p_anime_cnt < 270) {
_parent.p1_wep_arm._rotation = _root.wep_arm_rot;
_parent.p1_head._rotation = _root.p_head_rot;
}
this._gotoAndPlay(1);
Symbol 229 MovieClip Frame 1
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 5;
}
Symbol 229 MovieClip Frame 10
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 30;
}
Symbol 229 MovieClip Frame 45
if (_root.shot_flg == 0) {
_root.wep_anime_cnt = 50;
}
Symbol 229 MovieClip Frame 46
_root.p_shot_num++;
_root.p_shot_box.attachMovie("p_msl01", "p_shot_sub" + _root.p_shot_num, 100 + _root.p_shot_num);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._xscale = 50;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._yscale = 50;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].spd = random(80);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].time = 0;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].hit_flg = 0;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._y = (_root.p_pos_y + (_root.player01.p1_main.p1_wep_arm._y / 2)) - 15;
if (0 < _parent._parent._xscale) {
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._x = _root.p_pos_x + (_root.player01.p1_main.p1_wep_arm._x / 2);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._rotation = _root.player01.p1_main.p1_wep_arm._rotation + 180;
}
if (_parent._parent._xscale < 0) {
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._x = _root.p_pos_x - (_root.player01.p1_main.p1_wep_arm._x / 2);
_root.p_shot_box["p_shot_sub" + _root.p_shot_num]._rotation = -_root.player01.p1_main.p1_wep_arm._rotation;
}
Symbol 230 MovieClip Frame 1
if (_root.p_anime_cnt < 270) {
_parent.p1_wep_arm._rotation = _root.wep_arm_rot;
_parent.p1_head._rotation = _root.p_head_rot;
}
Symbol 230 MovieClip Frame 2
if (_root.p_anime_cnt < 270) {
_parent.p1_wep_arm._rotation = _root.wep_arm_rot;
_parent.p1_head._rotation = _root.p_head_rot;
}
this._gotoAndPlay(1);
Symbol 240 MovieClip Frame 60
_root.p_anime_cnt = 1;
Symbol 240 MovieClip Frame 90
_root.p_anime_cnt = 70;
Symbol 240 MovieClip Frame 120
_root.p_anime_cnt = 100;
Symbol 240 MovieClip Frame 140
_root.p_anime_cnt = 135;
Symbol 240 MovieClip Frame 150
_root.p_anime_cnt = 1;
Symbol 240 MovieClip Frame 165
_root.p_anime_cnt = 160;
Symbol 240 MovieClip Frame 175
_root.p_anime_cnt = 1;
Symbol 240 MovieClip Frame 195
_root.p_anime_cnt = 190;
Symbol 240 MovieClip Frame 205
_root.p_anime_cnt = 200;
Symbol 240 MovieClip Frame 220
_root.p_anime_cnt = 1;
Symbol 240 MovieClip Frame 280
if (0 < _root.p_mov_y) {
_root.p_anime_cnt = 275;
}
Symbol 240 MovieClip Frame 290
if (_root.p_mov_y < 0) {
_root.p_anime_cnt = 285;
}
Symbol 240 MovieClip Frame 315
if (_root.p_mov_x != 0) {
_root.p_anime_cnt = 310;
}
Symbol 240 MovieClip Frame 330
if (_root.p_mov_y < 0) {
_root.p_anime_cnt = 285;
}
Symbol 241 MovieClip Frame 1
_root.p_anime_cnt++;
if (330 < _root.p_anime_cnt) {
_root.p_anime_cnt = 1;
}
if (_root.p_flg == 1) {
if (_root.shot_flg == 0) {
if (this.p1_main.p1_wep_arm._currentframe < _root.p_wep_end[_root.p_wep_num]) {
_root.wep_anime_cnt++;
if (this.p1_main.p1_wep_arm._currentframe < _root.p_wep_start[_root.p_wep_num]) {
_root.wep_anime_cnt = _root.p_wep_end[_root.p_wep_num];
}
} else if (this.p1_main.p1_wep_arm._currentframe >= _root.p_wep_end[_root.p_wep_num]) {
_root.wep_anime_cnt = _root.p_wep_end[_root.p_wep_num];
}
} else if (_root.shot_flg == 1) {
if (_root.p_anime_cnt < 255) {
if (_root.p_wep_num != 3) {
_root.wep_anime_cnt++;
if (this.p1_main.p1_wep_arm._currentframe >= _root.p_wep_end[_root.p_wep_num]) {
_root.wep_anime_cnt = _root.p_wep_start[_root.p_wep_num];
}
}
if (_root.p_wep_num == 3) {
_root.wep_anime_cnt++;
if (this.p1_main.p1_wep_arm._currentframe >= _root.p_wep_end[_root.p_wep_num]) {
_root.wep_anime_cnt = _root.p_wep_start[_root.p_wep_num];
}
}
} else if (_root.anime_flg >= 90) {
_root.wep_anime_cnt = _root.p_wep_end[_root.p_wep_num];
}
}
this._yscale = 31;
if (_root.p_sight._x < this._x) {
_root.sight_pos = 0;
}
if (_root.p_sight._x >= this._x) {
_root.sight_pos = 1;
}
if (_root.anime_flg < 90) {
if (_root.sight_pos == 0) {
this._xscale = 31;
}
if (_root.sight_pos == 1) {
this._xscale = -31;
}
}
if (0 < _root.dash_cnt) {
_root.dash_cnt--;
}
if (Key.isDown(Key.LEFT)) {
_root.key_l = 1;
} else if (!Key.isDown(Key.LEFT)) {
_root.key_l = 0;
}
if (Key.isDown(Key.RIGHT)) {
_root.key_r = 1;
} else if (!Key.isDown(Key.RIGHT)) {
_root.key_r = 0;
}
if (Key.isDown(Key.UP)) {
_root.key_u = 1;
} else if (!Key.isDown(Key.UP)) {
_root.key_u = 0;
}
if (Key.isDown(Key.DOWN)) {
_root.key_d = 1;
} else if (!Key.isDown(Key.DOWN)) {
_root.key_d = 0;
}
if (_root.key_u == 1) {
if (_root.jump_cnt < _root.jump_max) {
if ((_root.jump_cnt * 3) >= _root.p_bp) {
_root.jump_cnt = 0;
} else if ((_root.jump_cnt * 3) < _root.p_bp) {
_root.jump_cnt = _root.jump_cnt + _root.jump_charge;
}
}
} else if (_root.key_u == 0) {
if (0 < _root.jump_cnt) {
_root.jump_pw = _root.jump_cnt;
_root.jump_cnt = 0;
_root.anime_flg = 3;
}
}
}
if (_root.anime_flg < 90) {
if ((_root.key_l == 0) && (_root.key_r == 0)) {
if (_root.dash_tlg != 0) {
_root.dash_tlg = 0;
}
if (_root.jump_flg == 0) {
_root.dash_flg = 0;
if (0 >= _root.jump_pw) {
_root.anime_flg = 0;
}
}
if (_root.jump_flg == 1) {
_root.dash_flg = 0;
}
} else if ((_root.key_l == 1) && (_root.key_r == 1)) {
if (_root.dash_tlg != 0) {
_root.dash_tlg = 0;
}
if (_root.jump_flg == 0) {
_root.dash_flg = 0;
if (0 >= _root.jump_pw) {
_root.anime_flg = 0;
}
}
if (_root.jump_flg == 1) {
_root.dash_flg = 0;
}
_root.dash_cnt = 0;
} else if ((_root.key_l == 1) && (_root.key_r == 0)) {
if (_root.dash_flg == 2) {
_root.dash_flg = 0;
}
if ((_root.dash_flg == 0) && (_root.jump_pw == 0)) {
_root.anime_flg = 1;
}
if (_root.dash_tlg == 0) {
if (0 < _root.dash_cnt) {
_root.dash_flg = 1;
_root.dash_tlg = 1;
} else {
_root.dash_cnt = 15;
_root.dash_tlg = 1;
}
}
} else if ((_root.key_r == 1) && (_root.key_l == 0)) {
if (_root.dash_flg == 1) {
_root.dash_flg = 0;
}
if ((_root.dash_flg == 0) && (_root.jump_pw == 0)) {
_root.anime_flg = 2;
}
if (_root.dash_tlg == 0) {
if (0 < _root.dash_cnt) {
_root.dash_flg = 2;
_root.dash_tlg = 2;
} else {
_root.dash_cnt = 15;
_root.dash_tlg = 1;
}
}
}
}
if (_root.dash_flg == 1) {
if (_root.anime_flg != 3) {
_root.anime_flg = 11;
}
}
if (_root.dash_flg == 2) {
if (_root.anime_flg != 3) {
_root.anime_flg = 12;
}
}
if ((_root.jump_flg == 1) && (_root.anime_flg < 90)) {
if (_root.dash_flg == 0) {
if (0 >= _root._root.jump_pw) {
_root.anime_flg = 4;
}
if (0 < _root._root.jump_pw) {
_root.anime_flg = 3;
}
}
}
if ((this.p1_main._currentframe >= 0) && (60 >= this.p1_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;
}
_root.p_mov_y = 0;
if ((_root.anime_flg == 90) || (_root.anime_flg == 91)) {
_root.p_anime_cnt = 270;
}
if (_root.anime_flg == 11) {
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg == 12) {
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 182;
}
if (((_root.anime_flg == 1) && (_root.sight_pos == 0)) || ((_root.anime_flg == 2) && (_root.sight_pos == 1))) {
_root.p_anime_cnt = 65;
}
if (((_root.anime_flg == 1) && (_root.sight_pos == 1)) || ((_root.anime_flg == 2) && (_root.sight_pos == 0))) {
_root.p_anime_cnt = 95;
}
}
if ((this.p1_main._currentframe >= 65) && (90 >= this.p1_main._currentframe)) {
if ((_root.anime_flg == 90) || (_root.anime_flg == 91)) {
_root.p_anime_cnt = 270;
}
if (_root.anime_flg == 11) {
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg == 12) {
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 182;
}
if (_root.anime_flg == 0) {
_root.p_anime_cnt = 1;
}
if ((_root.anime_flg == 1) && (_root.sight_pos == 1)) {
_root.p_anime_cnt = 95;
} else if ((_root.anime_flg == 2) && (_root.sight_pos == 0)) {
_root.p_anime_cnt = 95;
}
if (_root.anime_flg == 1) {
if (_root.p_mov_x < _root.p_max_x) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if (_root.p_max_x < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
}
if (_root.anime_flg == 2) {
if ((-_root.p_max_x) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.p_mov_x < (-_root.p_max_x)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
}
}
if ((this.p1_main._currentframe >= 95) && (120 >= this.p1_main._currentframe)) {
if ((_root.anime_flg == 90) || (_root.anime_flg == 91)) {
_root.p_anime_cnt = 270;
}
if (_root.anime_flg == 11) {
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 127;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 152;
}
}
if (_root.anime_flg == 12) {
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 127;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 152;
}
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 182;
}
if (_root.anime_flg == 0) {
_root.p_anime_cnt = 1;
}
if ((_root.anime_flg == 1) && (_root.sight_pos == 0)) {
_root.p_anime_cnt = 65;
} else if ((_root.anime_flg == 2) && (_root.sight_pos == 1)) {
_root.p_anime_cnt = 65;
}
if (_root.anime_flg == 1) {
if (_root.p_mov_x < (_root.p_max_x * 0.7)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if ((_root.p_max_x * 0.7) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
}
if (_root.anime_flg == 2) {
if (((-_root.p_max_x) * 0.7) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.p_mov_x < ((-_root.p_max_x) * 0.7)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
}
}
if ((this.p1_main._currentframe >= 120) && (175 >= this.p1_main._currentframe)) {
if (_root.dash_flg == 1) {
if ((_root.p_anime_cnt == 134) || (_root.p_anime_cnt == 159)) {
_root.p_bp = _root.p_bp - 20;
_root.p_mov_x = _root.p_max_x * 6;
}
}
if (_root.dash_flg == 2) {
if ((_root.p_anime_cnt == 134) || (_root.p_anime_cnt == 159)) {
_root.p_bp = _root.p_bp - 20;
_root.p_mov_x = (-_root.p_max_x) * 6;
}
}
if (_root.anime_flg == 3) {
_root.dash_flg = 0;
_root.p_anime_cnt = 183;
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
_root.p_bp = _root.p_bp - 5;
if ((this.p1_main._currentframe >= 135) && (this.p1_main._currentframe < 140)) {
if (_root.p_mov_y < (_root.p_max_y / 3)) {
_root.p_mov_y = _root.p_mov_y + 3;
}
if (0 >= _root.p_bp) {
_root.jump_cnt = 0;
_root.dash_flg = 0;
}
if (_root.dash_flg == 0) {
_root.p_anime_cnt = 141;
}
if (_root.dash_flg == 1) {
if ((_root.p_max_x * 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.p_mov_x < (_root.p_max_x * 2)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 159;
}
}
if (_root.dash_flg == 2) {
if (_root.p_mov_x < ((-_root.p_max_x) * 2)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if (((-_root.p_max_x) * 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 159;
}
}
}
if ((this.p1_main._currentframe >= 160) && (this.p1_main._currentframe < 165)) {
if (_root.p_mov_y < (_root.p_max_y / 3)) {
_root.p_mov_y = _root.p_mov_y + 5;
}
if (0 >= _root.p_bp) {
_root.jump_cnt = 0;
_root.dash_flg = 0;
}
if (_root.dash_flg == 0) {
_root.p_anime_cnt = 166;
}
if (_root.dash_flg == 1) {
if ((_root.p_max_x * 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.p_mov_x < (_root.p_max_x * 2)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 134;
}
} else if (_root.dash_flg == 2) {
if (_root.p_mov_x < ((-_root.p_max_x) * 2)) {
_root.p_mov_x = _root.p_mov_x + _root.p_v_x;
}
if (((-_root.p_max_x) * 2) < _root.p_mov_x) {
_root.p_mov_x = _root.p_mov_x - _root.p_v_x;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 134;
}
}
}
if ((140 < this.p1_main._currentframe) && (150 >= this.p1_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.1;
}
if ((165 < this.p1_main._currentframe) && (175 >= this.p1_main._currentframe)) {
_root.p_mov_x = _root.p_mov_x / 1.1;
}
}
if ((this.p1_main._currentframe >= 180) && (this.p1_main._currentframe < 220)) {
if ((_root.anime_flg == 90) || (_root.anime_flg == 91)) {
_root.p_anime_cnt = 270;
}
if (_root.anime_flg == 11) {
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg == 12) {
if (_root.sight_pos == 1) {
_root.p_anime_cnt = 128;
}
if (_root.sight_pos == 0) {
_root.p_anime_cnt = 153;
}
}
if (_root.anime_flg < 90) {
if ((this.p1_main._currentframe >= 180) && (this.p1_main._currentframe < 190)) {
if (_root.p_anime_cnt == 189) {
_root.p_mov_y = _root.jump_pw;
_root.p_bp = _root.p_bp - (_root.jump_pw * 3);
_root.jump_pw = 0;
}
}
if ((this.p1_main._currentframe >= 190) && (195 >= this.p1_main._currentframe)) {
_root.anime_flg = 35;
if ((_root.p_max_x / 2) < _root.p_mov_x) {
if (_root.key_l == 0) {
_root.p_mov_x--;
}
}
if (_root.p_mov_x < ((-_root.p_max_x) / 2)) {
if (_root.key_r == 0) {
_root.p_mov_x++;
}
}
if (0 >= _root.p_mov_y) {
_root.anime_flg = 4;
}
if (0 < _root.jump_pw) {
_root.anime_flg = 3;
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 183;
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
}
if ((this.p1_main._currentframe >= 200) && (205 >= this.p1_main._currentframe)) {
if ((_root.p_max_x / 2) < _root.p_mov_x) {
if (_root.key_l == 0) {
_root.p_mov_x--;
}
}
if (_root.p_mov_x < ((-_root.p_max_x) / 2)) {
if (_root.key_r == 0) {
_root.p_mov_x++;
}
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 185;
}
if (_root.jump_flg == 0) {
_root.anime_flg = 5;
}
if (_root.anime_flg == 5) {
_root.p_anime_cnt = 206;
}
}
if ((205 < this.p1_main._currentframe) && (220 >= this.p1_main._currentframe)) {
if (0 < _root.jump_pw) {
_root.anime_flg = 3;
}
if (_root.anime_flg == 4) {
_root.p_anime_cnt = 196;
}
if (_root.anime_flg == 3) {
_root.p_anime_cnt = 183;
}
_root.p_mov_x = _root.p_mov_x / 1.1;
_root.p_mov_y = 0;
}
}
}
if ((this.p1_main._currentframe >= 270) && (330 >= this.p1_main._currentframe)) {
if (_root.anime_flg == 90) {
this._xscale = -31;
}
if (_root.anime_flg == 91) {
this._xscale = 31;
}
if ((this.p1_main._currentframe >= 310) && (330 >= this.p1_main._currentframe)) {
if ((_root.anime_flg == 90) && (0 < _root.p_mov_x)) {
_root.p_mov_x = _root.p_mov_x - 1;
}
if ((_root.anime_flg == 91) && (_root.p_mov_x < 0)) {
_root.p_mov_x = _root.p_mov_x + 1;
}
if ((-1 < _root.p_mov_x) && (_root.p_mov_x < 1)) {
_root.p_mov_x = 0;
}
}
if (_root.p_anime_cnt == 271) {
_root.p_mov_y = _root.hit_mov_y;
_root.p_mov_x = _root.hit_mov_x;
_root.hit_mov_y = 0;
_root.hit_mov_x = 0;
_root.jump_pw = 0;
}
if (275 < _root.p_anime_cnt) {
if (_root.anime_flg == 3) {
_root.efct_num++;
_root.p_shot_box.sw01(_root.p_pos_x, _root.p_pos_y, 100, 100);
_root.p_anime_cnt = 188;
}
}
if (_root.p_anime_cnt >= 330) {
_root.anime_flg = 0;
}
}
if (_root.p_flg != 1) {
_root.wep_anime_cnt = _root.p_wep_end[_root.p_wep_num];
if (_root.p_anime_cnt >= 314) {
_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_flg = 2;
}
_root.p_anime_cnt = 315;
} else if (_root.p_anime_cnt < 270) {
_root.p_anime_cnt = 271;
}
}
if (_root.p_anime_cnt < 255) {
if (_root.sight_pos == 1) {
_root.p_head_rot = (Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2))) / (Math.PI/180)) - 100;
_root.wep_arm_rot = (Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2))) / (Math.PI/180)) - 92;
}
if (_root.sight_pos == 0) {
_root.p_head_rot = ((-Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2)))) / (Math.PI/180)) - 100;
_root.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2)))) / (Math.PI/180)) - 92;
}
if (40 < _root.p_head_rot) {
_root.p_head_rot = 40;
}
if (_root.p_head_rot < -40) {
_root.p_head_rot = -40;
}
}
this.p1_main.gotoAndStop(_root.p_anime_cnt);
this.p1_main.p1_wep_arm.gotoAndStop(_root.wep_anime_cnt);
this.p1_main.p1_wep_arm._x = this.p1_main.wep_arm_pos._x;
this.p1_main.p1_wep_arm._y = this.p1_main.wep_arm_pos._y;
this.p1_main.p1_head._x = this.p1_main.head_pos._x;
this.p1_main.p1_head._y = this.p1_main.head_pos._y;
_root.p_pos_x = _root.p_pos_x - _root.p_mov_x;
_root.p_pos_y = _root.p_pos_y - _root.p_mov_y;
if (_root.jump_flg == 1) {
if (_root.p_max_y < _root.p_mov_y) {
_root.p_mov_y = _root.p_mov_y - _root.p_v_y;
}
}
if (_root.p_pos_y < -1000) {
_root.p_mov_y = _root.p_mov_y - 3;
}
if (_root.p_pos_x < 0) {
if (0 < _root.p_mov_x) {
_root.p_mov_x = 0;
}
_root.p_pos_x = 0;
}
if (5000 < _root.p_pos_x) {
if (_root.p_mov_x < 0) {
_root.p_mov_x = 0;
}
_root.p_pos_x = 5000;
}
Symbol 241 MovieClip Frame 2
if (this.p1_main.p1_wep_arm._currentframe == 2) {
_root.p_shot_num++;
_root.p_shot_pos.attachMovie("p_shot_01", "p_shot_sub" + _root.p_shot_num, 100 + _root.p_shot_num);
if (0 < this._xscale) {
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._x = this.p1_main.p1_wep_arm._x / 3;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._rotation = this.p1_main.p1_wep_arm._rotation + 180;
}
if (this._xscale < 0) {
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._x = (-this.p1_main.p1_wep_arm._x) / 3;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._rotation = -this.p1_main.p1_wep_arm._rotation;
}
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._y = (this.p1_main.p1_wep_arm._y / 3) - 10;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._xscale = 200;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._yscale = 20;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].shot_spd = 50;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].time = 0;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].hit_flg = 0;
}
if (this.p1_main.p1_wep_arm._currentframe == 11) {
i = 0;
while (i < 7) {
_root.p_shot_num++;
_root.p_shot_pos.attachMovie("p_shot_01", "p_shot_sub" + _root.p_shot_num, 100 + _root.p_shot_num);
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._xscale = 80 + random(50);
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._yscale = 10 + random(20);
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].shot_spd = 50 + random(50);
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].time = 0;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num].hit_flg = 0;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._y = (this.p1_main.p1_wep_arm._y / 3) - 10;
j = random(40) - 20;
_root.p_shot_box["p_shot_sub" + _root.p_shot_num].m_s = random(10) - 5;
if (0 < this._xscale) {
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._x = this.p1_main.p1_wep_arm._x / 3;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._rotation = (_root.player01.p1_main.p1_wep_arm._rotation + 180) + j;
}
if (this._xscale < 0) {
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._x = (-this.p1_main.p1_wep_arm._x) / 3;
_root.p_shot_pos["p_shot_sub" + _root.p_shot_num]._rotation = (-_root.player01.p1_main.p1_wep_arm._rotation) - j;
}
i++;
}
}
if (_root.efct_switch == 1) {
if ((this.p1_main._currentframe >= 0) && (60 >= this.p1_main._currentframe)) {
if (_root.p_mov_x != 0) {
if (_root.jump_flg == 0) {
_root.efct_num++;
efct_num = _root.efct_num;
if ((efct_num % 3) == 0) {
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 70 + random(50), 70 + random(50), 120 - random(240));
}
}
}
}
if (_root.jump_flg == 0) {
if ((_root.p_anime_cnt >= 130) && (180 >= _root.p_anime_cnt)) {
_root.efct_num++;
efct_num = _root.efct_num;
if ((efct_num % 3) == 0) {
if (_root.dash_flg == 1) {
_root.p_shot_box.smoke01(_root.p_pos_x, _root.p_pos_y, 100, 100, random(50));
}
if (_root.dash_flg == 2) {
_root.p_shot_box.smoke01(_root.p_pos_x, _root.p_pos_y, -100, 100, -random(50));
}
}
}
if ((_root.p_anime_cnt >= 125) && (_root.p_anime_cnt < 130)) {
_root.efct_num++;
efct_num = _root.efct_num;
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 150, 150, 50 - random(100));
}
}
if (_root.jump_flg == 0) {
if ((_root.p_anime_cnt >= 185) && (189 >= _root.p_anime_cnt)) {
_root.efct_num++;
efct_num = _root.efct_num;
if ((efct_num % 3) == 0) {
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 100 + random(50), 100 + random(50), 30 - random(60));
}
}
}
if (_root.jump_flg == 0) {
if ((_root.p_anime_cnt >= 205) && (220 >= _root.p_anime_cnt)) {
_root.efct_num++;
efct_num = _root.efct_num;
if ((efct_num % 3) == 0) {
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 70 + random(50), 70 + random(50), 120 - random(240));
}
}
}
if (_root.jump_flg == 0) {
if ((((_root.p_anime_cnt == 75) || (_root.p_anime_cnt == 85)) || (_root.p_anime_cnt == 105)) || (_root.p_anime_cnt == 115)) {
_root.efct_num++;
efct_num = _root.efct_num;
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 80, 50, 0);
}
}
if ((290 < this.p1_main._currentframe) && (314 >= this.p1_main._currentframe)) {
_root.efct_num++;
efct_num = _root.efct_num;
if ((efct_num % 3) == 0) {
_root.p_shot_box.smoke02(_root.p_pos_x, _root.p_pos_y, 70 + random(50), 70 + random(50), 60 - random(120));
}
}
}
if (_root.sight_pos == 1) {
_root.p_head_rot = (Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - this._y) / (Math.PI/180)) - 100;
_root.wep_arm_rot = (Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2))) / (Math.PI/180)) - 92;
}
if (_root.sight_pos == 0) {
_root.p_head_rot = ((-Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - this._y)) / (Math.PI/180)) - 100;
_root.wep_arm_rot = ((-Math.atan2(_root.p_sight._x - this._x, _root.p_sight._y - (this._y + (this.p1_main.wep_arm_pos._y / 2)))) / (Math.PI/180)) - 92;
}
if (40 < _root.p_head_rot) {
_root.p_head_rot = 40;
}
if (_root.p_head_rot < -40) {
_root.p_head_rot = -40;
}
this.p1_main.p1_wep_arm._x = this.p1_main.wep_arm_pos._x;
this.p1_main.p1_wep_arm._y = this.p1_main.wep_arm_pos._y;
this.p1_main.p1_head._x = this.p1_main.head_pos._x;
this.p1_main.p1_head._y = this.p1_main.head_pos._y;
this.gotoAndPlay(1);
Symbol 243 MovieClip Frame 2
this._x = _root.player01._x;
this._y = _root.player01._y;
Symbol 243 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 245 MovieClip Frame 1
function msl_mark(num) {
this.attachMovie("msl_mark", "m_m" + num, 310 + num);
this["m_m" + num]._x = _root.player01._x;
this["m_m" + num]._y = _root.player01._y - 50;
this["m_m" + num]._xscale = 100;
this["m_m" + num]._yscale = 100;
this["m_m" + num].num = num;
this["m_m" + num].hit = 0;
}
function smoke01(pos_x, pos_y, xscale, yscale, rotation) {
this.attachMovie("smoke_dash01", "efct" + _root.efct_num, 10 + _root.efct_num);
this["efct" + _root.efct_num]._x = pos_x;
this["efct" + _root.efct_num]._y = pos_y;
this["efct" + _root.efct_num]._xscale = xscale;
this["efct" + _root.efct_num]._yscale = yscale;
this["efct" + _root.efct_num]._rotation = rotation;
this["efct" + _root.efct_num].num = _root.efct_num;
}
function smoke02(pos_x, pos_y, xscale, yscale, rotation) {
this.attachMovie("smoke_jump01", "efct" + _root.efct_num, 10 + _root.efct_num);
this["efct" + _root.efct_num]._x = pos_x;
this["efct" + _root.efct_num]._y = pos_y;
this["efct" + _root.efct_num]._xscale = xscale;
this["efct" + _root.efct_num]._yscale = yscale;
this["efct" + _root.efct_num]._rotation = rotation;
this["efct" + _root.efct_num].num = _root.efct_num;
}
function smoke03(pos_x, pos_y, xscale, yscale, rotation) {
this.attachMovie("smoke_other01", "efct" + _root.efct_num, 10 + _root.efct_num);
this["efct" + _root.efct_num]._x = pos_x;
this["efct" + _root.efct_num]._y = pos_y;
this["efct" + _root.efct_num]._xscale = xscale;
this["efct" + _root.efct_num]._yscale = yscale;
this["efct" + _root.efct_num]._rotation = rotation;
this["efct" + _root.efct_num].num = _root.efct_num;
}
function sw01(pos_x, pos_y, xscale, yscale) {
this.attachMovie("efct_sw01", "efct" + _root.efct_num, 10 + _root.efct_num);
this["efct" + _root.efct_num]._x = pos_x;
this["efct" + _root.efct_num]._y = pos_y;
this["efct" + _root.efct_num]._xscale = xscale;
this["efct" + _root.efct_num]._yscale = yscale;
this["efct" + _root.efct_num]._rotation = rotation;
this["efct" + _root.efct_num].num = _root.efct_num;
}
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
Symbol 245 MovieClip Frame 2
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
if (!Key.isDown(Key.SPACE)) {
_root.weptlg = 0;
}
if (Key.isDown(Key.SPACE)) {
if (_root.weptlg == 0) {
_root.p_wep_num++;
_root.weptlg = 1;
}
}
if (1 < _root.efct_switch) {
_root.efct_switch = 0;
}
if (!Key.isDown(Key.ENTER)) {
_root.efcttlg = 0;
}
if (Key.isDown(Key.ENTER)) {
if (_root.efcttlg == 0) {
_root.efct_switch++;
_root.efcttlg = 1;
}
}
if (3 < _root.p_wep_num) {
_root.p_wep_num = 1;
}
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
if (500 < _root.smoke_num) {
_root.smoke_num = 0;
}
if (40 < _root.efct_num) {
_root.efct_num = 0;
}
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
Symbol 245 MovieClip Frame 3
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
if (3 < _root.p_wep_num) {
_root.p_wep_num = 1;
}
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
if (500 < _root.smoke_num) {
_root.smoke_num = 0;
}
if (40 < _root.efct_num) {
_root.efct_num = 0;
}
if (20 < _root.p_shot_num) {
_root.p_shot_num = 0;
}
this.gotoAndPlay(2);
Symbol 247 MovieClip Frame 1
function e_lock01(pos_x, pos_y, num) {
this.attachMovie("e_lock01", "e_lock" + num, 50 + num);
this["e_lock" + num]._x = pos_x;
this["e_lock" + num]._y = pos_y;
this["e_lock" + num]._xscale = 62;
this["e_lock" + num]._yscale = 62;
this["e_lock" + num].lock_flg = 0;
this["e_lock" + num].time = 0;
this["e_lock" + num].num = num;
}
function e_shot01(pos_x, pos_y, xscale, yscale, rot, spd, num) {
this.attachMovie("e_shot01", "e_shot" + num, 150 + num);
this["e_shot" + num]._x = pos_x;
this["e_shot" + num]._y = pos_y;
this["e_shot" + num]._xscale = xscale;
this["e_shot" + num]._yscale = yscale;
this["e_shot" + num]._rotation = rot;
this["e_shot" + num].time = 0;
this["e_shot" + num].hit = 0;
this["e_shot" + num].spd = spd;
this["e_shot" + num].num = num;
}
function e_msl01(pos_x, pos_y, rotation, num) {
this.attachMovie("e_msl01", "e_msl" + num, 300 + num);
this["e_msl" + num]._x = pos_x;
this["e_msl" + num]._y = pos_y;
this["e_msl" + num]._xscale = 62;
this["e_msl" + num]._yscale = 62;
this["e_msl" + num]._rotation = rotation;
this["e_msl" + num].num = num;
this["e_msl" + num].hit = 0;
_root.p_shot_box.msl_mark(num);
}
function e_bom01(pos_x, pos_y, num) {
this.attachMovie("e_bom01", "e_bom" + num, 300 + num);
this["e_bom" + num]._x = pos_x;
this["e_bom" + num]._y = pos_y;
this["e_bom" + num]._xscale = 62;
this["e_bom" + num]._yscale = 62;
this["e_bom" + num]._rotation = rotation;
this["e_bom" + num].num = num;
this["e_bom" + num].hit = 0;
}
Symbol 247 MovieClip Frame 2
if (_root.e_shot_num >= 15) {
_root.e_shot_num = 0;
}
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
Symbol 247 MovieClip Frame 3
if (15 < _root.e_shot_num) {
_root.e_shot_num = 0;
}
this._x = _root.pos_box._x;
this._y = _root.pos_box._y;
this.gotoAndPlay(2);
Symbol 250 MovieClip Frame 1
function e_point(num, xscale, yscale) {
this.attachMovie("e_point", "e_p" + num, 500 + num);
this["e_p" + num]._x = -50;
this["e_p" + num]._y = -50;
this["e_p" + num]._xscale = xscale;
this["e_p" + num]._yscale = yscale;
this["e_p" + num].num = num;
}
Symbol 250 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 266 MovieClip Frame 1
this.p_cp_bar._yscale = (_root.jump_cnt / _root.jump_max) * 100;
this.p_hp_bar._xscale = (_root.p_hp / _root.p_hp_max) * 100;
this.p_bp_bar._xscale = (_root.p_bp / _root.p_bp_max) * 100;
if (_root.p_hp < 0) {
_root.p_flg = 0;
_root.p_hp = 0;
}
if (_root.p_bp < 0) {
_root.p_bp = 0;
}
if (_root.p_bp < _root.p_bp_max) {
_root.p_bp = _root.p_bp + 1;
}
Symbol 266 MovieClip Frame 2
this.p_cp_bar._yscale = (_root.jump_cnt / _root.jump_max) * 100;
this.p_hp_bar._xscale = (_root.p_hp / _root.p_hp_max) * 100;
this.p_bp_bar._xscale = (_root.p_bp / _root.p_bp_max) * 100;
if (_root.p_hp < 0) {
_root.p_flg = 0;
_root.p_hp = 0;
}
if (_root.p_bp < 0) {
_root.p_bp = 0;
}
if (_root.p_bp < _root.p_bp_max) {
_root.p_bp++;
}
this.gotoAndPlay(1);
Symbol 298 MovieClip Frame 1
function combo(score) {
_root.combo_time = _root.combo_limit;
this._xscale = (this._yscale = 60);
_root.combo_cnt++;
_root.score_now = score * _root.combo_cnt;
_root.score = _root.score + _root.score_now;
}
if (_root.max_combo < _root.combo_cnt) {
_root.max_combo = _root.combo_cnt;
}
if (_root.combo_cnt >= 100) {
_root.combo_cnt = 99;
}
combo1 = (_root.combo_cnt % 10) + 1;
combo2 = (_root.combo_cnt / 10) + 1;
this.combo_nums1.gotoAndStop(combo1);
this.combo_nums2.gotoAndStop(combo2);
if (40 < this._xscale) {
this._xscale = (this._yscale = this._yscale - 2);
}
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;
}
}
_root.time_now++;
if (60 < _root.time_now) {
_root.time++;
_root.time_now = 0;
}
_root.t_score = _root.score + ((_root.time * _root.destroy_num) * _root.max_combo);
Symbol 298 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 302 MovieClip Frame 1
if (5 >= _root.p_pos_x) {
this._visible = 1;
} else if (_root.p_pos_x >= 4995) {
this._visible = 1;
} else {
this._visible = 0;
}
Symbol 302 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 331 MovieClip Frame 60
this.gotoAndPlay(1);