XP 스크립트

#=================================================
# ■ 텔레포트 스크립트
#-------------------------------------------------
#   기존 대쉬 스크립트를 플레이어를
#    순간이동 시키도록 만들었습니다
#    움직이는동안 D키를 누르면 됩니다
#    수정:kcss
#=================================================

Animation = 1

class Game_Player #클래스 지정 입니다.
alias teleport_update update
def update #업데이트
if Input.trigger?(Input::Z) #Z버튼을 눌렀을때 시작
case @direction #case. character3에 286번에서 발견했습니다.
when 2  # 하
if Input.press?(Input::DOWN)
$game_player.animation_id = Animation
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   
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   
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 
moveto($game_player.x, $game_player.y-2) 
else
moveto($game_player.x, $game_player.y)
end
end
end
teleport_update
end
end
======================================
참고로 이건 100%자작이 아닙니다

일본사이트에서 대쉬 스크립트를 만져서 만들었습니다

Animation = 1

애니메이션에 1수치를 주면 1번 애니메이션이 나옵니다

움직이면서 D키를 누르면 2칸 텔레포트를 합니다

100%자작이 아닌이유

alias teleport_update update

이것의 정의를 모르겠음 단순히 이름만 바꿀뿐....

다른건 다 알겠고 어떤 기능을 하는지도 알겠고요 ㅎㅎ

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
741 전투 일본사이트에서 찾은 턴제 스크립트 23 file 백호 2009.02.21 3997
740 전투 사이비 CTB 1 file 백호 2009.02.21 1701
739 타이틀/게임오버 타이틀과 타이틀 BGM 랜덤으로 변경하는 스크립트 2 file 백호 2009.02.21 1045
738 이동 및 탈것 점프 높이를 자유자제로 조절하는 스크립트!! 8 file 백호 2009.02.21 1540
737 전투 전투배경 확장 3 file 백호 2009.02.21 1817
736 메시지 윈도우즈 확장 file 백호 2009.02.21 2566
735 이동 및 탈것 그래픽의 크기로 좁은길은 못지나가게한다. 7 file 백호 2009.02.21 1816
734 저장 ASM - Advanced Save Menu 3 file 백호 2009.02.21 1639
733 전투 에너미 HP·SP투시 11 file 백호 2009.02.21 3088
732 타이틀/게임오버 게임오버 화면 에서 커맨드 윈도우 스크립트 12 file 백호 2009.02.21 3031
731 기타 killer님 요청하신 스크립트입니다. 1 나뚜루 2009.02.21 784
730 전투 대전게임 Fighter 1 file 백호 2009.02.21 1436
729 전투 Kingdom Hearts 스타일의 전투 시스템 1 백호 2009.02.21 1709
728 기타 KGC꺼 몬스터도감 수정해봤어요;;; 9 file 백호 2009.02.21 2135
727 영상 avi 동영상 실행 스크립트 9 백호 2009.02.21 2281
726 메뉴 Breath Of Fire 스타일의 메뉴 3 file 백호 2009.02.21 2343
725 전투 사이트뷰 전투 스크립트 (CBS R1) 8 file 백호 2009.02.21 3499
724 기타 복권 스크립트 6 백호 2009.02.21 1258
723 키입력 新전체키 스크립트 예제 - 양키 7 file 백호 2009.02.21 2081
722 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 964
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ... 52 Next
/ 52