About Battle Start and All That,

The Lucid Gamer

The Archfiend of Trial & Error
Member
Joined
Aug 4, 2015
Messages
7
Reaction score
0
First Language
English
I was wondering for those familiar with Ruby Scripting if there was a way to delay the Battle BGM from playing until the Battle Start animation was done. Say if I wanted to have the animation play, it cuts the area bgm as normal, but it waits until the animation is finished and a battle begins before starting the bgm. I wanted to know if there was a way to do this without adding a prominent silence at the beginning of the track file, as I didn't want to have a really weird loop during battle.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Try to put this short script into your script editor

Code:
class Scene_Map
  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
end

class Scene_Battle
  alias start_bgm_delay start
  def start
    start_bgm_delay
    BattleManager.play_battle_bgm
 end
end
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

The Lucid Gamer

The Archfiend of Trial & Error
Member
Joined
Aug 4, 2015
Messages
7
Reaction score
0
First Language
English
Try to put this short script into your script editor

Code:
class Scene_Map
  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
end

class Scene_Battle
  alias start_bgm_delay start
  def start
    start_bgm_delay
    BattleManager.play_battle_bgm
 end
end
Thank you!


If you don't mind, I made a quick edit for the effect I was thinking of:

class Scene_Map
  def pre_battle_scene
    Graphics.update
    Graphics.freeze
    @spriteset.dispose_characters
    BattleManager.save_bgm_and_bgs
    RPG::BGM.stop
Graphics.wait(30)
    Sound.play_battle_start
  end
end

class Scene_Battle
  alias start_bgm_delay start
  def start
    start_bgm_delay
    BattleManager.play_battle_bgm
 end
end
This was very helpful, and I wish you a good day.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top