Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Playing songs sequentially

mhedgesmhedges Raised on VCSPosts: 634Member

Hello -

I searched for the referenced topic, but no results really dealt exactly with it (most music threads deal with music across scenes, playing music from your device, that type of stuff).

I'd like to know if there is an easy, clean way to play different songs sequentially. That is, track 1, track 2, track 3, summing the game takes that long. Specifically, I'd like to select tracks in a random order.

The dirty way would be using a randomizer to select a track and create several timers according to each song, methinks. But if there is a technique in which i could dispense with the timers and just say,

MyRandom = random (1,3)
PlayMusic (MyRandom track)
When music ends, go back to top

that would be cool. Is there such a technique?

Thanks, regards.

Sign In or Register to comment.