Making the player emit light?

Godot Version

4.2.2

Question

I was wondering if there was a way to make the player character emit light in a radius around themselves?

I want it to be an ability you can unlock and I know I can bind it to an input pressed event. But I’m not actually sure what to bind to that event.

You can make it look spherical if you make the texture of it to be a GradientTexture2D, and have the settings look something along the lines of this:

Then you can control the size with the texture’s size property(or the object’s scale, but that may make the pixels of the texture stretch weirdly) and change the intensity of the light with the energy property. You can toggle it w/ the node’s .visible property.

Hope I could help :slight_smile:

2 Likes

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