I have a music loop that plays whenever a certain label is jumped to. The loop restarts every time I go to this label, however I don't want it to start over, if it doesn't need to.
My question is, is there a way to check if a specific sound/music is currently playing?
for example:
Code: Select all
if(musictrack1.ogg is not playing):
play musictrack1.ogg
I feel like theres a "hard way" and "easy way" to do this. Ive already figured out I can just set a variable that tracks whats playing but I already have an entire project full of switching music tracks. Going through all of that won't be fun... : (
Im not very skilled at using renpy yet, as this is my first project, so I definitely think Im missing something that would be obvious to help accomplish this.
Thanks