切換
舊版
前往
大廳
主題

RM MV學習筆記(15) MV的橫向戰鬥動作

路漫行 | 2018-03-16 11:40:05 | 巴幣 10 | 人氣 1232


首先呢,就是在RM MV裡面,橫向戰鬥的主角方一共有18組動畫,他們在code內有自己的名字:


預設大小為:576*384 (單格64*64)
png檔案

改變大小不用修改Code,但格式必須相同,也就是說可以換成64*96單格,整張圖就必須是:576*576。

動畫loop規則是: (1-2-3-2)-(1-2-3-2)-(1-2-3-2)

loop設定在rpg_sprites.js裡面,預設如下:

Sprite_Actor.MOTIONS = {
    walk:     { index: 0,  loop: true  },
    wait:     { index: 1,  loop: true  },
    chant:    { index: 2,  loop: true  },
    guard:    { index: 3,  loop: true  },
    damage:   { index: 4,  loop: false },
    evade:    { index: 5,  loop: false },
    thrust:   { index: 6,  loop: false },
    swing:    { index: 7,  loop: false },
    missile:  { index: 8,  loop: false },
    skill:    { index: 9,  loop: false },
    spell:    { index: 10, loop: false },
    item:     { index: 11, loop: false },
    escape:   { index: 12, loop: true  },
    victory:  { index: 13, loop: true  },
    dying:    { index: 14, loop: true  },
    abnormal: { index: 15, loop: true  },
    sleep:    { index: 16, loop: true  },
    dead:     { index: 17, loop: true  }
};

可以自行修改true跟false值,如果使用龍骨動畫插件,Loop值則由龍骨裡面設定。


其餘雜項:

//參戰的角色上限(rpg_objects.js)
Game_Party.prototype.maxBattleMembers = function() {
    return 4;
};

//參戰角色開始位置(rpg_sprites.js)
Sprite_Actor.prototype.setActorHome = function(index) {
    this.setHome(600 + index * 32, 280 + index * 48);
};



送禮物贊助創作者 !
0
留言

創作回應

相關創作

更多創作