Hi,
thank you for your answer, but to tell the truth I wanted something more complex, so I had already thought about it but it would move in jerks, that is in several straight lines, instead I would like it to curve to give a visibly more pleasant effect.
do you have an idea how it could be done? For example, I could insert a code that says that depending on the height the direction of movement changes, but how?