Main Menu
  • Welcome to The RPG Maker Resource Kit.

delay music script

Started by Edwin VanCleef, December 18, 2006, 05:36:46 PM

0 Members and 1 Guest are viewing this topic.

Edwin VanCleef

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...


The new generation will go to the distance... Will the distance between us smallen?

nevfx

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.

Me™

Have to use Windows Api's... not sure how. Try hbgames.org if you don't get answered here.
ALL HAIL ME™

Blizzard

#3
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. :-\
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Me™

Erm, I meant, checking with API's, iirc winapi's if the window is activie or not like you said.
ALL HAIL ME™

Blizzard

Oh, ok. As I said, that's actually not the main problem. The main problem would be the synthesizer and the MIDIs. =/
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Me™

Could use the same method as memorize bgm.
ALL HAIL ME™

Blizzard

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.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Me™

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.
ALL HAIL ME™