Results 1 to 10 of 10

Thread: Mouse Position

Threaded View

  1. #7
    Addicted Member Aldragor's Avatar
    Join Date
    Oct 2002
    Location
    Québec, Canada
    Posts
    140
    Maybe you should calculate a distance between the man and the gun. With the Pythagore thing:

    VB Code:
    1. distance = sqr((distanceX*distanceX) + (distanceY*distanceY))
    then
    VB Code:
    1. if distance > 600 then
    2.   bla bla...
    3. else
    4.   bla bla..
    5. endif

    This also cover diagonal distance
    Last edited by Aldragor; Nov 5th, 2002 at 09:33 AM.
    Mens sana in corpore sano
    ... pour mieux travailler!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width