Body is apparently in Area2D when game launches, even if it physically is not.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Slime_Guy

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!

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

timothybrentwood | 2022-12-23 03:36

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

magicalogic | 2022-12-23 05:09

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.

Gluon | 2022-12-23 13:39