I need this solved in about a few hours from now, but even if this thread is not replied by then it will still be useful.
Pretty much what I've got going is two music channels. The 'music' channel is playing a rhythmic beat that continuously plays and won't need to be touched. (This is working fine so it's not a problem)
On the other hand I have another channel "Chan1" needing to pick one of three loops randomly and play it, then pick another loop randomly and play it, and loop that forever ect.
I've been reading the documentation and past renpy questions about similar things, and I managed to find this code here that I tried.
Code: Select all
$ randomswamp = renpy.random.choice( ("music/swamp silence.ogg", "music/swamp pan1.ogg", "music/swamp pan2") )
$ renpy.music.play (randomswamp, channel="Chan1", if_changed=True, loop=True, fadein=0, tight=True)
To summarize, I want it so it picks a new random track every loop.
I know that with images you can define animation loops and use the 'repeat' command, but I can't figure out how to do this with music. My ability with code is very simple, and nothing in the renpy documentation music page seems to cover what I want to do.