I have Near's 8 way movement script, but there is a part in my game where I do not wish to move in 8 directions. Is it possible to have this work only if a certain switch is turned off? Here is the script:
Thanks in advance! :smile:
-KRoP
Code:
#============================================================================
# VX Near Game_Player Edit Final Version
#----------------------------------------------------------------------------
# Provides 8 Directional Movement to the Default Movement System.
#============================================================================
class Game_Player
def move_by_input
return unless movable?
return if $game_map.interpreter.running?
case Input.dir8
when 1; move_lower_left
when 2; move_down
when 3; move_lower_right
when 4; move_left
when 6; move_right
when 7; move_upper_left
when 8; move_up
when 9; move_upper_right
end
end
end
-KRoP