I get how to do the directional and turn sprite and animation.
what i want to make the player only move in one direction such as left, up, right, down.
And if the player press two or more button the same time do not move. The codes works for the up+down=stop moving that works. the Left+right=stop moving works.
What is strange is that Up+right = stop moving does not work because even though the sprite animation stop moving yet the sprite is slowly being dragged upward.
And the same happens when i press down Left How can i fix that I tried setting the speed to 0 yet it still drag itself upward or downward.
Could this be a bug or is there something else going on that i cannot see