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 상점 Mog- 상점업그레이드 ps인간 2009.01.23 2684
760 이동 및 탈것 백호님이올린 발소리 스크립트를 소리만 바꾸어 밨음 4 lhh9606 2009.05.19 2680
759 스킬 스킬 포인트를 올리자! 3 what더붥 2012.01.26 2680
758 미니맵 미니맵 스크랩트 + 예재 15 file WMN 2008.03.17 2674
757 기타 몬스터 도감 18 file 백호 2009.02.22 2669
756 기타 4방향 마우스 스크립트 12 file 아방스 2009.02.28 2666
755 변수/스위치 셀프 스위치 조작 10 file 허걱 2009.01.30 2657
754 저장 세이브파일 망가뜨리기 by RPG Advocate 3 백호 2009.02.22 2657
753 테두리 글자 & 그림자 글자 12 아방스 2008.09.19 2643
752 타이틀/게임오버 게..임..오버.. ps인간 2009.01.23 2636
751 전투 자동전투 from RPG 쯔꾸르 XP RGSS Wiki 1 file 백호 2009.02.22 2622
750 메뉴 각 메뉴를 호화롭게 하는 스크립트 3 file 백호 2009.02.21 2618
749 스킬 제한시간내 커맨드를 입력해야 스킬이 발동~ 3 file 백호 2009.02.22 2614
748 온라인 [멀티넷스크립 PvP 이벤트버전] / [넷플레이0.7.2]버전 3 file 백호 2009.02.22 2605
747 전투 데미지 폰트변경 7 카르닉스 2010.02.26 2600
746 메뉴 혹시있나해서-_-.. 대화창에 테두리치기 스크립트 7 백호 2009.02.22 2596
745 전투 Mr.Mo's ABS Ultimate 7.0 by DerVVulfman 4 Alkaid 2012.08.26 2587
744 액터 (killer님 요청)자동회복 스크립트 3 나뚜루 2009.02.22 2575
743 기타 [RGSS XP] 게임 해상도 조절 스크립트 (*2) 11 file Cheapmunk 2014.10.03 2573
742 메시지 윈도우즈 확장 file 백호 2009.02.21 2566
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