BUG: Automatically tracking enemies cannot catch up with the player when the player is controlled to move.

AGMaker v1.0.18

Problem Description:

(1) Expected Behavior:

I want an enemy (object) or a certain resource (object) to automatically track the player’s movement. When its speed exceeds the player’s speed, it should catch up to the player, collide with them, and then disappear.

(2) Actual Behavior:

When the enemy (object) moves faster than the player, it quickly approaches the player. However, as the player continues to move, the enemy begins to slow down and eventually matches the player’s speed, never catching up to the player. (Only when the player stops moving can the enemy catch up to the player, collide with them, and disappear.)

Reproduction Steps:

  1. Download the attachment, unzip it, and run it by pressing F5.
  2. Use the WSAD keys to move, controlling the player to move to the right without releasing the keys.
  3. The enemy quickly approaches the player, but slows down at the edge of contact, maintaining the same speed as the player and moving right together without triggering collision detection. >>>>>> BUG

bug-minimal-repro.rar (2.2 MB)