Is there a script so that the music is delayed when you minimalize the game window?
Because when you do, the music plays on, but the game doesn't. And some times, in my game, this screws the game up a bit because certain parts of the music are meant to be heard at certain parts of the game.
Hope ya understand...
I understand, but I don't know anys scripts that can do that, but I do know that it is possible, as I have seen this with many of the demo's of peoples games I've downloaded. I'll ask around, and come back here.
Have to use Windows Api's... not sure how. Try hbgames.org if you don't get answered here.
WINAPI doesn't control RMXP's music. You would need somebody to mess around with the API to check if the window is active (I've seen an example it's easy, less than 20 lines of code) and according to that the music should be "stopped". As there already is a grand problem with "stop" and "resume" when trying to implement these features themselves (mostly with MIDIs, mp3s usually work fine), I would say it's most probably possible, but hard to make as somebody would first need to change/reconstruct the way music is played in RMXP. :-\
To be honest I wish I could implement the feature that makes map BGMs continue after a battle from where it stoppped into my game, but the MIDIs are messing around as it's actually not easy to reconstruct Enterbrain's MIDI synthesizer. I might give that another try someday later. :-\ Also "resumed MIDIs" don't wamt to loop from the beginning. :-\
Erm, I meant, checking with API's, iirc winapi's if the window is activie or not like you said.
Oh, ok. As I said, that's actually not the main problem. The main problem would be the synthesizer and the MIDIs. =/
Could use the same method as memorize bgm.
Memorize BGM only restarts the last memorized BGM. It doesn"t "resume" it.
Believe me, I have tried many things already. It is possible to make an mp3 resume, but MIDIs not. They are just "started" from the memorized position and not being looped from the beginning when they end.
YOu want it to start from the memorized position? As it is the same as resuming when you memorize it, when you deactivate the window.