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.

Fade to White

This one's pretty simple, is there a way with events to have a fade to white when transferring the player from one map to another? Screen tints and pictures aren't helping.
 
Actually, screen tints and pictures are your solutions. Using the "Change Screen Color Tone" command, if you move the sliders to the right you will get a fade to white screen. Alternatively, you can create a completely white-filled image, and display it as a picture at 0 opacity, then move it to 255 and back (the first method is much easier, though).
 
It's not the event commands that are the problem, it's the transitions you're choosing in the database. They override the commands you give when you teleport. Change the transitions for teleporting to "Do Not Erase" and "Do Not Show", after that tinting the screen white before teleporting should work fine.
 
Try adding this before Main in the scripts editor:
Code:
class Scene_Map
  
  def update_transfer_player
    return unless $game_player.transfer?
    fade = (Graphics.brightness > 0)
    Graphics.freeze
    white = Viewport.new(0, 0, 544, 416)
    white.z = 9999
    white.color.set(255, 255, 255)
    Graphics.transition(15)
    Graphics.freeze
    @spriteset.dispose
    $game_player.perform_transfer
    $game_map.autoplay
    $game_map.update
    Graphics.freeze
    @spriteset = Spriteset_Map.new
    Input.update
    white.dispose
    white = nil
    Graphics.transition(15)
  end
end
 
Try this ^^

Code:
class Scene_Map

  FadeToWhiteSwitch = 60

  def update_transfer_player
    return unless $game_player.transfer?
    fade = (Graphics.brightness > 0)
    Graphics.freeze
    white = Viewport.new(0, 0, 544, 416)
    white.z = 9999
    color = $game_switches[FadeToWhiteSwitch] ? 255 : 0
    white.color.set(color, color, color)
    Graphics.transition(15)
    Graphics.freeze
    @spriteset.dispose
    $game_player.perform_transfer
    $game_map.autoplay
    $game_map.update
    Graphics.freeze
    @spriteset = Spriteset_Map.new
    Input.update
    white.dispose
    white = nil
    Graphics.transition(15)
  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