I am actually working on a little project and it seems that i need some help with the controls of the player.
What i want to do is when " Move right" is pressed the player keep going to the right until" Move Left" is pressed he will then start moving to the left , i have only two direction in my game, left or right .
Here's how far i got :
But the problem here is there is no animation( and the speed is not the same as a regular controls ),the player seems to slide.
So ? Any solutions ?