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
34 기타 [게이지바]게이지바 스크립트 2.5 (실용적?) 17 file 코아 코스튬 2010.12.05 4219
33 기타 sandgolem Script Archive (RMXP SDK 1.5 이상 필요) file Alkaid 2011.02.17 1453
32 기타 일시정지 스크립트 13 【§㉤ㅏ법㉧ㅣ§】 2011.02.26 1841
31 기타 The General Monster Generator 1.1 by DerVVulfman 1 file Alkaid 2011.03.02 1496
30 기타 3d 렌더링스크립트 어렵게 찾음 9 라구나 2011.03.05 3610
29 기타 [게이지바]HelloCoaVer4.0 업데이트 속도 변경 [오랜만의 업데이트] 30 file 코아 코스튬 2011.04.02 3790
28 기타 Text to RGSS by DerVVulfman Alkaid 2011.04.18 1319
27 기타 부활스크립트 4 캉쿤 2011.09.19 2061
26 기타 업데이트 (죽었을경우부활 )스크립트한글화 2 by향온 2011.09.27 2438
» 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
24 기타 쓸만한스크립트61개포함 28 file 궭크이 2012.01.09 4297
23 기타 간단한 Scene_Base #2 2 Alkaid 2012.01.15 1738
22 기타 Note Editor for RMXP by NEWOLD 1 Alkaid 2012.01.15 2101
21 기타 FPLE 2 - First Person Labyrinth Explorer by MGC 1 Alkaid 2012.01.17 3415
20 기타 [자작]데미지표시 19 file JACKY 2012.02.15 3842
19 기타 창고 스크립트 5 긔염둥이♥ 2012.06.18 1725
18 기타 Etude87_Bone_Animation_Character ver.1.2 4 습작 2012.07.06 1255
17 기타 이벤트 범위 스크립트 2 Tine 2012.07.25 1580
16 기타 appletree님 요청) 화면 명암 주기 3 file 뮤바보 2013.01.31 2724
15 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13