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.

Make a player teleport without the black screen...

Saar

Member

Well when you do "Transfer player" it's doing a black screen and transfer him, Is there any way to cancel it so the player just be shown in the next map?
 

poccil

Sponsor

I assume this is in RPG Maker VX.  The Scene_Map class has a function, "update_transfer_player", that lets you
customize how the screen will appear when the player transfers to a new map.  The method can be redefined as follows (put the code below in a new script section, under the "Insert here" section):

Code:
class Scene_Map
  def update_transfer_player
    return unless $game_player.transfer?
    Graphics.freeze
    @spriteset.dispose              # Dispose of sprite set
    $game_player.perform_transfer   # Execute player transfer
    $game_map.autoplay              # Automatically switch BGM and BGS
    $game_map.update
    @spriteset = Spriteset_Map.new  # Recreate sprite set
    Graphics.transition(20)
    Input.update
  end
end
 

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