Event for playing a playlist of background music

● ARCHIVED · READ-ONLY
Started by Demrottens 3 posts View original ↗
  1. So I created an event that is a paralel process and plays one song over and over again, also that song is played as a Background sound, not as background music so that if you change map, the music is still playing.
    But it loops the same song over and over and I got tired so I want to play more songs. Then I would create an event that stops the backgrouns sounds and play a "Fight war epic intense song" when fighting a boss.
    My question is, how do I play a play list? Do I have to place timers that make the event wait the same time than the song and then when the timer has finished play the next sound? But also that would be a bit boring at some point unless I make a very long playlist so It would be nice to play random songs one by one

    Any help?
  2. Make the song being played be decided by a variable. And then, before the conditional branches, make that variable pick a random number from the lowest number (in my ex, 1) and the highest number (in my ex, 4). Wait command and fadeout BGM will have to be changed based on your game.

    In my case, if you wanted it to fadeout by 5 seconds, you take the total seconds of the song, minus 5, and that is how long the wait command is multipled by 60. (60 frames = 1 second). If the number number is too big (ex, 1000), then you do a wait of 999 and then 1. If it is 5000, you do a series of wait commands until it equals 5000.

    So the formula for wait is
    BGM Length (seconds) - 5 = Seconds left

    Seconds left * 60 = Wait length

    unknown.png

    Hope this helps.
  3. You have asked this in 3 separate threads. One query, one thread.
    [mod]I am leaving open the script request thread and closing the other two.[/mod]