pocketwatch.jpg (373.25 KB, 下载次数: 6)
class Scene_Map attr_accessor :t, :timer, :spriteset alias lbq_pw_hack_start start def start lbq_pw_hack_start @window_time = Window_Time.new end alias lbq_pw_hack_update update def update lbq_pw_hack_update $game_system.update_timer if $game_system.timer % 1 == 0 p 123#如果你选择长按切菜单则这个123不会输出,否则一直输出 record end unless Input.press?(:X) || $game_switches[23] unless $game_switches[23] if $game_system.t.size / 60.0 >= 60 $game_switches[22] = true $game_switches[23] = true end end update_rewind @window_time.refresh @window_time.update end def record $game_system.t << GameData.new.pack $game_system.t.delete_at(0) if $game_system.t.size > 360 * 10 end def update_rewind if Input.press?(:X) rewind end end def rewind return if $game_system.t.empty? $game_system.t.last.unpack $game_system.t.delete($game_system.t.last) end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |