Mihil Current Volume - Mihil_CurrentVolume.js

▼Mihil Current Volume(うたこ様作) - Mihil_CurrentVolume.js
https://plugin.fungamemake.com/archives/12909
既に鳴らしているBGMやBGSの音量をスクリプトで変更できます。
ふりがな:かれんとぼりゅーむ
機能概要: 既に鳴らしているBGMやBGSの音量をスクリプトで変更できます。
利用規約(ライセンス): MITライセンス
作者:うたこ
作者サイト:https://x.com/digi_loli
解説ページ:https://github.com/asakayu/Mihil_RPGMakerMV_plugins
ダウンロードページ:https://raw.githubusercontent.com/asakayu/Mihil_RPGMake…
ファイル名:Mihil_CurrentVolume.js
プラグインのヘルプ:
/*: * @plugindesc 今鳴っているBGMとBGSの音量を変更できます * * @author uta_asakayu * * @help 既に鳴らしているBGMとBGSの音量を変更できます。 * * BGMの場合はエディタのスクリプトコマンドを開いて * AudioManager.currentBgmVolume = 変更したい音量 * BGSの場合は * AudioManager.currentBgsVolume = 変更したい音量 * * に設定すれば即座に音量が切り替わります。 * (+=や-=なども一応使えます) * また、コンソールにて何も代入せずに * AudioManager.currentBgmVolume * AudioManager.currentBgsVolume * と書くと現在の音量を取得できます。 * * 応用すれば * AudioManager.fadeInBgm(秒数) * と組み合わせたりもできるはずです。 * * * * ※コードレビュー歓迎しています。 * Please feel free to throw me Masakari! * * Ver1.1.1 this._currentBgm表記をまとめてすっきりさせた * Ver1.1.0 インデントを揃えた。 * 音量を変更した後再びAudioManager.currentxxxVolumeすると * 音量が正しく表記されなかった * Ver1.0.0 配布 */