Closed nearnshaw closed 5 months ago
When using the Play Sound action in a smart item, we're currently using the old method of setting the playing property of the AudioSource to true.
playing
This has the problem that if I try to retrigger the sound before it finishes, I can't.
We should instead use the new AudioSource.playSound() function, which handles retriggers.
AudioSource.playSound()
https://docs.decentraland.org/creator/development-guide/sdk7/sounds/#play-sounds
When using the Play Sound action in a smart item, we're currently using the old method of setting the
playing
property of the AudioSource to true.This has the problem that if I try to retrigger the sound before it finishes, I can't.
We should instead use the new
AudioSource.playSound()
function, which handles retriggers.https://docs.decentraland.org/creator/development-guide/sdk7/sounds/#play-sounds