Simple Yet Effective BGm On The Made With MV plugin
make sure both MadewithMV and This Plugin Is Turned On
Terms Of Use : Free to use everywhere So long As Credit is Given
JavaScript: - /*:
- * @plugindesc Plays BGM during the Made With MV splash screen. v1.0
- * @author Stuart-BUZZGAMES
- *
- * @param BGM Name
- * @type file
- * @dir audio/bgm/
- * @default Theme1
- *
- * @param Volume
- * @type number
- * @min 0
- * @max 100
- * @default 90
- *
- * @param Pitch
- * @type number
- * @min 50
- * @max 150
- * @default 100
- *
- * @param Pan
- * @type number
- * @min -100
- * @max 100
- * @default 0
- *
- * @help
- * Plays BGM during the Made With MV splash screen.
- *
- * Place your BGM in:
- * /audio/bgm/
- *
- * Select it in Plugin Manager.
- *
- * No plugin commands.
- */
- (function() {
- "use strict";
- var parameters = PluginManager.parameters("SplashScreenBGM");
- var bgmName = String(parameters["BGM Name"] || "Theme1");
- var bgmVolume = Number(parameters["Volume"] || 90);
- var bgmPitch = Number(parameters["Pitch"] || 100);
- var bgmPan = Number(parameters["Pan"] || 0);
- // Hook into boot scene
- var _Scene_Boot_start = Scene_Boot.prototype.start;
- Scene_Boot.prototype.start = function() {
- AudioManager.playBgm({
- name: bgmName,
- volume: bgmVolume,
- pitch: bgmPitch,
- pan: bgmPan
- });
- _Scene_Boot_start.call(this);
- };
- })();
复制代码
本贴来自国际rpgmaker官方论坛作者:stutheman处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址: https://forums.rpgmakerweb.com/threads/splash-screen-bgm.183435/ |