Is it somehow possible to play two BGM's at once and change their volume individually?
I'd like to dynamically mix two versions of a song (same speed and patterns but different instruments and filters) within the game.
My idea was, that the music gets more dramatic if the player's health gets low.
Thank you!
I guess it is not possible then?
Currently I use a temporary workaround for it.
At the begin of the battle I load the BGM with "100" and the 2nd version of the song as BGS with "0" volume. If the conditions are met, I reverse the volume settings. The music changes instantly (I would prefer a smooth blend, but ok) but is sligthly off. And when the battle ends with the BGS playing, the BGS playback doesn't stop at the victory ME.
I tried to code an additional AudioManager class besides Bgm, Bgs etc., but failed...
...mainly because I have no idea what I'm doing xD.
You could do a BGM Fadeout of 1 second or something then play the new one when the conditions are met. That would be softer transaction than instantly changing. Hope this helps!
But than the new one starts at the begining of the song. The song should start exactly at the same point as the current song.
This would also make it possible to record, let's say, the drums on a single track, which kicks in, when the conditions are met.
You could put the (drums) on a BGS track and play it then 😛
That's what I'm doing right now, but as said before, it doesn't work very well.
The main problem is to get the tracks synchron. But well, thank you anyway.
I think I'll post a script request, it is probably doable with a little coding. (I hope so)