I have an audio object, and it is set to play a specific sound based on the game situation. How can I determine what sound / sound file is being played at any given point?
Develop games in your browser. Powerful, performant & highly capable.
You can tag your audio files upon playing and use the condition
Is tag playing True if any audio with a given tag is currently playing.
Is tag playing
True if any audio with a given tag is currently playing.