class Game_Player def update_player_movement $game_player.clear_path if Input.dir4 != 0 # Move player in the direction the directional button is being pressed case Input.dir4 when 2 move_down when 4 move_left when 6 move_right when 8 move_up end end end