I need to play a sound using Phaser Framework that plays every 10 seconds. But how can I implement a event that gets executed when the sound finished playing ? so then I can start a 10 second timer to play the sound again.
How would you play a sound every certain amount of seconds in Phaser?
431 views Asked by omarojo At
1
You can use an event on the sound. E.g:
You might be able to simplify this code by using Phaser tweens, but I haven't used them much so I don't really know how.