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
234 기타 테트리스 ?구현 스크립트 2 file 백호 2009.02.21 1714
233 기타 턴제새로운거. 39 file 이안 2010.01.17 3296
» 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
231 기타 타이머스크립트 ps인간 2009.01.23 1765
230 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2188
229 기타 캐릭터 소개 화면 22 file 독도2005 2008.10.05 4099
228 기타 카운트 3초 1 file 백호 2009.02.22 1295
227 기타 치트키 시스템 3 백호 2009.02.22 1594
226 기타 창고 시스템 8 백호 2009.02.22 1763
225 기타 창고 스크립트 5 긔염둥이♥ 2012.06.18 1725
224 기타 창고 스크립트 2 백호 2009.02.21 1203
223 기타 참 시스템 완성! 1 file 백호 2009.02.22 1523
222 기타 지정범위안에 들어오면 특정한 움직임을 취한다!! 1 백호 2009.02.21 919
221 기타 좌표 스크립트 2 백호 2009.02.21 908
220 기타 제작한 게임의 파일을 모두 exe파일 하나에 쓸어담기 by sheefo@Creation Asylum 1 file 백호 2009.02.22 1239
219 기타 제련시스템 수정본입니다. 3 file 백호 2009.02.21 1020
218 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1159
217 기타 잠수방지 스크립트 12 백호 2009.02.22 1865
216 기타 자동미로 12 file 백호 2009.02.22 2031
215 기타 일시정지 스크립트 2 file 백호 2009.02.22 1796
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13