Weird speed increase for enemy when very close to player.

Godot Version

4.4.1 stable

Question

I have an enemy that is supposed to find its path to the player if the player comes within range. Now, when the player gets too close from a bottom direction the enemy blocks further movement in its direction and follows the player at the player speed, which is 5 times its own speed.
I have a video of the behavior but i can not post it as a new member.

If this is for a top-down game maybe you need to set your CharacterBody2Ds to Motion mode “Floating” instead of "Grounded’ or else they may treat other characters as moving platforms.

2 Likes

I actually figured it out shortly afterwards, and was gonna post the answer as well. Thanks though!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.