You mean the character is only walk under the light, is it correct?
If he touches the dark, game over?
No. I want my character to walk on a dark road, and as you progress, there is a little light in front of you, you walk around with a lantern in the same hand and it illuminates wherever you hold it. Something like that.