how to check if bgs is playing

Discussion in 'RPG Maker MV' started by pasunna, May 8, 2019.

  1. pasunna

    pasunna Veteran Veteran

    Messages:
    120
    Likes Received:
    18
    First Language:
    thai
    Primarily Uses:
    RMMV
    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
     
    #1
  2. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,182
    Likes Received:
    729
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    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. :)
     
    #2
    pasunna likes this.

Share This Page