light 2D node dosent show

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Anastasia

So I’ve got a texture, a black backround, and the light is not hidden in any way. yet its nowhere to be seen
it also makes the light gray shadow on my character dissapear
here is a screenshot

There is no screenshot. Can you add one?

johnygames | 2020-01-06 12:02

does this work?

Anastasia | 2020-01-06 12:44

or this

Anastasia | 2020-01-06 12:45

one more thing worth mentioning, the backround is behind the light

Anastasia | 2020-01-06 12:46

:bust_in_silhouette: Reply From: johnygames

The way Light2D works is that it brightens the image. You pick a texture for the Light and wherever that texture overlaps with a sprite, the sprite becomes lighter. That means that you can only light objects which are darker than the Light itself. Your sprite is already white, which is the brightest of colours. Therefore, it does not appear lit. You can play with the modes and the colors and see if anything does the trick for you, but do not expect white to become whiter.

What you can do is choose the Mix mode from the Mode menu and set a colour for your Light. Then you can increase the intensity of the Light which will cause the white sprite to bacome tinted.

I need to light the objects around the sprite. The pc is a light source

Anastasia | 2020-01-06 13:26

I’m afraid this dosen’t work. i can see the Player changing, but not the things around it. I just need a halo of light around the player…

Anastasia | 2020-01-06 13:55

There may be more advanced ways of doing this (like with mask for example), but why don’t you place a sprite with an alpha as a child of your character? That will give the halo effect. The light will do its job lighting the surroundings and the halo sprite will be used for the effect.

johnygames | 2020-01-06 14:29

:bust_in_silhouette: Reply From: Sakura37

Light2D>Range>Layer min
If it’s 0, modify the value from 0 to -1. I had the same problem yesterday and that seemed to work.

Hello! Thank you so much! But for some reason it still does not work! It no longer brightens my player but it dosen’t brighten the backround either :confused:
here is a screenshot

Anastasia | 2020-01-06 17:48

ohh i thought that it didn’t brighten the background,i couldn’t tell from the first screenshot

see here - it’s a clip from youtube, and it shows how can you make a sprite not brighten. Maybe you can use that video to try something for your game,maybe you can make it work.(and make the value from layermin back to 0)

Sakura37 | 2020-01-06 18:09

greate! thanks for your answer ít’s worked for me

satochi2017 | 2021-02-06 18:38