0 votes

Hello all!

Basically, when I launch the game, for some reason it says that I have entered the Area2D when I, physically, am not even close to it. I've noticed the problem only occurs when it is overlapping with a different Area2D.

I check if I've entered the Area2D using this little thing :

print(str("player has entered"))

Any help would be much appreciated!

Godot version 3.5.1
in Engine by (12 points)
edited by

Are you changing the scale values of your collision shapes? Doing so is not recommended and can cause undefined behavior.

How have you connected your signals? Do you mind sharing the code.

Try using the print function to print out their global positions in the terminal. You will no doubt find that they are in the same position but for some reason your sprite animation is in a different place or the area2d is positioned at 0, 0 instead of where you think it is.

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.