Hey
Do you guys remember in old games when you just start and get in the title screen, a catchy and short music runs, with "press start" blinking on the screen, and when the music ends, the music doesn't replay until you actually press start and start a new game ?
I tried to do this on RPGMV. I thought it was as easy as calling AudioManager.playMe instead of playTitleMusic. But I ran into a problem.
The music plays once. Just fine. But when I get into the options (using Yanfly's Option Core) or going into the load screen, if I go back to the main menu, the music starts again. I wouldn't mind if my jingle was very short like "*DODON* SUPER MAGIC FIGHTERS 2" but my title menu screen is actually a short music and it feels weird when it starts again
My question is : Can I somehow put a condition like "If the player is coming from Scene_File, don't play the ME" ?
EDIT : I set a global variable in Scene_Boot and I set it to 1 after the ME starts (so I can put a condition to check if the ME already started). And I set it back to 0 when the player starts a new game or loads a file, so the ME can still play again when the game returns to title via Menu screen or event
Is that a clean solution or are there any risk of bug with this method ?
Do you guys remember in old games when you just start and get in the title screen, a catchy and short music runs, with "press start" blinking on the screen, and when the music ends, the music doesn't replay until you actually press start and start a new game ?
I tried to do this on RPGMV. I thought it was as easy as calling AudioManager.playMe instead of playTitleMusic. But I ran into a problem.
The music plays once. Just fine. But when I get into the options (using Yanfly's Option Core) or going into the load screen, if I go back to the main menu, the music starts again. I wouldn't mind if my jingle was very short like "*DODON* SUPER MAGIC FIGHTERS 2" but my title menu screen is actually a short music and it feels weird when it starts again
My question is : Can I somehow put a condition like "If the player is coming from Scene_File, don't play the ME" ?
EDIT : I set a global variable in Scene_Boot and I set it to 1 after the ME starts (so I can put a condition to check if the ME already started). And I set it back to 0 when the player starts a new game or loads a file, so the ME can still play again when the game returns to title via Menu screen or event
Is that a clean solution or are there any risk of bug with this method ?