rendered paste body#==============================================================================# ■ Game_Player#------------------------------------------------------------------------------# 8-Way + Pixel Movement#==============================================================================class Game_Player < Game_Character #-------------------------------------------------------------------------- # ● Configuration #-------------------------------------------------------------------------- PIXELS_PER_STEP = 8.0 # Pixels Per Step (Float) #-------------------------------------------------------------------------- # ● 8-Way Movement #-------------------------------------------------------------------------- alias mink_8wm_update update def update unless moving? or $game_system.map_interpreter.running? or @move_route_forcing or $game_temp.message_window_showing case Input.dir8 when 1 move_lower_left when 3 move_lower_right when 7 move_upper_left when 9 move_upper_right end end mink_8wm_update end #-------------------------------------------------------------------------- # ● Pixel Movement #-------------------------------------------------------------------------- alias mink_pm_update_move update_move def update_move @y -= 1 - (PIXELS_PER_STEP / 32) if (@y - 1) * 128 == @real_y @x += 1 - (PIXELS_PER_STEP / 32) if (@x + 1) * 128 == @real_x @x -= 1 - (PIXELS_PER_STEP / 32) if (@x - 1) * 128 == @real_x @y += 1 - (PIXELS_PER_STEP / 32) if (@y + 1) * 128 == @real_y mink_pm_update_move endend