Testing whether music() is playing or not

Hi all,

I’m trying to finish my little game made with 1) Codea, and 2) you guys’ help, and I’m wondering if there is a way to know when a track played with music(***,false) is finished playing. I’d rather not have to test within draw, either.

How would one handle this efficiently?

I think you would have to check in draw. Maybe try if music.currentTime >= music.duration then?

Oh thank you… Why didn’t I think of that.

Cheers!