Howdy, Stranger!

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

Testing whether music() is playing or not

edited January 2015 in General Posts: 277

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?

Tagged:

Comments

  • Posts: 1,976

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

  • Posts: 277

    Oh thank you... Why didn't I think of that.

    Cheers!

Sign In or Register to comment.