Not a clear understanding of how PointLight2D works

Godot Version

4.2.2

Question

I want to make a fire light around a sprite(in my case an arrow). I used PointLight2D with gradient. The light is displayed on the player, but not around the arrow itself. I realize that I’m misunderstanding how this node works, but I can’t figure out how to achieve the desired effect. Absolute beginner in gamedev, appreciate any help. On the first screenshot is what I have, on the second - a simplified representation of what I want to achieve


Is the pointlight a child of the player or the arrow?

is a child of the arrow

Can you show your pointlight-scene?

you can click on the Gradient next to “Gradient” and change the colors there. change it to the desired color and try again

result the same. To clarify the situation, I followed this guide and repeated all the steps exactly

Well your light is working, you just need to darken the scene. You can use a CanvasModulate-Node to create darkness

2 Likes

Ty a lot! This worked.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.