Hiyas,

I have a tile-based game, and I'm trying to make the player look in a certain direction (N, NE, E, SE, S, SW, W, NW) according to a mouse click.

I figured out how to do part of it (break up the degrees into 8 directions...and the rest), but how am I supposed to calculate the degrees of the click from the player's position? I have the X/Y point of the person, and X/Y point of the click.

Thanks,

-Git