Ahmwma, Millie, IJ, thank you all for such detailed answers! I really appreciate it, especially as someone who is rather new to coding! I have implemented some of the code suggested by IJ in the script of my card:
music1:("menu1","menu2","menu3") on loop do loopcounter.text:(count music1)%1+loopcounter.text music1[0+loopcounter.text] endThis worked quite wonderfully! Admittedly, it will take a bit for me to fully unpack and understand it all just because of my limited understanding of code. It is interesting to use a field to store the variable information! I'll keep that in mind.
---
In regards to your discussion about having audio play across multiple cards, IJ, I found that the loop would continue if I navigate to a new card, but it would stay on the same track and loop (which I suppose makes sense given that the script on the original card would no longer apply) -- I was able to stop playback by putting the following in the script of the other pages:
on loop do endIf I did want playback of the whole chain of audio files across slides, I will absolutely follow your advice above, thanks.
---
Just wanted to add this bit in case anyone wanders upon this thread in the future, but part of me had also wondered if there were a way to make it so that the whole audio chain would restart when you navigate back to that page. I managed to accomplish that by adding this bit of code at the top:
on view do loopcounter.text:-1 end music1:("menu1","menu2","menu3") on loop do loopcounter.text:(count music1)%1+loopcounter.text music1[0+loopcounter.text] endAnd that seems to work for me! If anyone finds there's a more efficient method, you're welcome to suggest it!
Thank you all for the help! Now off to make some awesome stuff with Decker! <3