Re: Help with "facing" routine

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu