I fixed the bug. Your welcome. If the bug still appears idk why it didn’t show to me when I made the change.
Credit: @Kean683 Notes: The only change I made is the enemy sprites to make the detection boxes to a rectangle instead of a circle.