Play a BGM only once

Discussion in 'RPG Maker MV' started by Poupouille, Dec 24, 2018.

    Tags:
  1. Poupouille

    Poupouille Veteran Veteran

    Messages:
    162
    Likes Received:
    26
    First Language:
    Russian, french
    Primarily Uses:
    RMMV
    Hello:kaohi:

    I would like to know if it was possible to play a BGM only once, and if so, how?
     
    #1
  2. Tw0Face

    Tw0Face Chief Executive Officer Veteran

    Messages:
    206
    Likes Received:
    268
    First Language:
    German
    Primarily Uses:
    RMVXA
    Play the BGM in an event and then activate a self-switch.

    Greetings,
    Tw0Face
     
    #2
  3. Landazar

    Landazar Veteran Veteran

    Messages:
    179
    Likes Received:
    55
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    RMMV
    That won't work, play BGM event loops music when it's started.
    I don't know very well RMMV JavaScript syntax, but you can try do something like this.

    #1 Use This calculator to Get number of frames your BGM music
    #2 In event which starts play BGM add from 3rd Tab action script and paste this:
    Code:
    var duration = paste here your result from calculator
    this.wait(duration)
    
    #3 And at the end of Action list add
    Play BGM and select (none) from list.
     
    #3
    Tw0Face likes this.
  4. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,781
    Likes Received:
    9,455
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Or just play it as a sound effect or something.
     
    #4
    Shaz and Kwerty like this.
  5. Landazar

    Landazar Veteran Veteran

    Messages:
    179
    Likes Received:
    55
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    RMMV
    Oh... That's a really good one, I didn't think about it that way...
     
    #5
  6. McTricky

    McTricky Veteran Veteran

    Messages:
    786
    Likes Received:
    371
    Location:
    London, United Kingdom
    First Language:
    English
    I'd reckon playing it as an "ME" (Music Event) would be better.
     
    #6
    Shaz likes this.
  7. Poupouille

    Poupouille Veteran Veteran

    Messages:
    162
    Likes Received:
    26
    First Language:
    Russian, french
    Primarily Uses:
    RMMV
    I looked for something complicated when the solutions were very simple! Thank you very much. :kaoangry:
     
    #7
  8. Mooshry

    Mooshry Ariana Grande has consumed my very existence help. Veteran

    Messages:
    362
    Likes Received:
    142
    Location:
    Your Air Conditioner
    First Language:
    Cow
    Primarily Uses:
    RMMV
    Just play it as an ME (Music Effect). It's easier that way.
     
    #8

Share This Page