| 
 
| 赞 | 0 |  
| VIP | 177 |  
| 好人卡 | 10 |  
| 积分 | 1 |  
| 经验 | 12547 |  
| 最后登录 | 2017-8-1 |  
| 在线时间 | 193 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间193 小时注册时间2013-3-24帖子448 | 
| 本帖最后由 joe5491 于 2013-4-1 19:30 编辑 
 这个是按住shift跑步的脚本
 复制代码# Run
# by joe59491
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  alias xrxs25_update update
  def update
    # 移動中、イベント実行中、移動ルート強制中、
    # メッセージウィンドウ表示中のいずれでもない場合
    unless #moving? or $game_system.map_interpreter.running? or
           @move_route_forcing or $game_temp.message_window_showing
      if($xxx!=nil)
        $gx=$xxx
      end
      if($yyy!=nil)
        $gy=$yyy
      end
      $xxx=$game_player.x
      $yyy=$game_player.y  
      $sped=@move_speed
      if !$game_switches[20] 
        if Input.press?(Input::SHIFT)
          if @move_speed <  6 #最高速设定       # ( ($game_party.actors[0].agi+1665) / 333)  p.s.这是我原本用主角速度来判断最高速
            if ($gx!=$xxx or $gy!=$yyy)
            # 速度の変更
            @move_speed +=0.08  #加速度值,数字愈大,越快达到最高速
            end
          end
        else
          @move_speed = 4  #平常速度
        end
        if !$game_player.passable?($game_player.x, $game_player.y, $game_player.direction)
        @move_speed -= 0.1  #撞墙的减速度,即撞墙会是速度慢慢下降?
        if@move_speed < 4  #平常速度
        @move_speed = 4    #平常速度
        end
        end
      end
    end
    # 呼び戻す
    xrxs25_update
  end
end
 | 
 评分
查看全部评分
 |