BUG:自动追踪玩家的敌人在玩家被控制移动时无法追上玩家。

AGMaker v1.0.18

问题描述:

(1)期望的现象:

我想让敌人(对象),或者某个资源(对象),自动追踪玩家移动。并在速度大于玩家速度时,追上玩家产生碰撞并消失。

(2)实际的现象:

敌人(对象)在大于玩家移动速度时,迅速向玩家靠拢,但是当玩家始终移动时,敌人开始减速,并最终与玩家速度一致,始终追不上玩家。(只有当玩家停止移动,敌人才能追上玩家,并发生碰撞并消失。)

复现步骤:

1.下载附件,解压F5运行。

2.wsad移动,控制player朝着右边移动,不要放开按键。

3.enemy迅速向着玩家靠拢,但是在接触的边缘减速,保持与player速度一致,一起向右移动,并不触发碰撞判定。>>>>>>>BUG

問題の説明:
(1)期待される現象:
敵(オブジェクト)またはあるリソース(オブジェクト)がプレイヤーの移動を自動的に追跡し、速度がプレイヤーの速度を上回った際にプレイヤーに追いついて衝突し、消えるようにしたい。
(2)実際の現象:
プレイヤーの移動速度より速い場合、敵(対象)はすぐにプレイヤーに近づくが、プレイヤーが常に移動し続けると、敵は減速し、最終的にはプレイヤーの速度と一致して、プレイヤーには追いつかない。(プレイヤーが移動を停止した場合のみ、敵はプレイヤーに追いつき、衝突して消滅する。)
再現手順:
1.添付ファイルをダウンロードし、F5を解凍して実行してください。
2. WSADキーで移動し、プレイヤーを右に動かすように操作し、キーを離さないでください。
3.敵は素早くプレイヤーに近づくが、接触の瞬間には減速し、プレイヤーと同じ速度を保って一緒に右に移動し、衝突判定は発生しない。>>>>>>>バグ

Problem description:
(1) Expected phenomenon:
I want the enemy (object) or a certain resource (object) to automatically track the player’s movement. When its speed exceeds that of the player, it should catch up with the player, collide with them, and then disappear.
(2) Actual phenomenon:
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 it, and disappear.)
Reproduction steps:

  1. Download the attachment, unzip it, and run it by pressing F5.
  2. Press and hold the “wsad” keys to move the player to the right.
  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-最小复现.rar (2.2 MB)