批踢踢實業坊
›
精華區
beta
C_Chat
關於我們
聯絡資訊
返回上層
作者
sunrainworm ((破殼中))
看板
C_Chat
標題
[倫語] 倫語格鬥 2DK2nd簡易基礎教學
時間
Sat Jan 19 19:14:19 2008
本次使用的2DK2nd是從以下網址所下載
http://www.gamez.com.tw/thread-421228-1-1.html
在這裡我另外附上中文版和本次使用到的素材下載
http://www.badongo.com/file/7384071
裡面包含2DK2nd中文版和之前畫的卜商點圖、背景(已轉成256色bmp檔) 由於2DK2nd附的hlp檔介面不好用,所以另外轉成chm檔 含中文版的英文說明、日文版說明(寫得比較好)(英文版和中文版的說明大致相同) 這次有用到背景音樂,但是因為太大,這裡另外下載(wav檔)
http://www.badongo.com/file/7384238
話不多說,直接進入教學吧 下載完解壓縮後,資料夾會有以下檔案
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357523&p=0
執行KGT2nd_GAME.EXE或KGT2nd_EDITOR.EXE都可以 都會進入2DK2nd的編輯器畫面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357524&p=1
點選單上的文件,新增一個遊戲
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357526&p=2
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357528&p=3
一開始會有以下畫面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357529&p=4
點選"角色",到角色設定頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357530&p=5
在頁面左邊的部分點右鍵,新增角色
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357532&p=6
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357533&p=7
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357534&p=8
接下來解釋一下2DK獨特的參數設定 不像一般的鍵盤輸入,2DK只用滑鼠設定 以下面年齡的設定為例,請把游標移到相同的位置
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357535&p=9
點左鍵一下,可以發現百位數加1
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357536&p=10
再點左鍵一下,百位數會再加1
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357537&p=11
移到千位數的部份,然後按左鍵一下,千位數加1
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357538&p=12
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357539&p=13
要消掉千位數則是按右鍵,千位數減1
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357540&p=14
反覆操作一下應該就會熟練了 接下來按"技"到角色動作設定的頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357541&p=15
在頁面上面的白色小格上點右鍵會出現指令選單
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357543&p=16
選擇"建立>呼叫圖像"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357545&p=17
然後點頁面左下角的"開啟",會出現載入圖片的對話窗
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357546&p=18
選擇對話窗上面的開啟圖片按鈕,然後選擇附上的素材 - 卜商 01.bmp
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357547&p=19
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357549&p=20
載入進來像這樣子
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357551&p=21
首先點選"不使用通用調色盤而使用專用調色盤"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357553&p=22
在圖顏色很多時不點選好像會有問題,不過目前還沒遇到過 然後接下來是設定圖載入的範圍和透明色的部份 一般會以圖片左上角的顏色為透明色,以及系統通用的透明色(黑色) 不過如果不要左上角為透明色(即沒有透明色),要把以下的按鈕點掉
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357555&p=23
那是中文化沒有做好出現的亂碼,不用管他 接下是設定範圍,有三種方法 1.自動產生範圍 - 會略過透明色的部份,找出角色邊框
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357556&p=24
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357558&p=25
說明應該是和上面那個亂碼搞反 2.最大化 - 包含整張圖片
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357560&p=26
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357562&p=27
3.用手圈選範圍 - 但會自動找出此範圍內最小的範圍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357564&p=28
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357565&p=29
這個比較常用在當好幾張影格放在同一張圖片上的時候 如以下日文版說明的圖
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357568&p=30
這裡因為之前畫動畫的時候是用整張圖去做,所以使用最大化
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357573&p=31
然後按上面有個"cpy"圖樣按鈕(取代圖像) 就可取代目前編號為0的圖像(參數"繪"的值為0)
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357580&p=32
如果覺得圖片偏掉,看不到,可以在預覽畫面上點右鍵按者拖移
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357581&p=33
然後調整一下角色位置,大約把腳移到水平線的位置
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357585&p=34
這樣基本上就完成初步的人物設定 接下來開始設定第一個戰鬥場景 點"場景"到戰鬥場景設定頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357590&p=35
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357591&p=36
同樣在頁面左邊點右鍵,新增一場景
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357592&p=37
選擇"腳本"頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357593&p=38
同樣在上面點右鍵,按"新增腳本"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357595&p=39
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357596&p=40
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357597&p=41
接下來在上面小格子上點右鍵,按"建立>呼叫圖像"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357598&p=42
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357600&p=43
同樣點左下角的"開啟"載入戰鬥背景
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357601&p=44
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357602&p=45
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357605&p=46
設定專用調色盤
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357607&p=47
設定不用左上角為透明色
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357609&p=48
最大化範圍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357611&p=49
最後取代圖像0
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357613&p=50
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357615&p=51
可以發現圖像0和角色的圖像0不同,也就是說二者是分開的 不過你可以發現遊戲範圍只有一半,必須加大範圍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357617&p=52
點上面的"腳本1",跳到初期設定的部份
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357618&p=53
設定橫方向和縱方向可以捲動
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357621&p=54
設定遊戲範圍加大一倍(+100即加大一倍)
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357623&p=55
可以看到包含右下角了
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357624&p=56
接下來我們至少需要一個演示才能測試遊戲 跳到演示設定頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357626&p=57
新增演示
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357627&p=58
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357628&p=59
其他不需要了,我們只要測試戰鬥場景就好了 接下來跳到遊戲系統設定頁面
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357630&p=60
一般會把所有需要設定演示的部份都設定成演示1 沒有就設定一下 然後按選單"測試遊戲"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357632&p=61
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357633&p=62
遊戲方式選第二個
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357634&p=63
第二個應該是從戰鬥場景開始 這裡會都顯示一樣是因為中文化的問題 其他沒得選,按下執行按鈕
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357636&p=64
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357640&p=65
這裡還不算完成,現在還不能移動人物 接下來我們把基本動作一個一個補上 回到角色設定頁面,按左下角的"特技表"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357641&p=66
會顯示所有的基本動作或者你加入的絕招
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357643&p=67
這裡我們只做站立、走動、跳躍三種基本動作 首先是向前走 我們依照前面的方法,呼叫圖像
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357645&p=68
這裡由於前面已經載入過圖像0 (01.bmp) 所以直接使用 然後在指令I(呼叫圖像)上點右鍵,插入指令"建立>移動座標"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357646&p=69
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357649&p=70
設定移動參數,X方向+3.00
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357650&p=71
這裡的參數是參考asleisureto大之前發布的測試遊戲 向後走也一樣,只是改變參數為X-3.00
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357652&p=72
這裡改變一下角色的圖像為反方向
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357654&p=73
跳躍的部份也差不多,只是加了Y方向的移動和重力 記得正負號要設對,否則跳不起來 垂直跳躍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357655&p=74
向前跳躍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357657&p=75
向後跳躍
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357660&p=76
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357661&p=77
如果你的跳躍圖和站立圖不同,記得做以下設定,則會跳到一半變成站立的樣子 在指令I後插入"建立>移動腳本"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357662&p=78
設定腳本跳回到此動作的指令I步驟
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357663&p=79
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357664&p=80
向後跳躍也一樣
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357665&p=81
然後是空中落下的部份,除了重力Y方向外其他設定為忽略
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357666&p=82
接下來就可以正式測試遊戲了,別忘了設定鍵盤操作
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357668&p=83
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357670&p=84
上下左右方向鍵表示的字很奇怪,不過沒差 各種動作都測一下
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357672&p=85
----------------------------------------------------------------------- 接下來是進階的部份,這次包含了動畫和BGM設定的部份 首先回到角色設定的部份,設定角色站立的動畫 設WAIT為10 (0.1秒)
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357675&p=86
複製第1個指令(呼叫圖像),可使用右鍵選單或Ctrl+C
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357676&p=87
複製出10個呼叫圖像的指令,代表10個影格(Ctrl+V)
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357678&p=88
設定每個指令不同的圖像編號
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357679&p=89
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357680&p=90
載入不同影格所用的圖片
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357681&p=91
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357682&p=92
然後按左下角的"預覽",可以看到預覽的動畫
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357685&p=93
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357686&p=94
或者可以在測試遊戲中來看
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357687&p=95
接下來是BGM的部份,這裡使用之前寫的顏回戰鬥BGM來應急一下 從場景的腳本中插入指令"建立>聲音"
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357695&p=96
點"WAVE"按鈕可以載入音樂
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357698&p=97
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357703&p=98
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357704&p=99
設定循環
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357705&p=100
千萬記住,要設定場景圖像的WAIT為0(無限等待),否則會不停重新播放
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357707&p=101
最後儲存一下檔案吧
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357709&p=102
會有個資料夾,下面就是你的遊戲資料
http://album.blog.yam.com/show.php?a=sunrainworm&f=3833418&i=357716&p=103
最後有些事情要說 本人二月的時候要準備研究所的考試,要暫時退出倫語格鬥的製作 因此其他部分的研究就有賴其他人去補完 如果都沒有人要做,每個人都希望別人去做的話 這個遊戲就不可能完成 「是爺們就放個響屁!」 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.167.231.220
推
kingoflag
:噗---(誤很大
01/19 19:16
→
nawussica
:(夾)
01/19 19:22
推
oldfool
:<(_ _)>祝研究所考試順利
01/19 19:50
推
CH1NA
:l:<(_ _)>祝研究所考試順利
01/19 20:06
推
hatter
:推
01/19 20:18
推
gbwind
:(夾)
01/19 20:55