Fix light layer shake
This commit is contained in:
parent
e9d5908bc6
commit
3f53cad601
|
@ -244,10 +244,12 @@ class Spriteset_Map
|
||||||
# Set screen color tone and shake position
|
# Set screen color tone and shake position
|
||||||
@viewport.tone = $game_screen.tone + $game_map.ambient * (1.0 - @bulb.opacity / 255.0)
|
@viewport.tone = $game_screen.tone + $game_map.ambient * (1.0 - @bulb.opacity / 255.0)
|
||||||
@viewport.ox = $game_screen.shake
|
@viewport.ox = $game_screen.shake
|
||||||
|
@viewport_lights.ox = $game_screen.shake
|
||||||
# Set screen flash color
|
# Set screen flash color
|
||||||
@viewport_flash.color = $game_screen.flash_color
|
@viewport_flash.color = $game_screen.flash_color
|
||||||
# Update viewports
|
# Update viewports
|
||||||
@viewport.update
|
@viewport.update
|
||||||
@viewport_flash.update
|
@viewport_flash.update
|
||||||
|
@viewport_lights.update
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue