Hello, would you guys be able to teach me how to do this? For example on river, if you're far, you'll hear it on lower volume and as you continue to walk towards it, you'll start to hear it louder and louder. Thanks in advance!
Help with bgs
RPG Maker MZ SupportOne way to achieve this could be by using the VisuStella Events and Movement Core plugin. You can set up regions for the different spots on the map where you want the volume to change. From there, you can call specific common events that change the BGS volume level; when you're closer to the river, it'd be a higher number, and farther away would be a lower number. Depending on how many different audio levels you'd want, you could create a new common event for each.
An alternative option that doesn't use plugins could be creating an event on player touch for each tile of the map that changes a variable value, and the higher the variable value is, the higher the volume is. This way, you could just have one common event that has a conditional branch within it that controls the volume (i.e. if the variable > 10, play the BGS at 100%, and an else for if the variable is < 5, etc.)
To combine the two methods above, and the method that's probably the most efficient, you could set 1-2 regions for the whole map, which call common events that decrease or increase the variable by 1 each time it's touched by the player. From there, you would use the conditional branches described above to change the BGS to be higher or lower.
I hope this helps!
An alternative option that doesn't use plugins could be creating an event on player touch for each tile of the map that changes a variable value, and the higher the variable value is, the higher the volume is. This way, you could just have one common event that has a conditional branch within it that controls the volume (i.e. if the variable > 10, play the BGS at 100%, and an else for if the variable is < 5, etc.)
To combine the two methods above, and the method that's probably the most efficient, you could set 1-2 regions for the whole map, which call common events that decrease or increase the variable by 1 each time it's touched by the player. From there, you would use the conditional branches described above to change the BGS to be higher or lower.
I hope this helps!
Thank you, will try that out!
Original thread: https://forums.rpgmakerweb.com/threads/help-with-bgs.125924/