RPGXP Script
2013.10.01 06:20

텔레포트 스크립트

Views 896 Votes 0 Comment 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

#=================================================
# ㉿ 텔레포트 이동 스크립트
#-------------------------------------------------
# 기존 대쉬를 이용하여 플레이어를 순간이동 시키도록
# 만든 스크립트 이다. 움직이는 동안 Z(D) 키를 누른다.
#
# 수정 자: kcss(통역: Mania)
#=================================================

Animation = 1 # 애니메이션(애니메이션 번호)
Con_sp = 15 # 마나 소비 수

class Game_Player
  alias teleport_update update
  def update
    if Input.trigger?(Input::Z) # Z(D) 키를 눌렀을 때 시작
      unless $game_party.actors[0].sp < Con_sp
        case @direction
        when 2 # 아래
          if Input.press?(Input::DOWN)
            $game_player.animation_id = Animation
            $game_party.actors[0].sp -= Con_sp
            moveto($game_player.x, $game_player.y+2) # 아래로 가는 수
          else
            moveto($game_player.x, $game_player.y)
          end
          when 4 # 왼쪽
            if Input.press?(Input::LEFT)
              $game_player.animation_id = Animation
              $game_party.actors[0].sp -= Con_sp
              moveto($game_player.x-2, $game_player.y) # 왼쪽으로 가는 수
            else
              moveto($game_player.x, $game_player.y)
            end
            when 6 # 오른쪽
              if Input.press?(Input::RIGHT)
                $game_player.animation_id = Animation
                $game_party.actors[0].sp -= Con_sp
                moveto($game_player.x+2, $game_player.y) # 오른쪽으로 가는 수
              else
                moveto($game_player.x, $game_player.y)
              end
              when 8 # 위
                if Input.press?(Input::UP)
                  $game_player.animation_id = Animation
                  $game_party.actors[0].sp -= Con_sp
                  moveto($game_player.x, $game_player.y-2) # 위로 가는 수
                else
                  moveto($game_player.x, $game_player.y)
                end
              end
            end
          end
          teleport_update
        end
      end

?

List of Articles
No. Category Subject Author Date Views Votes
140 RPGXP Script 컬러 비트맵 타이틀 스크립트 3  운 2015.01.20 854 1
139 RPGXP Script 자동으로 장애물을 피해가는 스크립트 청담 2013.09.24 862 0
138 RPGXP Script 커다란 그래픽 좁은 길 못지나가는 스크립트 청담 2013.09.24 868 0
137 RPGXP Script 헤드 업 디스플레이 스크립트 3  운 2015.01.30 870 0
136 RPGXP Script 아이템 조합 스크립트 2013.10.01 890 0
» RPGXP Script 텔레포트 스크립트 1 2013.10.01 896 0
134 RPGXP Script 현재 시간 확인 2 2013.10.01 899 0
133 RPGXP Script 장비 레벨 제한 2 2013.10.01 903 1
132 RPGXP Script 간단한 여관 스크립트 1 청담 2013.09.24 911 0
131 RPGXP Script 복권 스크립트 청담 2013.09.24 927 0
130 RPGXP Script 일시정지 스크립트 2 청담 2013.09.29 929 0
129 RPGXP Script UNR (아시려나... ) - 상태 이상 2 file 동동주 2013.01.20 936 0
128 RPGXP Script 플레이어 발소리 스크립트 1 청담 2013.09.24 939 0
127 RPGXP Script RPG XP Xas액알 1 file 심심치 2018.10.30 941 0
126 RPGXP Script 아이템 사용 클래스 한정 스크립트 청담 2013.09.24 947 0
125 RPGXP Script 현재위치&임무 표시 2 2013.10.01 968 0
124 RPGXP Script 창고 시스템 1 청담 2013.09.24 986 0
123 RPGXP Script 화면의 쉐이크를 더 어지럽게 바꿔보자! 2013.10.01 986 0
122 RPGXP Script 밤낮 설정 3 2013.10.01 994 0
121 RPGXP Script 아이템 소지수 무제한 스크립트 청담 2013.09.24 1001 0
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






[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)