RPG Maker Forums

I've been experimenting with Vlue's Advanced Game Time in order to fix some bugs with Khas Lighting.
 
A problem that I've been encountering is that every time I go from a non-tinted map to a tinted map, then to the previous map, and then to the tinted map.
 
Here's a video to better explain the problem:

https://www.youtube.com/watch?feature=player_videoeditor&v=r_lt99lxoEg

What I believe is the problem is in these lines highlighted in red:

def use_default
return if self.disposed?
create_contents if self.bitmap.height != Graphics.height
create_contents if self.bitmap.width != Graphics.width
self.visible = SceneManager.scene.is_a?(Scene_Map)
self.visible = true if SceneManager.scene.is_a?(Scene_Battle) and BATTLE_TINT
self.visible = false if SceneManager.scene.is_a?(Scene_Title)
self.visible = false if no_tint
return unless self.visible
min = $game_time.min
return if min == @old_time
@old_time = min
rgba = get_new_tint(min)
return if rgba == @old_tint
@old_tint = rgba
self.bitmap.clear
self.bitmap.fill_rect(0,0,Graphics.width,Graphics.height,Color.new(rgba[0],rgba[1],rgba[2],rgba[3]))
end

def use_khas
begin
temp = $game_map.light_surface.opacity
rescue
return
end
self.visible = false

$game_map.effect_surface.set_color(0,0,0) and $game_map.effect_surface.set_alpha(0) if no_tint
return if no_tint
min = $game_time.min
return if min == @old_time
@old_time = min
rgba = get_new_tint(min)
return if rgba == @old_tint
@old_tint = rgba
$game_map.effect_surface.set_color(rgba[0],rgba[1],rgba[2]) and $game_map.effect_surface.set_alpha(rgba[3])
end
The purple text is the default option where Khas or Victor's Lighting Effects aren't implemented.

The default option works fine without a problem.

Is there anything that can be done to fix this problem?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top