0 votes

not sure what is entirely going on but could someone help me fix the black showing up on my screen when I get close to my wall?

https://streamable.com/qnin7e

Godot version 3.3.2
in Engine by (19 points)

1 Answer

+1 vote

From my experience this occurs when the centre of your player's Light2D node goes through your occluder tile.

This is caused by the centre of the player's Light2D not being within the player's collider shape. In your case it appears to be slightly above the player. This means the light source goes through top walls before the player stops.

To fix this, have you made sure that your player scene has the centre of its Light2D object inside the player's collider?

by (27 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 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 webmaster@godotengine.org with your username.