- Joined
- Jun 9, 2014
- Messages
- 86
- Reaction score
- 77
- First Language
- German
- Primarily Uses
- RMMV
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!
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!
