module Input #CASZ Tr = method("trigger?") def self.trigger?(input) if $scene.is_a?(Scene_Map) if input == Input::Q and $game_switches[27] $game_switches[27] = false return true end if input == Input::W and $game_switches[27] $game_switches[27] = false return true end if input == Input::A and $game_switches[27] $game_switches[27] = false return true end end if input == Input::D and $game_switches[27] $game_switches[27] = false return true end end if input == Input::S and $game_switches[27] $game_switches[27] = false return true end end Tr.call(input) end Pr = method("press?") def self.press?(input) if $scene.is_a?(Scene_Map) if input == Input::X and $game_switches[28] #A $game_switches[28] = false return true end end Pr.call(input) end end end
错误1.jpg (31.9 KB, 下载次数: 9)
我为鱼肉 发表于 2022-10-19 11:21
多了end或者少了end。
你没用紫英晓狼的调用虚拟按键吗????
金芒芒 发表于 2022-10-19 11:27
Q 81 81这个数值这么解释
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |