RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
delay music script

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
A pirate's life for me
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?

*****
Rep:
Level 89
I'm back again. Again.
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.

***
Rep:
Level 88
Random-Idiot
Have to use Windows Api's... not sure how. Try hbgames.org if you don't get answered here.
ALL HAIL ME™

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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. :-\
« Last Edit: December 19, 2006, 06:06:10 PM by Blizzard »
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!

***
Rep:
Level 88
Random-Idiot
Erm, I meant, checking with API's, iirc winapi's if the window is activie or not like you said.
ALL HAIL ME™

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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!

***
Rep:
Level 88
Random-Idiot
Could use the same method as memorize bgm.
ALL HAIL ME™

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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!

***
Rep:
Level 88
Random-Idiot
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™