Enemies sometimes teleport to the side of an obstacle when colliding with the top of the obstacle. caused by the bottom of the enemy overlapping the top of the obstacle by one pixel, so that when the enemy moves to one side, a collision is detected in the x direction and the enemy is moved to the corresponding side
Enemies sometimes teleport to the side of an obstacle when colliding with the top of the obstacle. caused by the bottom of the enemy overlapping the top of the obstacle by one pixel, so that when the enemy moves to one side, a collision is detected in the x direction and the enemy is moved to the corresponding side