Project1
标题:
关于rpgmaker xp 的wasd键位重新设置与提高游戏内帧率的方法
[打印本页]
作者:
訚銄
时间:
2024-1-24 18:08
标题:
关于rpgmaker xp 的wasd键位重新设置与提高游戏内帧率的方法
由于对脚本实在一窍不通,插件也不会在rpgmaker上面用,虚心求教。
作者:
紫英晓狼1130
时间:
2024-3-26 21:27
本帖最后由 紫英晓狼1130 于 2024-3-26 21:28 编辑
WASD要配合全键盘脚本的,因为XP本身不判定这四个键位[line]1[/line]
以下是修改FPS的方法,不是改F2显示的那个帧率,是真的改FPS
Graphics.frame_rate = 60
请酌情修改
module Graphics
module_function
FPS_DLL = Win32API.new('kernel32','GetModuleHandleA','p','l').call('RGSS103J')
FPS_WPMPL = Win32API.new('kernel32','WriteProcessMemory','lplll','l')
FPS_WPMLP = Win32API.new('kernel32','WriteProcessMemory','llpll','l')
temp = "\0" * 4
FPS_WPMPL.call(-1, temp, FPS_DLL + 0x12B6C4, 4, 0)
FPS_FPS = temp.unpack("l")[0] + 0x124
def fps_unlimit(bool = true)
if bool
FPS_WPMLP.call(-1,FPS_DLL+0x1552B,"\xEB",1,0)
else
FPS_WPMLP.call(-1,FPS_DLL+0x1552B,"\x74",1,0)
end
end
def fps_render_always(bool = true)
if bool
FPS_WPMLP.call(-1,FPS_DLL+0x2AE4,"\xEB",1,0)
else
FPS_WPMLP.call(-1,FPS_DLL+0x2AE4,"\x7D",1,0)
end
end
def fps
f = "\0" * 4
FPS_WPMPL.call(-1, f, FPS_FPS, 4, 0)
(f.unpack("l")[0] + 500) / 1000
end
end
#FPS
Graphics.frame_rate = 60
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1