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 6159
661 전투 전투배경확장 한글 3 백호 2009.02.22 1472
660 상점 상점 시세 변동 스크립트 수정판 3 백호 2009.02.22 1518
659 기타 아이디 스크립트 4 백호 2009.02.22 1761
658 키입력 한글입력기 6 백호 2009.02.22 4302
657 장비 장비무기가이드&쉴드방어 1 백호 2009.02.22 1179
656 기타 폰트 자동 설치 스크립트 12 file 백호 2009.02.22 2865
655 기타 스크롤되는 파노라마(Autoscrolling Panorama) by RPG Advocate 백호 2009.02.22 993
654 전투 SBABS v4 (A-RPG) 5 file 백호 2009.02.22 2055
653 전투 Custom Debugger, Battle Debugger by RPG Advocate file 백호 2009.02.22 1248
652 전투 RTAB방식의 CBS 스크립트 Final-2 5 file 백호 2009.02.22 1943
651 기타 현재 맵BGM을 그대로 전투 BGM으로 연결 from phylomortis.com 백호 2009.02.22 1180
650 전투 자동전투 from RPG 쯔꾸르 XP RGSS Wiki 1 file 백호 2009.02.22 2622
649 메뉴 FF7 Menu version 3 by AcedentProne (SDK 호환) file 백호 2009.02.22 1116
648 메뉴 스탯올리기 시스템 (액알가능) 27 file 백호 2009.02.22 3406
647 아이템 소지/구입 아이템 갯수 99개 이상 가능(약간 수정) 2 백호 2009.02.22 1104
646 메뉴 화살표 모양 셀렉트 커서 사용 2 백호 2009.02.22 2118
645 맵/타일 Map Extension - 맵상의 에어리어 설정, 탈것, 맵 루프 등 from RGSS Wiki 3 file 백호 2009.02.22 2708
644 이동 및 탈것 World Map & Teleporter by SephirothSpawn 2 file 백호 2009.02.22 1156
643 장비 전투중에 장비변경 from RGSS Wiki 1 백호 2009.02.22 1988
642 이름입력 Advanced Enter Hero Name Window by RPG Advocate 백호 2009.02.22 1168
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 52 Next
/ 52