1. Prepare your BGM you want to use. - Add a music to sound as the naming rule below. Rule: If your music name is 'Name', the music name should be 'Name (Intro)' and 'Name (Main)'. 'Name (Intro)' will be needed only when that music has an intro phrase like drum fill-in. 'Name (Main)' is the main loop of the music. If you need it to loop, the end of that music should be connected to the beginning of it smoothly. 2. Set the music information to some lists. - Append a title name, which is like 'Name' described avobe, to '_Name' list. - Append 1 to '_Repeat' list if you want to loop that music. If you don't need to do it, append 0 instead. - To do the above, the function of '_Add' is prepared. 3. Play the music in the game. - Just send the event name of 'Track' + track number, it is like 'Track1' for the first music. - According to the number of your songs, add the event of 'TrackN'. - If you send the event while another BGM is playing, the current BGM will be faded out and the new one will start after stopping the previous one.
* 2025/06/12 Bug Fixed - Initialized internal list before using. I am going to use this one in the future instead of the previous version described below. This is a super lightweight version of BGM system but it's so enough to almost all games. The previous version is https://scratch.mit.edu/projects/1098510080/, but it seems like too heavy or not simple for games, that's why I made this one to make it simple and lightweight.