class Game_Player
def move_by_input
return if !movable? || $game_map.interpreter.running?
move_straight(Input.move_sym) if Input.move_sym > 0
end
end
class << Input
@@move_sym = 0
def move_sym
@@move_sym
end
alias mfupdate update
def update
mfupdate
if press?(:R) || press?(:X) || press?(:Y) || press?(:Z)
@@move_sym = 8 if press?(:R)
@@move_sym = 4 if press?(:X)
@@move_sym = 2 if press?(:Y)
@@move_sym = 6 if press?(:Z)
else
@@move_sym = 0
end
end
end
class Game_Player
def move_by_input
return if !movable? || $game_map.interpreter.running?
move_straight(Input.move_sym) if Input.move_sym > 0
end
end
class << Input
@@move_sym = 0
def move_sym
@@move_sym
end
alias mfupdate update
def update
mfupdate
if press?(:R) || press?(:X) || press?(:Y) || press?(:Z)
@@move_sym = 8 if press?(:R)
@@move_sym = 4 if press?(:X)
@@move_sym = 2 if press?(:Y)
@@move_sym = 6 if press?(:Z)
else
@@move_sym = 0
end
end
end
def process_cursor_move
return unless cursor_movable?
last_index = @index
cursor_down (Input.trigger?(:DOWN)) if Input.repeat?(:DOWN)
cursor_up (Input.trigger?(:UP)) if Input.repeat?(:UP)
cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
cursor_left (Input.trigger?(:LEFT)) if Input.repeat?(:LEFT)
cursor_pagedown if !handle?(:pagedown) && Input.trigger?(:R)
cursor_pageup if !handle?(:pageup) && Input.trigger?(:L)
Sound.play_cursor if @index != last_index
end
def process_cursor_move
return unless cursor_movable?
last_index = @index
cursor_down (Input.trigger?(:DOWN)) if Input.repeat?(:DOWN)
cursor_up (Input.trigger?(:UP)) if Input.repeat?(:UP)
cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
cursor_left (Input.trigger?(:LEFT)) if Input.repeat?(:LEFT)
cursor_pagedown if !handle?(:pagedown) && Input.trigger?(:R)
cursor_pageup if !handle?(:pageup) && Input.trigger?(:L)
Sound.play_cursor if @index != last_index
end