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 6202
214 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2409
213 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2405
212 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
211 기타 스탯 13 file 이안 2010.01.17 2325
210 기타 rpgxp [체험판] 입니다. 6 file 인웅이 아부지 2010.01.12 2289
209 기타 명령어들 6 지존!! 2010.07.24 2288
» 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
207 기타 [신기술 체험] 마우스 클릭 드래그 드롭 7 file 백호 2009.02.22 2246
206 기타 한계 돌파스크립트 8 G MAX 2009.09.03 2206
205 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2194
204 기타 [회복] 대기 회복 스크립트4.0 여러 오류 문제 해결 및 길이 줄임 11 file 코아 코스튬 2010.11.06 2190
203 기타 [신기술 체험] 솔로채팅창 17 file 백호 2009.02.22 2188
202 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2186
201 기타 대화창 글자 한글자씩뜨는 스크립트 7 백호 2009.02.22 2185
200 기타 [신기술 체험] 레이싱 스크립트 8 file 백호 2009.02.22 2185
199 기타 데이터베이스 자체 제한 해체 XP Ver. 13 THE풀잎 2010.07.04 2171
198 기타 [맵 아이디 확인 스크립트] 맵아이디 모르는 사람을 위한 스크립트 9 file 코아 코스튬 2010.10.09 2161
197 기타 홈페이지 띄우기 (VX 상관없음.) 6 KNAVE 2009.08.25 2139
196 기타 Upload & Download files with RGSS 2.1 by berka (XP/VX 공용) 5 Alkaid 2010.11.20 2138
195 기타 KGC꺼 몬스터도감 수정해봤어요;;; 9 file 백호 2009.02.21 2135
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13