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 7308
941 기타 [Game_Actor] 게이지바 표시 스크립트 8 file - 하늘 - 2009.08.03 4188
940 기타 대화창에 얼굴그래픽 스크립트 25 file 백호 2009.02.21 4147
939 전투 깔끔한형식의 Asan'Tear배틀시스탬 4 file 콩밥 2010.09.29 4137
938 기타 캐릭터 소개 화면 22 file 독도2005 2008.10.05 4123
937 메뉴 3D Menu Script 7 현문 2010.10.06 4115
936 전투 에너미들도 게이지바 달고싶다~!! 14 file 백호 2009.02.21 4113
935 메시지 TXT 메세지 렌더링 스크립트 16 에돌이 2011.07.14 4103
934 온라인 게임화면을 전체화면으로 하기 27 file 이씨 2010.03.09 4093
933 퀘스트 퀘스트 시스템 # 번역 24 빗자루씨 2010.02.09 4082
932 HUD 이름띄우기스크립트 - [ID홍길동] 이 아닌 [홍길동]으로 표기하기 27 블루레스 2009.11.06 4077
931 기타 8방향 마우스 스크립트 10 file 아방스 2009.02.28 4075
930 전투 중복일지도 모르는 ATB 전투 11 file 백호 2009.02.22 4070
929 전투 xas히어로에디션 3.4 14 ps인간 2009.01.04 4058
928 이동 및 탈것 8방향이동, Shift키 누르면 대쉬 63 WinHouse 2010.06.12 4053
927 전투 Blizz-ABS 1.95 27 아방스 2008.03.05 4051
926 메시지 공지(?)를 띄우는 스크립트 23 file - 하늘 - 2009.08.06 4038
925 기타 몬스터 게이지바 턴알 22 file 키라링 2009.01.22 4030
924 온라인 NetPlay Evolution v3 여러분이 고대하시던 NPE v3입니다! 5 file 심영 2010.10.29 4017
923 그래픽 [AWS- Advanced Weather System] 이름그대로 강화된 날씨시스템. 11 file 제로스S2 2009.08.02 4013
922 전투 일본사이트에서 찾은 턴제 스크립트 23 file 백호 2009.02.21 4010
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52