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 7326
661 기타 무기 회피율, 방어구 공격력 지정 스크립트 6 백호 2009.02.22 1263
660 기타 무기 개조 스크립트 file 백호 2009.02.21 1256
659 기타 몬스터도감 - 개량형 ? 7 file 백호 2009.02.22 2900
658 기타 몬스터 도감 7 file 백호 2009.02.21 1853
657 기타 몬스터 도감 18 file 백호 2009.02.22 2684
656 기타 몬스터 게이지바 턴알 22 file 키라링 2009.01.22 4032
655 기타 모험일기 5 키라링 2009.01.18 1846
654 기타 모험 일기 스크립트 2 file 백호 2009.02.21 1444
653 기타 명령어들 6 지존!! 2010.07.24 2322
652 기타 멤버 교체 11 file 백호 2009.02.22 2544
651 메인화면에 별똥별 효과 6 file 아방스 2007.11.09 4237
650 메뉴 메이플스토리처럼 메뉴를^^ 57 file 딸기님 2010.07.13 7203
649 메시지 메세지플러스3.1v스크립트(얼굴표시,메세지색상,속도등정하는스크립트) 8 백호 2009.02.21 4938
648 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1154
647 기타 메세지를 분출해 표시 백호 2009.02.22 1178
646 메시지 메세지 표시 업그레이드 11 file 백호 2009.02.21 4762
645 키입력 메세지 입력 스크립트. 25 file Bera 2010.10.18 3603
644 메시지 메세지 오류 수정 시스템 3 엘릭스토리안 2010.02.06 1508
643 메세지 분풀해 표시 스크립트 9 WMN 2008.03.17 2729
642 메뉴 메뉴화면에 '해야 할 일' 알려주는 창 넣기 11 하진 2012.04.23 3303
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