New account registration is temporarily disabled.

[RMVX ACE] [RGSS] DELAY BEFORE BATTLE BGM STARTS

Posts

Pages: 1
I'm curious if there's an easy way to place a second of silence during the battle transition so that the sound effect leading into the battle plays cleanly (without the battle bgm playing over it). I've been able to do this the ghetto way by adding a second of silence to each battle track and then having the bgm loop point after that silence, but I've been trying to run the game through a program called mkxp, which doesn't recognize the nonstandard loop points. I assume that the answer is here under Scene_Map:

#--------------------------------------------------------------------------
# * Preprocessing for Battle Screen Transition
#--------------------------------------------------------------------------
def pre_battle_scene
Graphics.update
Graphics.freeze
@spriteset.dispose_characters
BattleManager.save_bgm_and_bgs
BattleManager.play_battle_bgm
Sound.play_battle_start
end


I just don't know if there's a command to delay the battle bgm from playing for a second as the sound effect is going.
Marrend
Guardian of the Description Thread
21806
I don't know about pausing audio for exactly one second during the actual battle transition. However...

class Scene_Map < Scene_Base
  def pre_battle_scene
    Graphics.update
    Graphics.freeze
    @spriteset.dispose_characters
    BattleManager.save_bgm_and_bgs
    Audio.bgm_stop
    Audio.bgs_stop
    Sound.play_battle_start
  end
  
  def perform_battle_transition
    Graphics.transition(60, "Graphics/System/BattleStart", 100)
    Graphics.freeze
    BattleManager.play_battle_bgm
  end
end


...this seems to stop BGM/BGS audio just before the battle transition, and starts the battle BGM after it's done transitioning.
Hey, that worked like a top! Thanks so much!
Pages: 1