SRPG Studio 8章 [転載禁止]©5ch.net [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0861名前は開発中のものです。
2015/11/10(火) 00:20:59.30ID:KkYAPAWK↓をコピーしてプラグインフォルダに突っ込みWeaponEffectControl.playSound(○○,204);を記述したら武器同士がぶつかる音が鳴る筈(0〜6は元のままで、7以上を指定するとランタイムの効果音ID:7〜の音が出る)
(function() {
var alias1 = WeaponEffectControl.playSound;
WeaponEffectControl.playSound= function(unit, type) {
if( type < 7 ){
alias1.call(this, unit, type);
}
else {
var soundHandle = root.createResourceHandle(true, type, 0, 0, 0);
if (soundHandle !== null) {
MediaControl.soundPlay(soundHandle);
}
}
}
})();
■ このスレッドは過去ログ倉庫に格納されています