Script Call For Fading In And Out To White?

Discussion in 'RGSSx Script Support' started by Neo_Kum0rius_6000, May 18, 2019.

  1. Neo_Kum0rius_6000

    Neo_Kum0rius_6000 Not Your Ordinary Guy! Veteran

    Messages:
    178
    Likes Received:
    336
    Location:
    Russia
    First Language:
    english
    Primarily Uses:
    RMVXA
    Hey yall its me again!!!
    If you don't remember I asked for a really cool NES Fade Out script,
    Its really awesome and I'd like to thank the legendary Theo Allen for making it!!!

    This is great but there's one big problem...
    My game uses a lot of fade out and fade in commands
    that don't transfer the player it really breaks the retro
    consistency in my game...

    Is there a script call or something like that in RPG Maker
    to make the screen fade in and out to white?
    or could someone edits Theos script to
    override the fade out and in commands?
    Theo's Script
    Code:
    class Scene_Map
      Duration = 40*2
      #--------------------------------------------------------------------------
      # * Fadein Screen
      #--------------------------------------------------------------------------
      def white_fadeout(duration)
        duration = Duration
        @tone = $game_map.screen.tone.clone
        fade_loop(duration) do |v|
          if v <= Duration*0.5
            $game_map.screen.tone.blue = -255
          elsif v <= Duration*0.75
            $game_map.screen.tone.red = -255
          else
            $game_map.screen.tone.green = -255
          end
        end
      end
      #--------------------------------------------------------------------------
      # * Fadeout Screen
      #--------------------------------------------------------------------------
      def white_fadein(duration)
        duration = Duration
        fade_loop(duration) do |v|
          if v <= Duration*0.25
            $game_map.screen.tone.blue = @tone.blue
          elsif v <= Duration*0.50
            $game_map.screen.tone.red = @tone.red
          elsif v <= Duration*0.75
            $game_map.screen.tone.green = @tone.green
          else
            break
          end
        end
      end
    end
    Whoops I posted in the wrong thread can a Mod
    move this?
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,400
    Likes Received:
    10,415
    First Language:
    English
    Primarily Uses:
    RMVXA
    'Scripts' is where people who have written completed scripts that they want to share with others can post them.

    I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,590
    Likes Received:
    348
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    If you want to use a switch to control when you can do the effects Theo made for you then you could add in an if command to do this.
    class Scene_Map
    if $game_switches[X]
    Duration = 40*2

    then at the bottom of the script add in an extra end
     
    #3

Share This Page