Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved]BGM Splash Screen different for Title_Scene

Status
Not open for further replies.
I'm using Seph's Intro & Splash screen script, but I want to change the BGM that plays in the background to be different from the BGM played on the title screen.

Right now the original scripts looked like:

Line 153:
Code:
Introduction_BGM       = load_data('Data/System.rxdata').title_bgm

and...

Line 186:
Code:
  def main_audio
    # Play Introduction BGM
    Audio.bgm_play('Audio/BGM/' + Introduction_BGM.name)
  end

I'm trying to change these two codes to play instead: Audio/BGM/'favor_house_atlantic' (a file I already put into the Audio/BGM folder.) I thought the codes to play the new audio file would be:

Code:
Introduction_BGM       = load_data('Audio/BGM/'favor_house_atlantic')

and

Code:
def main_audio
    # Play Introduction BGM
    Audio.bgm_play('Audio/BGM/'favor_house_atlantic')
  end

but that just gives me errors. Any suggestions?':|
 
You need only to modify the

Code:
Introduction_BGM       = load_data('Audio/BGM/'favor_house_atlantic')

Line. Just create a new audio file for this.

Syntax for creating an RPG::AudioFile
~ RPG::AudioFile.new(filename, volume, pitch)


Code:
Introduction_BGM       = RPG::AudioFile.new('favor_house_atlantic', 100, 100)

That should do the trick. ;)
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top