RPGXP スクリプト
2013.10.01 06:20

텔레포트 스크립트

閲覧数 1114 推奨数 0 コメント 1
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷

#=================================================
# ㉿ 텔레포트 이동 스크립트
#-------------------------------------------------
# 기존 대쉬를 이용하여 플레이어를 순간이동 시키도록
# 만든 스크립트 이다. 움직이는 동안 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
番号 カテゴリ タイトル 投稿者 日付 閲覧数 推奨数
288 RPGXP スクリプト 새로운 게임 시작/로드 시 미묘한 연출 추가. 창조도시 2007.12.01 2541 1
287 RPGXP スクリプト 대화 글씨 폰트를 원하는 폰트로 바꾸기 창조도시 2007.12.01 1666 2
286 RPGXP スクリプト 대각선 방향 이동추가로 8방향 이동 만들기. 1 창조도시 2008.08.14 2452 1
285 RPGXP スクリプト 맵 이름을 화면 상단에 띄우기. 1 1 file 창조도시 2008.10.12 2402 1
284 RPGXP スクリプト 최초 시작화면에 제작자 정보를 띄워보자. 6 창조도시 2008.04.04 2205 5
283 RPGXP スクリプト 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1660 2
282 RPGXP スクリプト 아이템창을 아이템 분류별로 나누어 지게 개조. 3 file 창조도시 2007.12.02 1869 1
281 RPGXP スクリプト c[n] 명령어 줄때의 색상 결정. 창조도시 2008.02.14 1332 1
280 RPGXP スクリプト 대화창에 얼굴 띄우기& 대화창 명령어 모음. 1 file 창조도시 2008.12.31 2356 1
279 RPGXP スクリプト 게임도중에 글씨체를 바꿔보자. 창조도시 2008.12.31 1531 1
278 RPGXP スクリプト 대화창에 이름&얼굴 띄우기 새로운방식. file 창조도시 2007.11.06 3880 3
277 RPGXP スクリプト 그림자문자 사용하기.. 바탕색이 무슨색이건 상관없이 글자가 잘보인다!!! 창조도시 2007.11.06 1696 1
276 RPGXP スクリプト 기차 파티 스크립트 2 창조도시 2008.07.24 1701 2
275 RPGXP スクリプト 한글이름입력기 v1.76 1 1 창조도시 2008.07.24 2925 2
274 RPGXP スクリプト 창고 시스템 2 창조도시 2008.01.18 2007 3
273 RPGXP スクリプト 물가에가면 캐릭터를 반사시켜주는 스크립트 4 file 창조도시 2007.12.02 4779 6
272 RPGXP スクリプト 파티 선두 캐릭터 id 변수에 넣기 Evangelista 2008.01.08 1658 1
271 RPGVX スクリプト vx 한글이름입력 2 file 가가상 2010.05.21 3343 1
270 RPGVX スクリプト [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기 Evangelista 2008.11.28 1954 1
269 RPGVX スクリプト [VX] 조건분기로 키입력의 처리 실행 1 Evangelista 2008.11.28 1989 1
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15