limiting movement to 1 direction at a time?

helo, ive made a character with paperflipbook, with facing 4 direction and movement…

when moving, is there a way to make the movement limited to 1 direction at a time… (x movement or y movement only) not both.
making it not look like strafing…

(think pokemon movement… up, down, left, right)
edit: i forgot to mention… this is in using “AI” move to location…

Just filter out the movement requested, Break Vector the movement lines and reconnect what you want to a Make Vector, the blank ones will be zeroed out.

tried that… doesnt work… cant get it to know which axis to perform first… x axis or y axis…
the ai move to location automatically pathfinds with diagonal pathing…

if i save the current location, and make it move to location with
(1st point) x target and y current,
then
(2nd point) x target and y target… it moves correctly, move x axis first then y axis…

but if theres something blocking the path…
to reach the target, it would pathfind and move diagonally…

wonder how i can make it stick to x axis first then y axis… and that also depends which one is better to execute first, go to x axis or y axis…

Check which one it favors more, move in that axis.