Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Transfer Player Question

Status
Not open for further replies.
Hey guys!

Is it possible to do a "Transfer Player" without having the screen fade to black? Even if it is with some sort of line of code? Because I really need it!

Thanks
 

poccil

Sponsor

Then I've modified the script code.  Use the code shown below instead.  Change the 10 below (in both places) to the number of a switch to use for disabling the default behavior.

Code:
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

After installing the script, set switch 10 (or the switch number you chose) to ON before the Transfer Player event command.  You can set it to OFF afterwards.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top