RPGXP Script
2010.10.14 02:54

8방향이동

Views 2151 Votes 0 Comment 1
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

8방향으로이동가능


↖   ↑   ↗


←   ○   →


↙   ↓   ↘

?
  • ?
    협객 2011.06.25 02:29
    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

  1. 특정범위내에들어오면이동하기

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2343 Votes0
    Read More
  2. 8방향이동

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2330 Votes0
    Read More
  3. 엔딩 후 타이틀과 BGM 변경

    Date2015.12.21 CategoryRPGMV Plugin By러닝은빛 Views2310 Votes0
    Read More
  4. 달리기스크립트

    Date2014.02.22 CategoryRPGXP Script By천둥번들 Views2309 Votes2
    Read More
  5. 새로운 게임 시작/로드 시 미묘한 연출 추가.

    Date2007.12.01 CategoryRPGXP Script By창조도시 Views2293 Votes1
    Read More
  6. 현재 파티내 캐릭터를 선택지로 처리할 때 간편히 하자.

    Date2009.01.01 CategoryRPGVX Script ByEvangelista Views2279 Votes1
    Read More
  7. 아이템획득 표시

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2276 Votes0
    Read More
  8. 아이템소지 한계돌파

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2248 Votes0
    Read More
  9. 맵이름 표시 스크립트

    Date2013.10.05 CategoryRPGXP Script By 운 Views2246 Votes0
    Read More
  10. 문과 상자를 쉽게 만들수 있는 스크립트

    Date2013.10.21 CategoryRPGXP Script By Views2244 Votes0
    Read More
  11. 한글이름입력기 v1.76

    Date2008.07.24 CategoryRPGXP Script By창조도시 Views2208 Votes3
    Read More
  12. 대각선 방향 이동추가로 8방향 이동 만들기.

    Date2008.08.14 CategoryRPGXP Script By창조도시 Views2204 Votes1
    Read More
  13. 반칸이동

    Date2010.07.18 CategoryRPGXP Script ByA.M.S Views2184 Votes0
    Read More
  14. 미니맵 스크립트

    Date2013.10.01 CategoryRPGXP Script By Views2177 Votes0
    Read More
  15. 창고 시스템

    Date2008.01.18 CategoryRPGXP Script By창조도시 Views2168 Votes3
    Read More
  16. 이벤트커맨드 스크립트 관련 설명

    Date2009.01.29 CategoryRPGVX Script ByEvangelista Views2163 Votes3
    Read More
  17. 스크린샷 파일 만들기

    Date2015.12.23 CategoryRPGMV Plugin By러닝은빛 Views2151 Votes0
    Read More
  18. 8방향이동

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2151 Votes0
    Read More
  19. 아이템창을 아이템 분류별로 나누어 지게 개조.

    Date2007.12.02 CategoryRPGXP Script By창조도시 Views2148 Votes1
    Read More
  20. 스텟포인트투자

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2142 Votes2
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)