So I know how to do the typical movement where an object moves toward a point by moving the x/y positions if they are < or > than the end positions... But the problem is that it gives me stuff like the red path in my example.
I want a formula/method that will give me the blue path... a nice straight path to the point no matter what. I'm pretty terrible with math, so after an hour of attempts, I'm hoping someone here can help me out. It's probably pretty straightforward but like I said, I'm bad with math.
Thanks in advance!