RPGXP Script
2010.10.14 02:54

8방향이동

Views 2330 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. 그레고리우스력 원리.

    Date2011.06.22 CategoryRPGXP Script By협객 Views2754 Votes0
    Read More
  2. 아이템소지 한계돌파

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2248 Votes0
    Read More
  3. 특정범위내에들어오면이동하기

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2343 Votes0
    Read More
  4. 아이템획득 표시

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2494 Votes0
    Read More
  5. UNR (아시려나... ) - 상태 이상

    Date2013.01.20 CategoryRPGXP Script By동동주 Views1085 Votes0
    Read More
  6. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2057 Votes0
    Read More
  7. 부드러운화면이동

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2375 Votes0
    Read More
  8. 직업명 표시

    Date2010.10.24 CategoryRPGXP Script ByA.M.S Views2103 Votes0
    Read More
  9. 8방향이동

    Date2010.10.14 CategoryRPGXP Script ByA.M.S Views2330 Votes0
    Read More
  10. 반칸이동

    Date2010.07.18 CategoryRPGXP Script ByA.M.S Views2446 Votes0
    Read More
  11. 게임에서 제공해주는 노래가 아닌 외부에서 다운받고 안에 넣어쓰려면 어떻게 해야하나요?

    Date2019.07.26 CategoryRPGMV Plugin ByBigOrca Views1197 Votes0
    Read More
  12. 한국어 조사 (은/는/이/가) 처리 플러그인 입니다.

    Date2015.10.24 CategoryRPGMV Plugin By파란별빛 Views1040 Votes0
    Read More
  13. 전투속도 고속화 플러그인.

    Date2015.10.24 CategoryRPGMV Plugin By파란별빛 Views1100 Votes0
    Read More
  14. 한글 이름 입력 처리 플러그인

    Date2015.10.24 CategoryRPGMV Plugin By파란별빛 Views1676 Votes0
    Read More
  15. 배틀미스트(전투중포그효과) 플러그인

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views547 Votes0
    Read More
  16. RPG MV 와 AJAX를 이용한 웹 통신 플러그인

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views548 Votes0
    Read More
  17. 회전하는 타이틀 메뉴 플러그인

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views843 Votes0
    Read More
  18. 타이틀 커맨드에 '게임종료'를 추가해줍니다.

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views114030 Votes0
    Read More
  19. 프리로드 매니저 (소재를 미리 불러서 게임진행을 빠르게)

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views698 Votes0
    Read More
  20. 맵타일 크기 변경 플러그인!

    Date2015.10.26 CategoryRPGMV Plugin By파란별빛 Views1408 Votes0
    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)