iT邦幫忙

2021 iThome 鐵人賽

DAY 23
0
自我挑戰組

用RPG Maker實作動作遊戲系列 第 23

[Day23] 實作 - 技能

來實作一把主角技能寫入快捷鍵吧
首先一樣先改code
ActionBattle_Actor的initialize改成
https://ithelp.ithome.com.tw/upload/images/20211002/20141442MLnc6k5rlP.jpg

然後ActionBattle_SkillScene的onKeyboardShortcutOk改成
https://ithelp.ithome.com.tw/upload/images/20211002/20141442lV9sgr3Ups.jpg

最後把有用到ActionBattle_Actor的skillObject刪掉
改成用ActionBattle_Actor的this._keyboardShortcutList的第_nowSkillType Array的Object替代
如下
https://ithelp.ithome.com.tw/upload/images/20211002/20141442JVZuNWGpcW.jpg
https://ithelp.ithome.com.tw/upload/images/20211002/20141442cD8agqPV91.jpg

然後資料庫裡面的技能
可以定義第172項
https://ithelp.ithome.com.tw/upload/images/20211002/20141442LxkY4SDYBb.jpg

打開遊戲試試看~
發現快捷鍵的技能就是主角所擁有的技能了~
明天來把動畫做出來吧


上一篇
[Day 22] 實作 - 介面篇6
下一篇
[Day24] 實作 - 動畫篇1
系列文
用RPG Maker實作動作遊戲30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言