This project makes thing go weee spin Ive used weird math to make it calculate angle to your sprite and rotate it accordingly. This is very useful if you dont want people to just zoom their cursor everywhere
Thanks to my friend for coming up with the idea, and my braincell for working on it. You can use this without credit, but id love to see my name on some games mx is mouse x, my is mouse y dx is distance x, dy is distance y final angle is [atan2 dx/dy] it then rounds out to closest place by fives