Hello I am making a 2.5D Mario type game.
Below is a part of my player script. In that script when my player is moving in the right direction, if I press a ‘left arrow’ key or ‘a’ key my player rotates in that direction and moves. The issue is while my player is moving in the right direction and if I press left arrow key my player rotates in the left direction but moves in right direction. The same happens when my player is going in the left direction. How do I make sure that it takes only one key input. Can you please help me.
