A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: URGENT - HitTest NOT WORKING, please help.

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    URGENT - HitTest NOT WORKING, please help.

    hi everybody, i cannot get hittest to work.
    i have uploaded the .Fla file of my project. i have a knife falling from the sky, and need to detect if it hits the player.

    extra information:
    i have 2 movieclips, one named "Knife" and the other named "Player"

    This code DIDNT work for me:

    Code:
    onClipEvent(mouseMove) {
    if (_root.Knife, hitTest(_root.Player)) {
    gotoAndStop(2);
    } else {
    textbox.text = "No hit yet";
    }
    }
    Thankyou
    -Adam

  2. #2

Tags for this Thread

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