Game_Player ¼öÁ¤ #-------------------------------------------------------------------------- # ¡Ü ÇÁ·¹ÀÓ °»½Å #-------------------------------------------------------------------------- def update # ·ÎÄà º¯¼ö¿¡ À̵¿ÁßÀÎÁö ¾î¶²Áö¸¦ ±â¾ï last_moving = moving? # À̵¿Áß , À̺¥Æ® ½ÇÇàÁß , À̵¿ ·çÆ® °­Á¦Áß , # ¸Þ¼¼Áö À©µµ¿ì Ç¥½ÃÁßÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ì unless moving? or $game_system.map_interpreter.running? or @move_route_forcing or $game_temp.message_window_showing # ¹æÇâ ¹öÆ°ÀÌ ¹Ð¸®°í ÀÖÀ¸¸é , ±× ¹æÇâ¿¡ Ç÷¹À̾ À̵¿ # ¡Ú==========================================================================¡Ù # ¹æÇâÀ» º¸Á¸ direction = @direction case Input.dir8 when 1 # ÁÂÇÏ move_left move_down # ¹æÇâ °íÁ¤ÀÌ ¾Æ´Ñ °æ¿ì unless @direction_fix # ¿À¸¥ÂÊ ¹æÇâÀ̾ú´ø °æ¿ì´Â ¿ÞÂÊÀ» , ¿À¸§»õ¿´´ø °æ¿ì´Â ¾Æ·¡¸¦ ÇâÇÏ´Â @direction = (direction == 6 ? 4 : direction == 8 ? 2 : direction) end when 2 # ÇÏ move_down when 3 # ¿ìÇÏ move_down move_right # ¹æÇâ °íÁ¤ÀÌ ¾Æ´Ñ °æ¿ì unless @direction_fix # ÁÂÇâÀ̾ú´ø °æ¿ì´Â ¿À¸¥ÂÊÀ» , ¿À¸§»õ¿´´ø °æ¿ì´Â ¾Æ·¡¸¦ ÇâÇÏ´Â @direction = (direction == 4 ? 6 : direction == 8 ? 2 : direction) end when 4 # Á move_left when 6 # ¿ì move_right when 7 # Á»ó move_up move_left # ¹æÇâ °íÁ¤ÀÌ ¾Æ´Ñ °æ¿ì unless @direction_fix # ¿À¸¥ÂÊ ¹æÇâÀ̾ú´ø °æ¿ì´Â ¿ÞÂÊÀ» , ÇÏÇâÀ̾ú´ø °æ¿ì´Â À§¸¦ ÇâÇÏ´Â @direction = (direction == 6 ? 4 : direction == 2 ? 8 : direction) end when 8 # »ó move_up when 9 # ¿ì»ó move_right move_up # ¹æÇâ °íÁ¤ÀÌ ¾Æ´Ñ °æ¿ì unless @direction_fix # ÁÂÇâÀ̾ú´ø °æ¿ì´Â ¿À¸¥ÂÊÀ» , ÇÏÇâÀ̾ú´ø °æ¿ì´Â À§¸¦ ÇâÇÏ´Â @direction = (direction == 4 ? 6 : direction == 2 ? 8 : direction) end end # ¡Ù==========================================================================¡Ú end # ·ÎÄà º¯¼ö¿¡ ÁÂÇ¥¸¦ ±â¾ï last_real_x = @real_x last_real_y = @real_y