So when you play any kind of top down game what uses arrow keys or wasd, moving diagonally moves faster because your moving two directions at once. And I wanted to recreate the power of a person using arrow keys but with the mouse. This proved to be significantly harder that I thought because you can't just move the player by the change of the mouse and call it good, because then there would be no stopping the player from moving the mouse quickly to gain large distances. So what I needed to do was move the player by a specific amount depending on the direction of the mouses movement using the asin() function. This basically grabs the x change from a scale of 0-1 and turns it into a rotation. But this solution still doesn't take into account the benefit of moving diagonally, so I artificially sped up the closer the mouse was moving to any 45 degree angle. So to calculate it I made the distance into a range of 0-1, 0 being farthest eg: 0 degrees, and 1 being any 45 degree angle. Then I turned that range into a range of (steps)-(sqrt((steps^2)+(steps^2)).(basically the distance the player travels when moving diagonally, because it isn't actually twice as fast but around 1.4 times as fast) and then multiplied that number by the sin of the asin of the move x. The top left corner shows the total distance that the player moves. This gives the same power and speed of a player using arrows, but with the mouse. Idky I even had this idea to start with but yeah bye.