When both Left and Right (A and D key) are held, the player will continue to move in the direction they are currently moving, but with some differences:
The Animation will be set to Idle.
The velocity is inconsistent and changes with wall collisions.
Probably an easy fix, by just stopping horizontal movement when both keys are held.
When both Left and Right (A and D key) are held, the player will continue to move in the direction they are currently moving, but with some differences:
Probably an easy fix, by just stopping horizontal movement when both keys are held.