Chaos Project

RPG Maker => Tutorials => Tutorial Requests => Topic started by: ArcaneAlchemy on January 11, 2013, 06:30:54 pm

Title: Play BGM after battle where it left off
Post by: ArcaneAlchemy on January 11, 2013, 06:30:54 pm
I am sure that I have seen something about a continuous BGM before but I was wondering if there was a good way to return to the BGM where it left off after a battle. I am a ruby programmer, so I would prefer a RGSS scripting based answer and I would imagine that in this case, it would probably have to be. Anyway, I am thinking of something like a pause feature, but I am not sure how to do that or how to initiate the music again as soon as the scene returns to the map. Anyway, I know there is a ninja on here that will figure it out faster than me so thanks in advance :). If I figure it out before that though, I'll go ahead and post it here
Title: Re: Play BGM after battle where it left off
Post by: KK20 on January 11, 2013, 07:18:38 pm
Pretty sure this has been asked for countless times and there are numerous scripts that do this.
Title: Re: Play BGM after battle where it left off
Post by: G_G on January 11, 2013, 08:36:28 pm
In order for this to work, you would need to rewrite the Audio module and use a custom library. ForeverZer0 did something similar that relied on using Microsofts audio library, however, his method wasn't sure to work the same on every system. You can write your own Audio module using a library such as fmod or something similar, you'll just have to call upon a bunch of Win32api calls. But there's no real way to do it right now and it won't be something as simple as a small snippet either. You might be able to find a script over at HBGames.org, I think I saw someone recreate the Audio module over there before.
Title: Re: Play BGM after battle where it left off
Post by: ArcaneAlchemy on January 11, 2013, 09:00:49 pm
Okay, that's what I needed to hear. Yeah, I think that the module rewrite is the way to go in the event that someone wants to run on a Linux or Mac. I'll check out that site and hopefully resolve the issue.

EDIT:
Ah, the only stuff I found was tinkering with the registry which boots out any possible cross-compatibility. Oh well, Windows only for now. If I get a wild hair, I might try and figure out my own solution that will add a pause feature. Anyway, here is the link I found for anyone else who is looking for it.

http://www.santuariorpgmaker.com/forum/index.php?topic=5174

Please don't double post within a 24 hour period, thanks! ~ gameus
Title: Re: Play BGM after battle where it left off
Post by: ArcaneAlchemy on January 12, 2013, 08:45:06 am
I feel like such a tard. Forever Zero has something right on here far beyond what I even dreamed of. Sorry for the waste of time.