XP 스크립트

이동 및 탈것
2010.01.12 13:34

텔레포트 스크립트.

조회 수 2395 추천 수 0 댓글 11

텔포 스크립트 입니다.

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

TAG •
Comment '11'
  • ?
    daegui 2010.01.13 13:41

    이걸 스킬로 만들어야지~

  • ?
    넌누구냐 2010.01.24 17:04

    오옷 텔레포트도 나오는건가???

  • ?
    금빛팬더 2010.01.25 18:07

    하;;하;;하;; 재미있는 스크립트군요 ..

  • ?
    Chocopie 2010.02.03 10:24

    오 재밌네요 ㅎ

  • ?
    오나리자 2010.02.04 12:54

    감사합니다.. 한번 써보죠 뭐..ㅋㅋ

     

  • ?
    하늘바라기 2010.05.18 18:50

    허ㅏㅇㄹ;ㅓㅙㅗㅓ

    오!!!!!!!!!!!!!!!!!!!!!!!진짜로 돼여!!!!!!!!!!!!!!!!!!!!!1

    감사합니닿ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ!!!!!!!!!!!!!!!!!!!1

  • ?
    청풍쾌검 2011.01.04 10:18

  • ?
    행복한 울트라리스크 2011.05.31 16:26

    난 안돼는뎅

  • ?
    레어닉네임 2011.09.10 19:35

    맵(지나가지못하는것(건물등))도 지나가네요;; 못움직여도 텔포쓰면 그냥가서..아쉽지만 활용못할듯..ㅠ

  • ?
    XP광 2012.01.25 18:07

    하하....그런점이 좀 안좋죠,.ㅋ

  • ?
    윌스 2013.07.11 14:13
    감사합니다~

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
761 변수/스위치 Initial Switches and Variables by PK8 (XP/VX/VXA) Alkaid 2012.09.14 1298
760 저장 Advanced Save Menu 편집 20101005 Edition (SDK2용) 3 Alkaid 2010.10.05 1299
759 넷플2.0(펌) 3번째 4 오동훈 2008.02.25 1303
758 파티 Party Switching Screen by exseiken file 백호 2009.02.22 1303
757 메뉴 Advanced Command Windows by Tsunokiette file 백호 2009.02.22 1307
756 기타 KGC - 입수 경험치&금 증가 스크립트 백호 2009.02.22 1308
755 전투 Real Time Active Battle(RTAB) 1.14 from 歯車の城 3 file 백호 2009.02.22 1315
754 기타 Complete Climate and Time System 1.2 by ForeverZer0 1 Alkaid 2010.09.17 1315
753 기타 Text to RGSS by DerVVulfman Alkaid 2011.04.18 1319
752 전투 적의 여러차례 행동 스크립트 1 백호 2009.02.22 1324
751 Seph's Test Bed 0.4 (SDK2 호환, Method & Class Library 2 WMN 2008.04.06 1330
750 메뉴 스테이터스 일람 스크립트 file 백호 2009.02.21 1330
749 메뉴 플레이 시간 윈도우 개조 file 백호 2009.02.21 1331
748 기타 엔딩에 스탭롤을 도입하는 스크립트 1 file 백호 2009.02.21 1335
747 이름입력 영어 이름 입력기 2 백호 2009.02.22 1335
746 기타 랜덤 지하 감옥 작성 스크립트 1 file 백호 2009.02.21 1338
745 메시지 Animated Window Skin by Tana 1 백호 2009.02.22 1338
744 스킬 스킬도감 오류 수정본 2 file 백호 2009.02.22 1340
743 HUD Advanced HUD Script 3 file 백호 2009.02.22 1341
742 비공정 스크립트의 탑승속도 변경하기. 3 아방스 2008.01.14 1346
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 52 Next
/ 52