Hello. I've run into a bit of a dead end with an idea I had and was hoping someone could perhaps point me in the direction of a solution (Or at least tell me if it's outright impossible).
In my game I'd like the player to weild a whip which they can aim with the mouse cursor. This in itself is easy; I just have to spawn the whip at an image point of my choosing and set the angle of the whip to Mouse.X,Mouse.Y... but the tricky part is the animation itself. You see, it would look silly if the player wanted to whip upwards, for instance, and the animation showed the motion of the player whipping downwards. That's why I need some kind of way to detect the angle of the mouse before spawning the whip, basically as the click of the mouse happens, so that the animation will suit the direction the player clicked in.
But so far I've had no luck in finding a way to do this. Any ideas?