0 votes

Hi,

I am struggling as to how to set up my Light2D in a TileMap.
The best I got is a Light on a canvas below the tilemap. But I want it inside the black walkable area, so the exact opposite (see screenshot).
The light is omitted by the blue sprite.
The Light Mask is set to 1 for everything

Walkable area is black

Is there anything I need to set up in the TileMap itself?

Thanks!

Edit: Picture Link: https://imgur.com/a/Nrx1MLX

in Engine by (21 points)
edited by

1 Answer

+1 vote
Best answer

I noticed that the light does not work on the black surface I used.

I modulated the color of the TileMap and then the light showed as expected.

by (21 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.