Hi, I’ve set up a scene where there’s ambient background music, and when the player enters an upper room, he enters into a trigger box that plays a different song.
The problem is that when the player leaves the trigger box, the triggered music keeps playing instead of stopping and letting the ambient music continue.
I’ve found two videos on YouTube that show this setup, but in both cases they do the same process (the second audio keeps on playing, not the ambiental sound) and in both videos, people are asking in the comments how to make the ambient music continue after leaving the trigger box -no reply-. So I assume there’s no video that actually explains how to do that properly.
In one comment I read:
“The best could be to create 2 audios on the level. And in the trigger zone, create 2 variables to define these audios. Then when you enter, set Audio 1 volume from 1 to 0 and Pause it, and set Audio 2 volume from 0 to 1 and then Play. And on exit, do the reverse…”
But I have no idea if that’s really the correct way. Since I’m a beginner, I still learn by watching and can’t really reason through these kinds of setups. So I’d like to know if somebody could tell me how to fix it.