A friend and I are making a side-scrolling/platforming RPG. We've been spending a lot of time writing original music for each unique area of the game, so implementation of the music is pretty important to us.
I think it would be really cool if the music played at a consistent volume throughout a layout, but gradually faded out as the player reached the end of said layout. It would be even better if the player then started on the next layout in silence, and the new music for that layout gradually faded in as they walk forwards.
Sorry if that's a bit confusing or needs some additional clarification.
Has anyone done anything like this? Or have any ideas as to how we could implement this? Thank you so much in advance!!!