Is there a way to check if a sound from a component is playing? For instance
-- Pseudo code, toggle music
-- #bgmusic is a sound component
if sound.is_playing("#bgmusic") then
sound.stop("#bgmusic")
else
sound.play("#bgmusic")
end
of course, sound.is_playing() doesn’t exist but is there something I could use to get if a sound is playing?