XP 스크립트

이동 및 탈것
2010.01.12 13:34

텔레포트 스크립트.

조회 수 2441 추천 수 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 7310
761 저장 심플 세이브 로드(1개의 세이브 사용하기) 3 백호 2009.02.22 1981
760 타이틀/게임오버 심심해서 구현해본 타이틀음악만으로 게임 플레이하기 2 백호 2009.02.22 1641
759 기타 실제시간표시스크립트입니다...[중뷁이면지성;;] 4 백호 2009.02.22 1366
758 HUD 시트르산의 나침반 스크립트 19 file 시트르산 2011.01.23 3224
757 액터 시트르산의 XP용 감정 말풍선 표시 스크립트 37 file 시트르산 2011.01.25 6150
756 기타 시작하자 마자 풀 스크린 2 백호 2009.02.21 1102
755 시스템2C 4 file 글러브111 2011.01.15 2128
754 전투 시뮬레이션 턴알 3 file 백호 2009.02.21 3081
753 메뉴 스테이터스 화면에 넥스트 표시 1 file 백호 2009.02.21 1774
752 메뉴 스테이터스 화면 from Harts Horn 2 백호 2009.02.22 1598
751 기타 스테이터스 표시 플러스 1.00ver 백호 2009.02.22 1155
750 메뉴 스테이터스 일람 스크립트 file 백호 2009.02.21 1356
749 메뉴 스탯올리기 시스템 (액알가능) 27 file 백호 2009.02.22 3416
748 스탯 포인트 시스템 3차수정 ( ' 백호 ' 님이 올리신 자료 수정.) 26 카이어덱터 2010.01.04 3362
747 기타 스탯 13 file 이안 2010.01.17 2344
746 기타 스탭 롤 9 file 허걱 2009.08.13 2921
745 스킬 스킬창 업그레이드? ps인간 2009.01.23 3072
744 스킬 스킬제휴 스크립트 file 백호 2009.02.21 1311
743 스킬 스킬샵 스크립트 16 file 독도2005 2009.08.24 4256
742 스킬 스킬북 스크립트 8 WMN 2008.03.17 2460
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