XP 스크립트

이동 및 탈것
2010.01.12 13:34

텔레포트 스크립트.

조회 수 2392 추천 수 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 6159
761 메뉴 메뉴화면 변경 스크립트 1 file 백호 2009.02.21 2772
760 기타 랜덤 지하 감옥 작성 스크립트 1 file 백호 2009.02.21 1338
759 전투 쿼터뷰 전투 스크립트 3 file 백호 2009.02.21 2871
758 상점 상점에 물방,마방 구별, 무기의 능력치 상세화 5 file 백호 2009.02.21 2512
757 상점 상점에서 Q.W버튼으로 순서를 바꿈!상점스텟 상세화 업그레이드 1 백호 2009.02.21 1714
756 장비 에러 안나는 장비창 전능력 표시 스크립트... 3 백호 2009.02.21 2353
755 기타 테트리스 ?구현 스크립트 2 file 백호 2009.02.21 1714
754 오디오 CG, 음악 감상 스크립트 [한글화] 11 file 백호 2009.02.21 2403
753 기타 지정범위안에 들어오면 특정한 움직임을 취한다!! 1 백호 2009.02.21 919
752 변수/스위치 지정범위안에 들어오면 특정 스위치를 온/오프/교환 한다!! 2 백호 2009.02.21 1365
751 메시지 메세지 표시 업그레이드 11 file 백호 2009.02.21 4729
750 아이템 심플 액알 [리젠, 아이템 드롭] 18 file 백호 2009.02.21 3917
749 이동 및 탈것 8방향 스크립트 12 file 백호 2009.02.21 2412
748 전투 전투시 미묘한 효과 스크립트 file 백호 2009.02.21 1468
747 스킬 스킬제휴 스크립트 file 백호 2009.02.21 1294
746 전투 전투위치 보정 스크립트 1 file 백호 2009.02.21 1234
745 전투 턴제 전투메시지 스크립트 10 file 백호 2009.02.21 2199
744 기타 대화창에 얼굴그래픽 스크립트 25 file 백호 2009.02.21 4137
743 이동 및 탈것 캐릭터 이동 프레임? 증가 스크립트 9 백호 2009.02.21 2969
742 메뉴 각 메뉴를 호화롭게 하는 스크립트 3 file 백호 2009.02.21 2618
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