#-------------------------------------------------------------------------- # ● 指定位置に移動 # x : X 座標 # y : Y 座標 #-------------------------------------------------------------------------- alias :srmsim_moveto :moveto def moveto(x, y) unless $game_map.in_simulation srmsim_moveto(x, y) else super # センタリング sim_center(x, y) end end def sim_center(x, y) if @real_y - $game_map.display_y > CENTER_Y + 160*4 || @real_x - $game_map.display_x < CENTER_X - 192*4 || @real_x - $game_map.display_x > CENTER_X + 192*4 || @real_y - $game_map.display_y < CENTER_Y - 160*4 center(x, y) end end