# # ダッシュカスタマイズ(RGSS2) #  (C)2008 TYPE74RX-T # # ※:カスタマイズポイント…15~16行目    (全て再定義) #============================================================================== # ★ RX_T #------------------------------------------------------------------------------ #  設定用 #============================================================================== module RX_T DashSpeed = 2 # ダッシュの速度 DashButton = Input::A # ダッシュに使うボタンの設定 end #============================================================================== # ■ Game_Character #------------------------------------------------------------------------------ #  キャラクターを扱うクラスです。このクラスは Game_Player クラスと Game_Event # クラスのスーパークラスとして使用されます。 #============================================================================== class Game_Character #-------------------------------------------------------------------------- # ● 移動時の更新 #-------------------------------------------------------------------------- def update_move distance = 2 ** @move_speed # 移動速度から移動距離に変換 distance *= RX_T::DashSpeed if dash? # ダッシュ状態ならさらに倍 @real_x = [@real_x - distance, @x * 256].max if @x * 256 < @real_x @real_x = [@real_x + distance, @x * 256].min if @x * 256 > @real_x @real_y = [@real_y - distance, @y * 256].max if @y * 256 < @real_y @real_y = [@real_y + distance, @y * 256].min if @y * 256 > @real_y update_bush_depth unless moving? if @walk_anime @anime_count += 1.5 elsif @step_anime @anime_count += 1 end end end #============================================================================== # ■ Game_Player #------------------------------------------------------------------------------ #  プレイヤーを扱うクラスです。イベントの起動判定や、マップのスクロールなどの # 機能を持っています。このクラスのインスタンスは $game_player で参照されます。 #============================================================================== class Game_Player < Game_Character #-------------------------------------------------------------------------- # ● ダッシュ状態判定 #-------------------------------------------------------------------------- def dash? return false if @move_route_forcing return false if $game_map.disable_dash? return false if in_vehicle? return Input.press?(RX_T::DashButton) end end