Main Menu Music?

Aerisetta

Active member
I want to change the main menu music without renaming the track to the current name (cause I use that some in some levels)

Where can i change it? or is it hard coded?
 
Well, to be honest, I don't know if there is any other way to indicate to the engine what music it should play. That's why I've put together a script that simply detects when we're in the menu and turns on the music what we choose. It is possible that there is a better way to do this but I give below my suggestion, which may help you.

updated.c
Code:
void main()
{
	if(openborvariant("in_menuscreen") || openborvariant("in_titlescreen"))
	{		
		if(getlocalvar("MusicMenu") == NULL())
		{
			playmusic("Data/Music/...", 1);
			setlocalvar("MusicMenu", 1);
		}
	}
	else {if(getlocalvar("MusicMenu") != NULL()) setlocalvar("MusicMenu", NULL());}
}
 
Back
Top Bottom