Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Location
    My room
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    AS3: hitTest Help

    I'm using this code to detect a collision with the movieclips circle and line, but it doesn't appear to be working.

    Code:
    if(circle.hitTestObject(line)){
        // stuff
    }
    Can someone please tell me what's wrong? Thanks in advance =D

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I don't pretend to know about AS3, all of this crazy OOP, but here is some info that might be useful, do you have all of the imports?

    http://www.foundation-flash.com/tuto...as3hittesting/
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    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
    •