- Joined
- May 5, 2020
- Messages
- 191
- Reaction score
- 91
- First Language
- French
- Primarily Uses
- RMMV
I could be wrong, but I think fade plugin command is only for BGS. Perhaps you could fool the engine by playing a song as a BGS?
The way I fade in and out my BGS (rain in my case, music in yours) is like this:
To fade in, I start the BGS with volume of 1

Then I fade it in manually:

To fade it down, it's just the same. I've added a fail-safe so that the volume doesn't go in the negative:

Note 1: Weather Wanted is the type of weather in my game (0 is clear, 1 is rain, 2 is storm, etc).
Note 2: V[126] is the value of the variable 126 (Weather sound volume). I'm using a plugin that allows me to get the value of a variable instead of hard-coding the value.
Note 3: OcRam is pretty smart and you can see in his code that instead of reloading a sound every time you call it, he checks if it's already playing. If it is the case, then he's adjusting the parameters of the sound (volume, pitch, pan).
The way I fade in and out my BGS (rain in my case, music in yours) is like this:
To fade in, I start the BGS with volume of 1

Then I fade it in manually:

To fade it down, it's just the same. I've added a fail-safe so that the volume doesn't go in the negative:

Note 1: Weather Wanted is the type of weather in my game (0 is clear, 1 is rain, 2 is storm, etc).
Note 2: V[126] is the value of the variable 126 (Weather sound volume). I'm using a plugin that allows me to get the value of a variable instead of hard-coding the value.
Note 3: OcRam is pretty smart and you can see in his code that instead of reloading a sound every time you call it, he checks if it's already playing. If it is the case, then he's adjusting the parameters of the sound (volume, pitch, pan).