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 6202
34 기타 좌표 스크립트 2 백호 2009.02.21 908
33 기타 지정범위안에 들어오면 특정한 움직임을 취한다!! 1 백호 2009.02.21 920
32 기타 참 시스템 완성! 1 file 백호 2009.02.22 1523
31 기타 창고 스크립트 5 긔염둥이♥ 2012.06.18 1727
30 기타 창고 스크립트 2 백호 2009.02.21 1203
29 기타 창고 시스템 8 백호 2009.02.22 1763
28 기타 치트키 시스템 3 백호 2009.02.22 1594
27 기타 카운트 3초 1 file 백호 2009.02.22 1296
26 기타 캐릭터 소개 화면 22 file 독도2005 2008.10.05 4100
25 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2194
24 기타 타이머스크립트 ps인간 2009.01.23 1765
» 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
22 기타 턴제새로운거. 39 file 이안 2010.01.17 3297
21 기타 테트리스 ?구현 스크립트 2 file 백호 2009.02.21 1715
20 기타 특수효과 ElseEX 스크립트 file 백호 2009.02.21 995
19 기타 파노라마 스크롤 스크립트 개량판 by Guillaume777 1 백호 2009.02.22 896
18 기타 포커(Blackjack) 게임을 도입하는 스크립트 5 file 백호 2009.02.21 1675
17 기타 폰트 자동 설치 스크립트 12 file 백호 2009.02.22 2865
16 기타 풀스크린 스크립트 2 백호 2009.02.22 1407
15 기타 프레임 적용 스크립트 1 file 백호 2009.02.21 1007
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13