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
681 HUD 적의 남은 HP만큼 적의 이름 색깔 변하는 스크립트 6 file 백호 2009.02.21 2337
680 전투 CSSR6-스태미너 시스템 1 file 백호 2009.02.22 2336
679 HUD MOG_C_HUD. 6 file Bera 2010.09.11 2329
678 메뉴 자세한 캐릭터 정보표시 스크립트 버전2 5 아방스 2009.01.12 2328
677 저장 렉없은 자동 세이브 15 알피지GM 2010.03.07 2326
676 스크립트를 배우시기 전에..... 5 독도2005 2008.08.31 2326
675 장비 장비 착용 효과 스크립트 14 file 백호 2009.02.21 2322
674 상점 상점 메뉴 개조시킨 스크립트 9 file 백호 2009.02.21 2322
673 기타 스탯 13 file 이안 2010.01.17 2319
672 메뉴 제가 쓰는 메뉴 14 file 백호 2009.02.21 2318
671 온라인 멀티넷 스크립트 수정본 (약간 한글화) 7 백호 2009.02.22 2315
670 메시지 1문자식 표시랑 따랑소리 나는 스크립트 8 백호 2009.02.22 2303
669 아이템 아이템도감 14 키라링 2009.01.22 2299
668 Run-Smoother! ( 렉 줄이는 스크립트 ) 12 file Bera 2010.10.16 2295
667 키입력 [xp,vx]마우스 제스쳐 스크립트 2 클로시스 2013.09.26 2294
666 KGC 스탯올리기 스크립트 (능력치 분배 스크립트) 13 카이어덱터 2010.02.26 2292
665 저장 심플 세이브&로드 개조(필요할 때 원하는 슬롯에 자동저장) 5 나렌시아 2011.02.24 2290
664 기타 rpgxp [체험판] 입니다. 6 file 인웅이 아부지 2010.01.12 2289
663 기타 명령어들 6 지존!! 2010.07.24 2288
662 타이틀/게임오버 타이틀 화면 연출 4 file 백호 2009.02.21 2285
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ... 52 Next
/ 52