Add background music


The music events is not working. I want to add a background music in my game but I cannot due to the music bug. Is there any way to code it in JavaScript?? And I have also tried sound events but it gives me a error whenever I export my game.

Please help.


you can use play sound with the music, that’s the way I do it now


Does it works ?


i haven’t tried to load the sound from internet. I always load them from disk.
Try in preview should work if it id possible

Maybe your problem is that you load audio from internet


I had ever added music from Spotify as the background music on my game. But to do that, it needs to convert Spotify music to local files via the DRmare Spotify Downloader Mac program. Then you are allowed to use Spotify music on the game.


Downloading music from Spotify is illegal. When buying Spotify you buy the right to listen to the music, but you don’t own the music. Therefore a you are not allowed to redistribute or use it like if it was seller on a CD.