Introduction: In default, after battle, BGM will restart. Now we can "pause" BGM (not pause but as pause) and play at position after battle. Change battle BGM to ME, a simple way. I'm a stupid.
Demo: http://sites.makegameviet.com/002/scrip ... _to_ME.zip (please copy a game.exe into project to play).
Script: In class Scene_Map find:
Then relace with:
FAQ: You must have ME long enough to play in battle because ME doesn't loop.
Demo: http://sites.makegameviet.com/002/scrip ... _to_ME.zip (please copy a game.exe into project to play).
Script: In class Scene_Map find:
Code:
def call_battle
# Clear battle calling flag
$game_temp.battle_calling = false
# Clear menu calling flag
$game_temp.menu_calling = false
$game_temp.menu_beep = false
# Make encounter count
$game_player.make_encounter_count
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
# Play battle start SE
$game_system.se_play($data_system.battle_start_se)
# Play battle BGM
$game_system.bgm_play($game_system.battle_bgm)
# Straighten player position
$game_player.straighten
# Switch to battle screen
$scene = Scene_Battle.new
end
Code:
def call_battle
# Clear battle calling flag
$game_temp.battle_calling = false
# Clear menu calling flag
$game_temp.menu_calling = false
$game_temp.menu_beep = false
# Make encounter count
$game_player.make_encounter_count
# Memorize map BGM
$game_temp.map_bgm = $game_system.playing_bgm
# Play battle start SE
$game_system.se_play($data_system.battle_start_se)
# Play Battle BGM as ME
Audio.me_play("Audio/BGM/" + $game_system.battle_bgm.name, $game_system.battle_bgm.volume, $game_system.battle_bgm.pitch)
# Straighten player position
$game_player.straighten
# Switch to battle screen
$scene = Scene_Battle.new
end
FAQ: You must have ME long enough to play in battle because ME doesn't loop.