Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- - Fadeout screen color changer
- - Made by: Sixth
- This script changes the default fadeout screen color to whatever color you want.
- This is the color that will be used for the "Fadeout Screen" event command.
- The color can be changed anytime during the game too.
- To change the color, use this script call:
- $game_system.fadeout_screen_color = [R,G,B]
- Where R, G and B stands for the red, green and blue tone of the color.
- These take integer values from 0 to 255.
- The default fadeout screen color is [0,0,0], which is black.
- A white color would be [255,255,255].
- Place this script right at the top of your custom script list!
- =end
- class Game_System
- attr_accessor :fadeout_screen_color
- def fadeout_screen_color
- @fadeout_screen_color = [0,0,0] if @fadeout_screen_color.nil?
- return @fadeout_screen_color
- end
- end
- class Spriteset_Map
- def update_viewports
- @viewport1.tone.set($game_map.screen.tone)
- @viewport1.ox = $game_map.screen.shake
- @viewport2.color.set($game_map.screen.flash_color)
- @viewport3.color.set(*$game_system.fadeout_screen_color, 255 - $game_map.screen.brightness)
- @viewport1.update
- @viewport2.update
- @viewport3.update
- end
- end
- class Spriteset_Battle
- def update_viewports
- @viewport1.tone.set($game_troop.screen.tone)
- @viewport1.ox = $game_troop.screen.shake
- @viewport2.color.set($game_troop.screen.flash_color)
- @viewport3.color.set(*$game_system.fadeout_screen_color, 255 - $game_troop.screen.brightness)
- @viewport1.update
- @viewport2.update
- @viewport3.update
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement