| 
 
| 赞 | 5 |  
| VIP | 464 |  
| 好人卡 | 4 |  
| 积分 | 5 |  
| 经验 | 14189 |  
| 最后登录 | 2020-6-13 |  
| 在线时间 | 972 小时 |  
 Lv2.观梦者 
	梦石0 星屑473 在线时间972 小时注册时间2007-12-31帖子2137 | 
| 本帖最后由 liqunsz 于 2010-8-31 22:01 编辑 
 自制了一个公共事件跑步的,MS不卡,加了几个无聊的方向判定
 
  RUN.rar
(215.39 KB, 下载次数: 170) 我记得有脚本跑步的,和这个意思是一样的,行走图后三栏加动感模糊,不要忘了方向问题囧
 Z键加速,对应键盘上的D键
 使用方法不是双击啊!是按住以后按方向键就可以跑步了
 
 经测试不卡,我的机子上保持40fps
 但是如果过多公共事件并行事件就不一定了
 
 #==========================================
 # 动感分割线
 # 以上为原创,以下为转载
 #==========================================
 
 
 行走图制作方法 by simon【和我提供在工程里面的有区别】
 Shift加速,在行走图后面要加上run,会自动调用的复制代码#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#============================================================================== 
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
 #--------------------------------------------------------------------------
 # ● フレーム更新
 #--------------------------------------------------------------------------
 alias old_update update
 def update
   unless $game_system.map_interpreter.running? or
     @move_route_forcing or $game_temp.message_window_showing
     if Input.press?(Input::SHIFT)
       if moving? 
         if @move_speed != 5
           @move_speed = 5
           @character_name_run = @character_name
           @character_name = @character_name + "run"
         end
       end
     else
       if @move_speed != 4
         @move_speed = 4
         @character_name = @character_name_run
       end
     end  
   end
   old_update
 end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#============================================================================== 
 
 不变化行走图的简易版
 复制代码#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
# ————————————————————————————————————
# 本脚本来自www.66rpg.com,转载请保留此信息
# ————————————————————————————————————
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  alias old_update update
  def update
    unless moving? or $game_system.map_interpreter.running? or
      @move_route_forcing or $game_temp.message_window_showing
      if Input.press?(Input::C)
      # 速度変更
        @move_speed = 5
      else
        @move_speed = 4
      end
    end
    old_update
  end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================
 | 
 评分
查看全部评分
 |