I need a way to check whether a sound is playing or not.
Do I have to implement my own code for that or is there a 'sound.isPlaying()' method or property?
1 decade ago
by Joncom
You would have to check this yourself I believe. Should be straight forward though.
Instances of ig.Sound
have a property called currentClip
, which is an audio
object. All audio objects have currentTime
and duration
properties.
If currentTime
is greater than zero and less than duration
chances are the sound has not finished playing.
Ah, ok. If I have access to an audio object, then I'm good! impact docs don't say anything about the audio object :\
Page 1 of 1
« first
« previous
next ›
last »