+1 vote

I'm not sure if this is a bug or I'm just missing something. This is in 2D:

I have a light set up that moves with the player. Then, I have light occluders which should block the sight of the player.

Sometimes, the occluders would not casting shadows on tiles on a TileMap. Note that this does not happen while the game is running but after the play button is pressed. It seems some hidden variable is changed which triggers this. Note also that shadows are still cast on sprites. And no, I did not change anything in the project (Play > Check shadows > ok > close > Play > Check shadows > suddenly not ok).

This happens for all TileMaps in the scene

I've also observed that if I change the light mask of one of the TileMaps. Then change it back to where it was, sometimes, the shadow casting is fixed.

I'm thinking of using a blank sprite to get around this but maybe I am just missing something.

Is this a bug? What could I possibly be doing wrong?

in Engine by (39 points)

Please log in or register to answer this question.

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.