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 6203
661 맵/타일 SG_Map Pause ver.1 by sandgolem 2 백호 2009.02.22 1290
660 전투 SG_Batte Retry ver.4 by sandgolem 2 백호 2009.02.22 1460
659 장비 KGC_장비확장 (7/30일자) 12 file 백호 2009.02.22 2055
658 전투 KGC_Active Count Battle (7/30일자) 7 file 백호 2009.02.22 1846
657 장비 장비품개조 - KGC_AlterEquipment (8/12일자) 2 file 백호 2009.02.22 1695
656 저장 SG_Automatic Save 백호 2009.02.22 973
655 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1159
654 기타 잠수방지 스크립트 12 백호 2009.02.22 1865
653 기타 만화형태 말칸 스크립트 28 file 백호 2009.02.22 3706
652 이동 및 탈것 그림자 스크립트 13 file 백호 2009.02.22 3545
651 전투 적의 여러차례 행동 스크립트 1 백호 2009.02.22 1324
650 전투 방어시에 속성 저항,스테이트무시 스크립트 1 백호 2009.02.22 1018
649 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1150
648 아이템 지정한 아이템 갯수 제한 3 백호 2009.02.22 1288
647 기타 실제시간표시스크립트입니다...[중뷁이면지성;;] 4 백호 2009.02.22 1352
646 메뉴 메뉴 단축키 스크립트 14 백호 2009.02.22 2961
645 이동 및 탈것 금금님 요청 대쉬 1 백호 2009.02.22 1384
644 메뉴 메뉴에 그림넣기 4 file 백호 2009.02.22 4415
643 기타 더블애니메이션 스크립트 1 백호 2009.02.22 1598
642 스킬 KGC - 도주스킬 스크립트 백호 2009.02.22 1193
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