How to avoid the "death wobble"?

When creating enemies, using VS’s import animation to create dynamic enemies is very convenient.

However, if you set the enemy’s animation direction to automatically flip towards the hero while making the enemy move towards the hero,

and the hero is stationary, the enemy will疯狂ly perform a “death wobble” motion in front of the hero.

As shown in the figure below:

774fe0d8ad89e419afb75257aa033717

(1) If you want to avoid this phenomenon, you may need to fine-tune the enemy’s flipping with code, which can be very troublesome.

(2) Is there a better way to simply solve this problem?

(3) Or can the official version provide a feature that allows setting a delay time for automatic flipping to alleviate this issue?

I haven’t tried it, but how about adding an inverted idle state to the movement state?
For example, compare the HERO’s X-coordinate with your own X-coordinate. When the difference falls below a certain number of pixels, transition to an inverted idle state where the facing direction is not changed. After a specified number of seconds, return to the normal idle state.

Received, I feel this approach should solve the problem! Thank you for your reply!