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 6153
961 키입력 Aleworks Input Module 1.21 by vgvgf (SDK호환) 8 WMN 2008.04.06 2145
960 메뉴 링 메뉴 16 Neowitch* 2008.04.18 3478
959 메뉴 링 메뉴 소지금,플레이시간 추가 버젼 17 Neowitch* 2008.04.20 3022
958 Fog of War 4 file 실마릴 2008.06.19 2498
957 스크립트를 배우시기 전에..... 5 독도2005 2008.08.31 2326
956 테두리 글자 & 그림자 글자 12 아방스 2008.09.19 2643
955 메뉴 링메뉴 New 9 sdjfl465 2008.09.27 2861
954 전투 전투불능 케릭터 강제삭제 7 독도2005 2008.10.05 1918
953 기타 캐릭터 소개 화면 22 file 독도2005 2008.10.05 4098
952 HUD HP과 SP 바 19 Man... 2008.11.04 4534
951 이름입력 대화창에 얼굴, 이름 띄우기 37 킬라롯 2008.11.09 7496
950 상점 ▼▲▼ XRXS36. 숍·변동시장 ▼▲▼ (시세) 8 D.S.Y 2008.12.09 2025
949 온라인 채팅 가능 온라인 스크립트 배포 107 file 아방스 2009.01.03 10680
948 전투 xas히어로에디션 3.4 14 ps인간 2009.01.04 4043
947 온라인 Mr.Metring NPE 1.0 [RPG XP 온라인 스크립트] 35 아방스 2009.01.07 6535
946 타이틀/게임오버 타이틀 전에 로고 띄우기, 홈피 띄우기, 메일 보내기 13 file 유아 2009.01.09 3554
945 [자작]일괄조작 관련 스크립트 5 나뚜루 2009.01.10 1913
944 메뉴 자세항 개인 상태화면 8 아방스 2009.01.12 2361
943 메뉴 자세한 캐릭터 정보표시 스크립트 버전2 5 아방스 2009.01.12 2328
942 메뉴 파이널 판타지 7 스타일 메뉴 7 아방스 2009.01.12 3237
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