| 赞 | 0  | 
 
| VIP | 164 | 
 
| 好人卡 | 42 | 
 
| 积分 | 1 | 
 
| 经验 | 25008 | 
 
| 最后登录 | 2017-9-16 | 
 
| 在线时间 | 1141 小时 | 
 
 
 
 
 
Lv1.梦旅人 梦·贤者 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 1141 小时
 
        - 注册时间
 - 2007-12-15
 
        - 帖子
 - 4100
 
 
 
 | 
	
下面的脚本可以满足,但是操作手感不是很好。- class Game_Player
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 画面更新
 
 -   #--------------------------------------------------------------------------
 
 -   def update
 
 -     # 本地变量记录移动信息
 
 -     last_moving = moving?
 
 -     # 移动中、事件执行中、强制移动路线中、
 
 -     # 信息窗口一个也不显示的时候
 
 -     unless moving? or $game_system.map_interpreter.running? or
 
 -            @move_route_forcing or $game_temp.message_window_showing
 
 -       # 如果方向键被按下、主角就朝那个方向移动
 
 -       turn_left_90 if Input.trigger?(Input::LEFT)
 
 -       turn_right_90 if Input.trigger?(Input::RIGHT )
 
 -       case Input.dir4
 
 -       when 2
 
 -         move_backward
 
 -       when 8
 
 -         move_forward
 
 -       end
 
 -     end
 
 -     # 本地变量记忆坐标
 
 -     last_real_x = @real_x
 
 -     last_real_y = @real_y
 
 -     super
 
 -     # 角色向下移动、画面上的位置在中央下方的情况下
 
 -     if @real_y > last_real_y and @real_y - $game_map.display_y > CENTER_Y
 
 -       # 画面向下卷动
 
 -       $game_map.scroll_down(@real_y - last_real_y)
 
 -     end
 
 -     # 角色向左移动、画面上的位置在中央左方的情况下
 
 -     if @real_x < last_real_x and @real_x - $game_map.display_x < CENTER_X
 
 -       # 画面向左卷动
 
 -       $game_map.scroll_left(last_real_x - @real_x)
 
 -     end
 
 -     # 角色向右移动、画面上的位置在中央右方的情况下
 
 -     if @real_x > last_real_x and @real_x - $game_map.display_x > CENTER_X
 
 -       # 画面向右卷动
 
 -       $game_map.scroll_right(@real_x - last_real_x)
 
 -     end
 
 -     # 角色向上移动、画面上的位置在中央上方的情况下
 
 -     if @real_y < last_real_y and @real_y - $game_map.display_y < CENTER_Y
 
 -       # 画面向上卷动
 
 -       $game_map.scroll_up(last_real_y - @real_y)
 
 -     end
 
 -     # 不在移动中的情况下
 
 -     unless moving?
 
 -       # 上次主角移动中的情况
 
 -       if last_moving
 
 -         # 与同位置的事件接触就判定为事件启动
 
 -         result = check_event_trigger_here([1,2])
 
 -         # 没有可以启动的事件的情况下
 
 -         if result == false
 
 -           # 调试模式为 ON 并且按下 CTRL 键的情况下除外
 
 -           unless $DEBUG and Input.press?(Input::CTRL)
 
 -             # 遇敌计数下降
 
 -             if @encounter_count > 0
 
 -               @encounter_count -= 1
 
 -             end
 
 -           end
 
 -         end
 
 -       end
 
 -       # 按下 C 键的情况下
 
 -       if Input.trigger?(Input::C)
 
 -         # 判定为同位置以及正面的事件启动
 
 -         check_event_trigger_here([0])
 
 -         check_event_trigger_there([0,1,2])
 
 -       end
 
 -     end
 
 -   end
 
 - end
 
  复制代码 |   
 
 
 
 |