Main Menu
  • Welcome to The RPG Maker Resource Kit.

[resolved] fade out intro music?

Started by even821, May 14, 2010, 03:51:10 PM

0 Members and 1 Guest are viewing this topic.

even821

is it possible to fade out the intro music when the player starts the game? if it is possible, how do i do it?

Zylos

Which RPG Maker? It'll require a bit of script editing.




even821

im using rmxp. and do you know any scripts like that?

Zylos

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:

# Stop BGM
Audio.bgm_stop




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

Audio.bgm_fade(x)

OR

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




even821

thank you so much!!! it worked perfectly  ;D

Zylos

No problem. If this is resolved, mind editing your first post to add [Resolved] to your topic title?




even821