- WORK IN PROGRESS! - Uses basic trig and the Pythagorean Theorem to calculate some useful values from the mouse, such as the velocity from one frame to another, the direction, and the x/y values that change per frame. - - - - Note - - - - This is overcomplicating basic mouse values a little bit, but it's far more accurate than just following the mouse with a sprite and pointing and moving steps. UPDATE - this actually doesn't work. The direction of the mouse is limited because the angle of elevation in a triangle can only be positive, so you can't find out if the mouse is pointing downwards :p mb
Code and math 100% me, but I'm sure people have done this before. Feel free to use with credit.