#-----------------------------------------------------------------------#
# 8-Way Character Movement #
#-----------------------------------------------------------------------#
# Created by Daniel Morell 'Windu' or 'Scorpius' March 25th, 2008 #
# Modified by DeM0nFiRe to add toggle
#-----------------------------------------------------------------------#
$toggle_8way = false
class Game_Player
def update_player_movement
# Remember whether or not moving in local variables
last_moving = moving?
# If moving, event running, move route forcing, and message window
# display are all not occurring
unless moving? or $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing
# Move player in the direction the directional button is being pressed
if $toggle_8way
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
else
case Input.dir8
when 2
move_down
when 4
move_left
when 6
move_right
when 8
move_up
end
end
end
end
end