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.

Script that makes mapBGM continues on when the battle starts

All I want is in the topic subject.

When I set the battleBGM as the same as the mapBGM, it plays the music again when the battle starts.

What I want is when the battle starts the mapBGM continues on.

Could anyone write that script for me or let me know an available script?
 

Atoa

Member

just look in scene map for this:
Code:
  def call_battle

    @spriteset.update

    Graphics.update

    $game_player.make_encounter_count

    $game_player.straighten

    $game_temp.map_bgm = RPG::BGM.last

    $game_temp.map_bgs = RPG::BGS.last

    RPG::BGM.stop

    RPG::BGS.stop

    Sound.play_battle_start

    $game_system.battle_bgm.play

    $game_temp.next_scene = nil

    $scene = Scene_Battle.new

  end

 
and remove these lines
Code:
    Â RPG::BGM.stop

    RPG::BGS.stop

Then all you must do is to set the battle bgm to the same as the map bgm via events.
That way you can set differents musics for bosses if you need.
 

Jason

Awesome Bro

Atoa":3ogma2tr said:
just look in scene map for this:
Code:
  def call_battle

    @spriteset.update

    Graphics.update

    $game_player.make_encounter_count

    $game_player.straighten

    $game_temp.map_bgm = RPG::BGM.last

    $game_temp.map_bgs = RPG::BGS.last

    RPG::BGM.stop

    RPG::BGS.stop

    Sound.play_battle_start

    $game_system.battle_bgm.play

    $game_temp.next_scene = nil

    $scene = Scene_Battle.new

  end

 
and remove these lines
Code:
     RPG::BGM.stop

    RPG::BGS.stop

Then all you must do is to set the battle bgm to the same as the map bgm via events.
That way you can set differents musics for bosses if you need.

Lol I spent an hour trying to find those lines, and when I finally find them, and get ready to post an answer, you've already done it ! Damn you Atoa... Now lets settle it like men and have a pint :cheers:
 

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