I want to really understand how it works. My code shows the stage I’m currently in. It is about moving platform. I don’t understand why it fully goes back when we reach the maximum point of distance, instead of just going back a little bit, become less than distance again, and start from that point? What makes the platform work as we want it to?
p.s. this code works