All pastes #22257 Raw Edit

Mine

public ruby v1 · immutable
#22257 ·published 2005-09-07 00:24 UTC
rendered paste body
#==============================================================================# &#9632; Game_Player#------------------------------------------------------------------------------# 8-Way + Pixel Movement#==============================================================================class Game_Player < Game_Character  #--------------------------------------------------------------------------  # &#9679; Configuration  #--------------------------------------------------------------------------  PIXELS_PER_STEP = 8.0 # Pixels Per Step (Float)  #--------------------------------------------------------------------------  # &#9679; 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  #--------------------------------------------------------------------------  # &#9679; 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