Path2D and PathFollow2D are great for this. You can make your Path2D of two points, add a PathFollow2D as a child and increase it’s progress over time.
Thank you so much! This worked perfectly, and my square is now moving smoothly from point A to point B. I really appreciate your help and the clear explanation. It made everything much easier to understand!