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
54 기타 [신기술 체험] 레이싱 스크립트 8 file 백호 2009.02.22 2185
53 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2186
52 기타 [신기술 체험] 솔로채팅창 17 file 백호 2009.02.22 2188
51 기타 [회복] 대기 회복 스크립트4.0 여러 오류 문제 해결 및 길이 줄임 11 file 코아 코스튬 2010.11.06 2190
50 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2194
49 기타 한계 돌파스크립트 8 G MAX 2009.09.03 2206
48 기타 [신기술 체험] 마우스 클릭 드래그 드롭 7 file 백호 2009.02.22 2246
» 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
46 기타 명령어들 6 지존!! 2010.07.24 2288
45 기타 rpgxp [체험판] 입니다. 6 file 인웅이 아부지 2010.01.12 2289
44 기타 스탯 13 file 이안 2010.01.17 2325
43 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
42 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2405
41 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2409
40 기타 [신기술 체험] 페스트 채팅 17 file 백호 2009.02.22 2412
39 기타 업데이트 (죽었을경우부활 )스크립트한글화 2 by향온 2011.09.27 2438
38 기타 대화 글씨가 한글자씩 나오는 스크립트 2 백호 2009.02.22 2464
37 기타 [신기술 체험] 마우스 사용 심플액션 7 file 백호 2009.02.22 2467
36 기타 맵 이동시 로딩 그림 표시 14 file 백호 2009.02.21 2479
35 기타 ABS 몬스터 HP 게이지 바 11 백호 2009.02.22 2485
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13