So I couldn't explain very well in the title. I'm making a game where you're a circle and you click to walk somewhere. However, I want the circle to spin (roll) to that location. But I want it so that it calculates how far it is, etc, so the player/circle will be at angle 0 (up right) when it finishes rolling.
What is the calculation to do this?
(How the click to walk works for me)
I have a 5x5 invisible sprite and when the mouse is clicked it travels to the mouse's x location and the circle/player's y. I then activate a custom movement to go towards that position. I then disable the custom movement when the player touches the sprite.