MV Please recommend me positional audio and bgm queue

I already found some of positional audio plugins myself, like the one ported from MZ, but it seems like it only allows to pick how much tiles away from the sourse sound will play. I have a seashore line and i need to make it so when you go horisontal, sound does not change, and when you go vertical - it weakens. Can you recommend something for that purpose? The easier it is to use - the better.

Also, i would like to find something that could put several bgm in one location, so when one ends - it does not repeat, but starts another one, and they loop only when all tracks end.
Still looking for both.
you could event it for seashore with the following setup as possibility
Code:
//eventing route (conditional branch)

if: script: $gamePlayer.regionId() == 5
...audio bgm volume: 20
else
if: script: $gamePlayer.regionId() == 4
...audio bgm volume: 50
else
if: script: $gamePlayer.regionId() == 3
...audio bgm volume: 80
etc
end
end
end

you could add frames, but this is 1 possibility.

another way which might work if I can transform my distanceFade plugin
to sound volume (0-100) which should than be relative the same approach I think.

but it might work on radians, so unsure how to get horizontal only or vertical only
to be 1 sound.

but you get the idea of regions I think, as long your on regionId effect.
you could event it for seashore with the following setup as possibility
Code:
//eventing route (conditional branch)

if: script: $gamePlayer.regionId() == 5
...audio bgm volume: 20
else
if: script: $gamePlayer.regionId() == 4
...audio bgm volume: 50
else
if: script: $gamePlayer.regionId() == 3
...audio bgm volume: 80
etc
end
end
end

you could add frames, but this is 1 possibility.

another way which might work if I can transform my distanceFade plugin
to sound volume (0-100) which should than be relative the same approach I think.

but it might work on radians, so unsure how to get horizontal only or vertical only
to be 1 sound.

but you get the idea of regions I think, as long your on regionId effect.
1741897869268.png


When i did it like this, it was giving me error about unexpected token, if i recall correctly.
Most likely i typed volume script wrong.
Then i remembered that i already used script for volume change before that was suggested on this forums in another event. So i used it again.
1741898486567.png

At first it worked, but it was set up to bgm, and for some reason when i stepped on the event that were supposed to save, stop and later replay bgm, it was giving me error - about something cannot be null.
But since i wanted it for bgs actually, not bgm, i just changed it and it works allright, so thanks for the solution!
Also i never used regions before, totally forgot about them. It is a good solution that does not require additional stuff.
I don't know if its that clean though, but if a map doesn't have regions or not
to much, you could use it.

another approach could be the distance to region 3 in X and change by than.
but could be more populated, so regions like this have 1 volume, so it can
be really powerful 🙂

I use region for some sensor with RED_setRegion plugin, so you can use XY too.
but see what works, maybe a appraoch (like tileId on 1 or 2 and decide distance
of those water to decide (but this is a bit above my head).

Original thread: https://forums.rpgmakerweb.com/threads/please-recommend-me-positional-audio-and-bgm-queue.175897/