0 votes

Hey, I am working on a game, where as the timer hits zero, the "light" or so to say (foreground), goes black(dark), except for a figure and a few buttons. How can i do that?

I tried,
var colorblack = Color(0,0,0,1)

but it only sets the back ground black.


asked May 16, 2017 in Engine by yeeshu06 (72 points)

1 Answer

0 votes

Clear color is to set how the display manages the screen buffer (to say it short).

You can use a CanvasModulate node to tint everything in a CanvasLayer.

But if you have things on many layers or mixed in a single one, maybe a big white light in substract mode could be better (opacity can be animated too), just change the light item mask and node's light masks to keep visible the ones you want.

answered May 16, 2017 by eons (7,786 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.