I have a spaceship here that I want to be able to move left, right, up and down.
However, if you press the up and right arrow, it of course goes diagonal up and to the right.
Is there a way to limit the movement of the ship, so it can no longer travel in a diagonal direction?
I can find plenty of tutorials for movement and different ways to achieve the same thing, but all of them seem to still allow my character to move diagonally.