A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Tracking (Game Style) Intro

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    273
    Here is a simple tracking formula you can use when programming games. It also allows you to simplify hitTests since you can just use an array of the different MCs and only perform hitTests on ones that are within a set distance. Helps to speed up performance.

    Try clicking on one of the black dots and dragging it around. If your dot is closer to the red "enemy" than any other he will chase it until he finds another dot in range.

    http://perfectweb.org/tracking.html
    http://perfectweb.org/tracking.fla

    Spyder

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food
    Posts
    3,789
    pretty nifty...

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

HTML5 Development Center