Path2D Follow up and down or sideways with loop

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ryugomez

I’m making an elevator that moves up and down, and an enemy that only moves sideways. Is there any logical way I can do this. The hierarchy is Path2D / PathFollow2D / elevator
I’ve only defined two points for the path either up and down or sideways. I’m also animating the two with their unit offsets with loop. What I mean is when the elevator reaches the ground, it should eventually move upwards and vice versa.