Jump to content

audio sprite management


giorg
 Share

Recommended Posts

Hi,

I have an audio sprite which I need to play and if the user clicks somewhere I need to interrupt it. This is what I tried:

- in my create function: this.winsound = this.sound.addAudioSprite('bonussounds', 's4bonusmusic', {loop: true});     // to add my sound to the sound manager

then I thought ok, with this.winsound.play() and .stop() I will be able to manage it. Instead, they do nothing, no errors in console.

how to correctly manage audiosprites with my requirements?

thanks a lot

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...