How to detect the end of a song?
thebitmaster
PRO Posts: 75
Is there any programmatic or interrupt-driving way to detect the end of a song? For instance, if I have several songs, and want to start the second one as soon as the first is over. I realize I could externally gather the information about how long each song is, etc, and maybe put it into a table or something, but I'd prefer GameSalad be smart enough to tell me "the song is over now." Is there a way to do this already in the software?
Thanks!
Thanks!
Comments
Roy.
unless you have a good fade-out/fade-in there will be a slight gap
if the game selects the song … then you can combine all in one huge soundFile
if the player selects the song … gameAttributes will be needed
(thought @Tynan had posted something great about music tracks ???)
I think this might be doable with a table
rowLabel: song | col: duration
then a gameAttribute text to put the songName in label
and have a Timer: After: tableCellValue(table,"game.label", 2)
but, still lots of work as we have to select the sound to play and can't just get the cellValue to do so
at least the duration is easily accessed and the sounds start fast …
@};- MH
"Is there any programmatic or interrupt-driving way to detect the end of a song"
If it's a soft rock ballad listen for crying.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS