Hey —!
I wasn't sure if you wanted to deal with each direction (horizontal/vertical) separately or not, so I implemented 2 behaviors:
Yellow player will alternate between moving horizontaly or verticaly until it gets to target position.
Purple player will deal with one direction and, only when it reaches the target position on that direction, it will deal with the other one.
Here's the .capx
Also, will it need to deal with obstacles? Because, if that's the case, you should use the pathfinding behavior.