Animating CollisionPolygon2D trigger exit signal at every modification

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

I’ve been trying to animate the CollisionPolygon2D of my character with the AnimationPlayer so that the collision fit better the sprite.

But as I have a Archer character and a Bat character, If an Archer targets the Bat by a body_entered signal if variables of the polygon changes, it trigger the body_exited signal of the Archer.

Trigger

Trigger again...

I wanted to know what should I do so that the exit signal does not trigger when the CollisionPolygon2D just gets animated.

Did you find a solution? I have this problem too, where editing the area’s collision polygon’s points fires the area exited signal.

TheSecurityDev | 2020-06-23 02:59