|
-
May 13th, 2001, 05:48 AM
#1
Thread Starter
Addicted Member
Directions
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|