・概要
このEX
セイバーは、発動すると、「落下しながらの突き」を行う。
↓落下突き。
・loadの処理
・・速度
「・速度など」を参照。
ASのファイル:zero_load.txt
velocity_zero_ex_saber_falling_thrust_x=1 //EX落下突きの速度(x方向)
velocity_zero_ex_saber_falling_thrust_y=5.5 //EX落下突きの速度(y方向)
︙
・セイバーモーション
ASのファイル:zero_action_ex_saber_falling_thrust.txt
_parent.zero_AA.gotoAndStop("zero_AA_ex_saber_falling_thrust");zero_saber_AA.gotoAndStop("zero_ex_saber_AA_falling_thrust");zero_saber_hitrect.gotoAndStop("zero_ex_saber_hitrect_falling_thrust")
・速度など
・・概要
x方向の速度は、基本的には0となる。「・・落下」の「・・・x方向」におけるキー入力により、x方向の速度が付加される。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
_root.velocity_zero_x=0 //x方向の速度を0にする
y方向の速度は、「セイバーモーションの時間のカウント」によって、速度が変化する。
・・前動作
カウントが1の場合、上昇中の場合は、y方向の速度を0にする(=既に落下している場合は、速度を変化させない)。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(_root.count_zero_saber_time==1){ //カウントが1の場合
if(_root.velocity_zero_y<=0){_root.velocity_zero_y=0} //上昇中の場合,y方向の速度を0にする
}
・・落下
・・・概要
カウントが特定の値以上の場合は、落下に関する処理を行う。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
else if(_root.count_zero_saber_time>=7){ //カウントが特定の値以上の場合
︙
}
・・・y方向
y方向に関しては、一定の速度が付加され、等速で落下する。
ここでは、水との
接触判定がない場合のみを解説している。水との
接触判定がある場合は、
水を参照。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(_root.zero_hit_water==0){_root.velocity_zero_y=velocity_zero_ex_saber_falling_thrust_y} //等速で落下(水との接触判定がない場合)
・・・x方向
x方向に関しては、左右キーの入力により、速度が付加される。
この仕様は、ロックマンゼロ2に準拠している。
↓落下突き(右キーの入力がある場合)。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(keydown_right==1){_root.velocity_zero_x=velocity_zero_ex_saber_falling_thrust_x} //右キーの入力がある場合,速度を付加
else if(keydown_left==1){_root.velocity_zero_x=-velocity_zero_ex_saber_falling_thrust_x} //左キーの入力がある場合,速度を付加
・・セイバーモーションのストップ
カウントが特定の値の場合は、カウントを減少させる。
セイバー発動の「・
セイバーモーション(非チャージセイバー)」の「・・下入れセイバー」も参照。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(_root.count_zero_saber_time==9){ //カウントが特定の値の場合
_parent.zero_AA.zero_AA_ex_saber_falling_thrust.gotoAndStop(9);zero_saber_AA.zero_ex_saber_AA_falling_thrust.gotoAndStop(9);zero_saber_hitrect.zero_saber_hitrect_synthesis.gotoAndStop(9)
_root.count_zero_saber_time-- //カウントを減少させる
}
・他のアクションへの移行
・・通常状態への移行
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(_root.zero_hit_floor!=0 or _root.zero_hit_sloped_floor!=0 or (_root.zero_hit_sink!=0 and _root.velocity_zero_y>0)){ //床・傾斜床・沈む地形(下降中)との接触判定がある場合
︙
_root.zero_action="normal" //通常状態に移行
}
炎属性が付加されている場合は、拡散炎のMCを出現させる。
ASのファイル:zero_action_ex_saber_falling_thrust.txt
if(_root.zero_element_attachment_saber=="fire"){ //炎属性が付加されている場合
_root.board.attachMovie("zero_ex_saber_fire_falling_thrust_spread_flame",["zero_attack_"+_root.depth_zero_attack],_root.depth_zero_attack) //拡散炎のMCを出現させる
︙
}
最終更新:2020年12月19日 09:30