XP 스크립트

안녕하세요,

앞잡이입니다.

탤레포트 쓰고 싶은분들 많으신데

아래를 복사해서 스크립트에 담으면 됩니다.

키는 D입니다

 

 

#=================================================
# ■ 텔레포트 스크립트
#-------------------------------------------------
#   기존 대쉬 스크립트를 플레이어를
#    순간이동 시키도록 만들었습니다
#    움직이는동안 D키를 누르면 됩니다
#    수정:kcss
#=================================================

Animation = 2
Con_sp = 2

class Game_Player #클래스 지정 입니다.
alias teleport_update update
def update #업데이트
if Input.trigger?(Input::Z) #Z버튼을 눌렀을때 시작
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
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7326
101 키입력 No F1, F12 and Alt+Return (Kein F1, F12 und Alt+Eingabe) by cremno 습작 2013.04.19 1018
100 전투 랜덤 전투음악 by Fomar0153@rmxp.org 1 백호 2009.02.22 1018
99 스킬 Equipment Skills 2.0 by SephirothSpawn file 백호 2009.02.22 1017
98 기타 프레임 적용 스크립트 1 file 백호 2009.02.21 1017
97 기타 특수효과 ElseEX 스크립트 file 백호 2009.02.21 1013
96 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 1012
95 기타 Free Window Demo 1 file 백호 2009.02.22 1005
94 기타 스크롤되는 파노라마(Autoscrolling Panorama) by RPG Advocate 백호 2009.02.22 1000
93 저장 SG_Automatic Save 백호 2009.02.22 997
92 기타 Tetris Attack by trickster 1 file 백호 2009.02.22 997
91 기타 필드에서 마력을 출력합니다. 백호 2009.02.22 996
90 파티 Party & Class Changing script 1 file 백호 2009.02.21 996
89 메뉴 Event Spawner 1 file 백호 2009.02.22 991
88 스킬 랜덤 스킬 스크립트 2 file 백호 2009.02.21 986
87 키입력 Mouse Input Module v5 by Near Fantastica (SDK호환) 2 백호 2009.02.22 980
86 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 977
85 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 970
84 메뉴 1-Scene CMS 1.1 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 967
83 아이템 SG_Item Break by sandgolem (SDK호환) 백호 2009.02.22 965
82 오디오 WinAMP 플러그인을 이용하여 RMXP에서 다른 사운드포맷 지원하기 v3 by Guillame777@rmxp.net 백호 2009.02.22 951
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52