The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: even821 on May 14, 2010, 03:51:10 PM

Title: [resolved] fade out intro music?
Post by: even821 on May 14, 2010, 03:51:10 PM
is it possible to fade out the intro music when the player starts the game? if it is possible, how do i do it?
Title: Re: fade out intro music?
Post by: Zylos on May 14, 2010, 04:04:17 PM
Which RPG Maker? It'll require a bit of script editing.
Title: Re: fade out intro music?
Post by: even821 on May 14, 2010, 04:08:44 PM
im using rmxp. and do you know any scripts like that?
Title: Re: fade out intro music?
Post by: Zylos on May 14, 2010, 05:03:06 PM
No, but you can very easily edit this yourself here. Just follow these steps.

Go into the script editor and click on Scene_Title. Around line 113 and 114 is this code:

Code: [Select]
# Stop BGM
Audio.bgm_stop



To have the music fade, you need to replace line 114 with either one of these two codes:

Code: [Select]
Audio.bgm_fade(x)

OR

Code: [Select]
$game_system.bgm_fade(x)


Then all you have to do is simply replace x with how long you want the fade to last. The only difference between these two codes is that I think the former one measures time in milliseconds and the latter one measures time in plain seconds. There is only one catch to doing this. If you start on a map that auto-changes the music, the title screen music fade is going to just get cut out in favor of the new music. So, you'll have to have a starting map that has no music at first.
Title: Re: fade out intro music?
Post by: even821 on May 14, 2010, 05:33:48 PM
thank you so much!!! it worked perfectly  ;D
Title: Re: fade out intro music?
Post by: Zylos on May 14, 2010, 05:57:10 PM
No problem. If this is resolved, mind editing your first post to add [Resolved] to your topic title?
Title: Re: [resolved] fade out intro music?
Post by: even821 on May 14, 2010, 06:17:20 PM
done