Is there a way to keep the background sound from a map playing during a battle? If so, how? Thanks.
Background sound in battle
RPG Maker MZ SupportI don't remember where I got this snippet from, but:
Adding this as a plugin stops BGS and BGM from stopping and ensures the battle BGM is played immediately upon Battle start.
Edit: Ah, hold on. This is MZ... Didn't check haha. This may or may not still work tho, so just give it a shot.
Code:
BattleManager.playBattleBgm = function() {
AudioManager.playBgm($gameSystem.battleBgm());
};
Scene_Map.prototype.stopAudioOnBattleStart = function() {
// Do nothing: preserve all audio states.
};
Adding this as a plugin stops BGS and BGM from stopping and ensures the battle BGM is played immediately upon Battle start.
Edit: Ah, hold on. This is MZ... Didn't check haha. This may or may not still work tho, so just give it a shot.
I think that should work in MV too. The code looks vaguely familiar to me as someone who's been hacking on MV for the past year.
This works great! Thank you! 🙂
Yeah the code is for MV, but the thread for MZ is what I meant to say. Must've said it in a confusing way, haha.
Ah you're right, I got it backwards.
I'm less familiar with the MZ code but this doesn't seem like one of the places that drastically changed.
I'm less familiar with the MZ code but this doesn't seem like one of the places that drastically changed.
Original thread: https://forums.rpgmakerweb.com/threads/background-sound-in-battle.183087/