じ☆ve冰风 发表于 2026-7-10 17:06:11

Speed Up while pressing a button

There's a Japanese script that does more or less this, couldn't find one for xp, so I made one. Simple but useful for debugging and if you want to play fast

                Ruby:       
=begin=============================================================================== Speedup (by Zero_G) Version: RGSS=============================================================================== == Description == This script will change the game FPS (and thus the speed of the game) while a button is pressed.== Terms of Use == - Free for use in non-commercial projects with credits - Free for use in commercial projects - Please provide credits to Zero_G== Credits == -No one == Usage == Just add the plugin before main.-------------------------------------------------------------------------------=endmodule ZERO   SPEEDUP_KEY = Input::XSPEEDUP_AMOUNT = 120 # In FPS; 60 x2; 120 x4FRAME_RATE = Graphics.frame_rate # Default should be 30 in most gamesendclass Scene_Mapalias zero_update_speedup updatedef update    zero_update_speedup    if Input.press?(ZERO::SPEEDUP_KEY)      Graphics.frame_rate = 120    else      Graphics.frame_rate = ZERO::FRAME_RATE    endendendclass Scene_Battlealias speedup_battle_update updatedef update    if Input.press?(ZERO::SPEEDUP_KEY)      Graphics.frame_rate = 120    else      Graphics.frame_rate = ZERO::FRAME_RATE    end    speedup_battle_updateendend




本贴来自国际rpgmaker官方论坛作者:Zero_G处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/speed-up-while-pressing-a-button.127067/
页: [1]
查看完整版本: Speed Up while pressing a button