Fixed battle BGM fading in/being offset

This commit is contained in:
Maruno17
2021-02-27 21:11:24 +00:00
parent 1bf829c3f1
commit 19fe83f932
2 changed files with 4 additions and 1 deletions

View File

@@ -42,7 +42,10 @@ class Game_System
################################################################################
def bgm_play(bgm)
old_pos = @bgm_position
@bgm_position = 0
bgm_play_internal(bgm,0)
@bgm_position = old_pos
end
def bgm_play_internal2(name,volume,pitch,position) # :nodoc:

View File

@@ -26,7 +26,7 @@ def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
pbWait(Graphics.frame_rate/4)
pbMEStop
# Play battle music
bgm = pbGetWildBattleBGM([0]) if !bgm
bgm = pbGetWildBattleBGM([]) if !bgm
pbBGMPlay(bgm)
# Take screenshot of game, for use in some animations
$game_temp.background_bitmap.dispose if $game_temp.background_bitmap