Hello.
I am struggling to create conditions for the "input".
My idea is to use all the keyboard letters, but to create conditions for "When pressed another button besides the determined".
use many "or" let the very large code.
Teste 1: Large line Code...
Test 2: Fail
Could someone help me?
I am struggling to create conditions for the "input".
My idea is to use all the keyboard letters, but to create conditions for "When pressed another button besides the determined".
use many "or" let the very large code.
Teste 1: Large line Code...
class Game_Player < Game_Character alias tms_base_update update def update tms_base_update if Input.trigger?🙂X) p "A" elsif Input.trigger?🙂A) or Input.trigger?🙂 or Input.trigger?🙂C) or Input.trigger?🙂Y) or Input.trigger?🙂Z) or Input.trigger?🙂Left) #continue... p "S or D" end endend
Test 2: Fail
class Game_Player < Game_Character alias tms_initialize initialize alias tms_base_update update def initialize tms_initialize @lyrics_off_X = [:A, :B, :C, :Y, :Z] @lyrics_off_Y = [:A, :B, :C, :X, :Z] @lyrics_off_Z = [:A, :B, :C, :X, :Y] end def update tms_base_update if Input.trigger?🙂X) p "A" elsif Input.trigger?(@lyrics_off_X) p "S or D" end endend