How to get a zig zag movement between two points?

Hi
Thanks for your idea. I’m going to study that!