How do I disable diagonal movement if i am using touch screen on my phone to move character around?

I want the movement to be based on where the user taps on the screen , but i don't want the game to be 8 directional for the time being. How would I go about making him move without having to go diagonally? I have looked at other questions on here and they all seem to be GetKey related.