Dimming the screen, simulating night in a 2D game
Asked Answered
V

1

0

How can I create a night in my 2D game? I've created a dark semi-transparent object that is supposed to simulate darkness, but the lighting isn't working as I want it to. I want the light to result in (the color of the surrounding area + the color of the light), but currently, I'm getting (the color of the surrounding area + the color of the object simulating night + the color of the light).

Essentially, I want the light to ignore the darkness layer. Are there alternative ways to create a screen dimming effect that might work better for me?

Velate answered 4/10, 2023 at 11:0 Comment(0)
N
0

Nanceynanchang answered 5/10, 2023 at 2:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.