class Scene_Map
def update_transfer_player
return unless $game_player.transfer?
fade=false
# Change 10 to a switch for disabling black screen
if $game_switches[10]
Graphics.freeze
else
fade = (Graphics.brightness > 0)
fadeout(30) if fade
end
@spriteset.dispose # Dispose of sprite set
$game_player.perform_transfer # Execute player transfer
$game_map.autoplay # Automatically switch BGM and BGS
$game_map.update
# Change 10 to a switch for disabling black screen
if $game_switches[10]
@spriteset = Spriteset_Map.new # Recreate sprite set
Graphics.transition(20)
else
Graphics.wait(15)
@spriteset = Spriteset_Map.new # Recreate sprite set
fadein(30) if fade
end
Input.update
end
end