Musicoverlap question

StrikerX

Member
In metrovania games, using branchs,when I configure musicoverlap 1 in levels.txt, setting the song's address in the first stage, the following ones continue to play that song (as long as I don't set music on them). OK. The problem is when the load game, the music is not played. What to do? Use nosave in all stages except the first?
 
Thank you very much! This works perfectly! 😌 I came to realize I missed and didn't bother using a few important ones including updated.c and musicPlay(). Well, it's all good. I got it working.

I'm really loving this result! 🥰
Glad to know that the code worked :)
The last step is the music folder's selection. Note in the musicStage() function that I added a parameter to change the folder where the music will be played.

C:
//GET CURRENT MUSIC STYLE
if(mStyle == "root"){folder = "data/music/";}else{folder = "data/music/"+mStyle+"/";}

If you use "root", the script will play all the tracks directly inside the "data/music" folder, which is the root.
C:
musicPlay(music, "root", 1);

Otherwise you can fill this parameter with the subfolder's name, like the example below, making it to play the tracks inside the subfolder's root ("data/music/subfolder/").
C:
musicPlay(music, "subfolder_name", 1);
 
Awesome! I would like to change music based on each version in the playlist like Tekken 2 and 3 which they have both remixes (console version) and originals (arcade version). But I'll open a new thread for including a new menu option as extra options. I bet it's "in_menuscreen" variant for creating a new option because I want to change the playlist from green to red or whatever version from the playlist like Tekken 2-3. I remember listening to different versions from those games when I was young. You get to choose which music version for playing in the adventure/arcade mode.

Can you provide the first step of creating a new option menu in the menu screen? I want to make a new option for the music menu.

By the way, I copied and pasted the current music style for playing the current music in music.c file, but it crashes. Maybe the varname is not specified? I'm thinking we can have the new option menu which is called "Extra Options" in it. It would be so awesome to see how it's set up, especially music.
 
By the way, I copied and pasted the current music style for playing the current music in music.c file, but it crashes. Maybe the varname is not specified?
I didn't understand this part, please can you show the code? Did you already create a menu inside the music.c scripts?
 
I didn't understand this part, please can you show the code? Did you already create a menu inside the music.c scripts?
Maybe (yes and no)? I mean this part below, and I thought I had to put it under the musicStage() function. I added it which was a mistake and let it crash. Yet, I realized it's under the musicPlay() function, which I didn't take a look. Then I removed it from musicStage().
C:
    //GET CURRENT MUSIC STYLE
    if(mStyle == "root"){folder = "data/music/";}else{folder = "data/music/"+mStyle+"/";}

Sorry about it.
 
Back
Top Bottom