Continuous BGM from one Battle scene to another

Ahuramazda

Veteran
Veteran
Joined
Nov 9, 2012
Messages
262
Reaction score
127
First Language
English
Primarily Uses
RMMZ
Give me a little time to look at this and brainstorm... its a bit late for me, so I cant promise any ideas/suggestions tonight (3:40am here >.< )


just to check... correct me if I'm wrong


Fadeout BGM before battle


DURING battle change the battle BGM


DURING battle play different BGM after boss dies


exit battle and have the same music playing here that was playing after the boss died in in the following event on the map?
 
Last edited by a moderator:

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
No music in the map. If it's the same BGM on the next battle it will reset the BGM.
 

Ahuramazda

Veteran
Veteran
Joined
Nov 9, 2012
Messages
262
Reaction score
127
First Language
English
Primarily Uses
RMMZ
OK, but in order to go from one battle to the next it does have to transition back to the map between, yes?


If so before the 1st battle change the BGM to the one you desire for the 2nd battle. In the 1st battle when you change the BGM for the moment you also should change the default battle BGM as well so the next fight will use it by default and there shouldn't be a pause.


The pause I think you are experiencing is cause of the battle BGM changing to the map BGM during that 1 frame transition to the next battle (if they are immediately back to back) and then to the next battle which you have chosen to use the same BGM.


This is actually a lot harder to put into words than it is in my head...


This is the way it would look if what I am understanding is correct:


https://www.mediafire.com/?3y0p4pc5fmzpp3w


and the screenshot of the simple event and the battle events:

Untitled-2.pngUntitled-3.pngUntitled-1.png
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
There is still a delay, but it is far less long than before.


Maybe it's because of the loading?


Also, I got a problem if it's more than one fight in a row, how I am supposed to change the song on the second fight while keeping the same song on the first fight? They will overlap and it'll just reset the song.
 
Last edited by a moderator:

Ahuramazda

Veteran
Veteran
Joined
Nov 9, 2012
Messages
262
Reaction score
127
First Language
English
Primarily Uses
RMMZ
Depending on what all you have going on the load time could very well be causing a gap if you're still having one... and sadly I know no way to get rid of loading lag :/


and if you have multiple fights in a row just change the battle theme immediately before the fight and have the events in the battle start at turn 0 *should* work


but in the end if my idea didn't get you what you wanted it is more than likely load lag and something I cannot help with further... sorry if thats not the response you were looking for :(
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
Changing the battle theme before the fight no longer work after the first 1 + the loading, so yeah i'm stuck with a plugin that would always keep the same bgm going unless another bgm is up.


Thanks for helping
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
a_BattleManager_replayBgmAndBgs = BattleManager.replayBgmAndBgs;
BattleManager.replayBgmAndBgs = function () {
// switch id for stopping the game from replaying bgm
var switchId = 1;
if ($gameSwitches.value(switchId)) {
return;
}
a_BattleManager_replayBgmAndBgs.call(this);
};

a_AudioManager_playBgm = AudioManager.playBgm;
AudioManager.playBgm = function (bgm, pos) {
// switch id for stopping the game from changing the bgm to play
var switchId = 0;
if ($gameSwitches.value(switchId)) {
return;
}
a_AudioManager_playBgm.call(this, bgm, pos);
};

a_AudioManager_stopBgm = AudioManager.stopBgm;
AudioManager.stopBgm = function () {
// switch id for stopping the game from stopping the bgm
var switchId = 0;
if ($gameSwitches.value(switchId)) {
return;
}
a_AudioManager_stopBgm.call(this);
};


Change switch id in the replayBgmAndBgs


I included playBgm and stopBgm just in case
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
This doesn't seem to work, is there anything else l should be aware of besides turning the right switch on?
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top