how to check if bgs is playing

hi
I use bgs as a robot booster sound when the move because it's had loop effect
when it not move I use parallel stop bgs
but that make the sound start/stop not smoothly
so I want to check if the bgs sound still play so the code will not restart them everytime
thank you
Not sure if there's a better approach, but you could try Conditional Branch > Script:
Code:
AudioManager._currentBgs === null
This should return true if there is no BGS currently playing. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-bgs-is-playing.108797/