Microsoft MakeCode

How to add Music

Please help.

I want to add a track of music to my game. Music that will repeat during a level. However, the music won’t play until after all the enemies spawn on screen.

What do I do?

1 Like

Did you set a repeat forever block containing your music? This will make it play forever, except when a splash or long text appears. Hope this helped :slight_smile:

I did, but it doesn’t play until the second level.

Can you share a link to your game? (Looks like arcade.makecode.com/example, not arcade.make code.com/#editor)

Can you show me the code?