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.

RGSS for Loading BGM

Status
Not open for further replies.
Instead of loading the default Title BGM by using this code:

Code:
game_system.bgm_play(data_system.title_bgm)

...How could I load a BGM in the Audio/BGM folder called "Song" for Example? Thanks.

Don't even ask why, I know you can change the Title in the System tab but I need to do something diff ;)
 
You can try this:
$game_system.bgm_play(RPG::AudioFile.new(name,volume,pitch))

name is a string of the filename without extension (in your case is 'Song').
volume and pitch are two integers that mean those values (volume and pitch). You can ignore both to use default values:
$game_system.bgm_play(RPG::AudioFile.new(name))
 
entrando2;249347 said:
You can try this:
$game_system.bgm_play(RPG::AudioFile.new(name,volume,pitch))

name is a string of the filename without extension (in your case is 'Song').
volume and pitch are two integers that mean those values (volume and pitch). You can ignore both to use default values:
$game_system.bgm_play(RPG::AudioFile.new(name))

Thanks, that way worked perfectly:thumb: This thread can be closed now.
 
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