Hello!
I found the threads in this forum very helpful so far, but there's something I just can't seem to figure out, which is why I signed up.
I have created a radio of sorts through common events with parallel process triggers, and it plays random songs from a list of available songs. (Aka a variable is set to random and conditional branches check if the variable is a certain number with every song corresponding to a number. I even figured out how to edit some of the core scripts to prevent the map BGM from playing while the radio is turned on.
So far, so good. However, I want a new random song to be chosen after the current song ends. My current solution is to look up the length of the song, multiply it to get the amount in frames, then make the BGM start playing through the normal event command, then use a script call to tell the event to wait for the duration of the song before stopping the BGM and going back to randomly select a new one.
I feel like this is very error prone.
Now I want to know, is there a way to determine the length of a music file and make the BGM stop playing automatically (and make the event carry on) once the song ends? Would MEs be a better choice? I'm really unsure about this.
Thanks in advance!
Stopping BGM after it played once?
● ARCHIVED · READ-ONLY
-
-
Yes, MEs can be used to play music that just plays once , but I'm not sure if it had any size limitations though.
-
Hmm, thank you for the answer. :) I'll try MEs instead.
-
Problem is it cant wait for it to stop either, so you are back to figuring out Timing for yourself
-
That's not as much of a problem, fortunately since the songs are going to be hardcoded into the game. I just hope the wait command doesn't reset itself under certain circumstances, but I guess I'll find out through some testing.
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.