Which one is the smoothest? Write it in the comments. You can use one of this, but you must give credits!!! If you want set the direction of the sprite to the position it'll move to, then use this instead: https://scratch.mit.edu/projects/451463628/
The formula of the green is originally made by @MathMathMath but changed a bit by me. The rest is made entirely by me.