Hi, so I'm having some issues with audio playback.
In my game, I've created a weather system.
So far I have 3 states. Rain - Wind - Clear.
Rain and Wind has turrets creating raindrops and leaf sprites that moves across the screen.
I want a sound for each of these states, and I want them to fade into each other.
Problem I have is that these sounds will have to trigger when last raindrop-sprite has left the screen, and whenever the last leaf has blown across the screen.
It's not a problem getting them to play. (IsOnScreen -> TriggerOnce -> PlaySound)
But it is a problem getting them to stop.
I cannot have the sound stop when the weather variable changes, cause there's a lot of rain/wind sprites still on screen.
So my question is. How do I detect last sprite (leaf or raindrop) leaving the screen?