Re: Help with "facing" routine
- Posted by Robert B Pilkington <bpilkington at JUNO.COM> Jun 30, 1998
- 698 views
>function determine_facing(sequence char_pos, sequence point) > -- find the closest match of the 24 possibilites > return facing -- 1 to 24 >end function I don't know the math, but I (hope I) can clear up the English: Einar wants a routine that takes the character and the position of the object (or whatever) he wants to face. Of 24 directions (15 degree incriments), he needs to know what is the closets. (Possibly for AI facing the player, or the player clicking on something and his player facing it.) I'll also see if I can come up with something. _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]