A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: collision --from bounding box to graphics.

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    77

    Talking

    I have a movieclip within a maze
    I want the movieclips' bounding box to detect the graphics of the 'maze' clip..
    any help with the code would be appreciated.

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    170
    I made a little tutor for you:

    http://www.botticelli.cz/files/collision.fla

    all codes are written on "character" MC handler

    hope this helps

    Alex

  3. #3
    Member
    Join Date
    Mar 2001
    Posts
    77
    thanks.. you are so very kind..
    I thank you but have nothing to offer in return..
    make a wish and I could make it so.

  4. #4
    Member
    Join Date
    Mar 2001
    Posts
    77
    that works well.. except that because my moviclip rotates.... when its on an angle it can go straight through the walls but when its vertical or horizontal it stops..

  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    170
    ichtyfella,

    I have one idea to solve problem with rotating, but I did not test it: try to make a new MC from your original MC (so your original MC is inside a new one) and just now try to rotate original clip (= rotate clip inside a new parent clip, so new parent clip do not rotate) and make hitTest on parent clip (it do not rotate, but bounds may be the same as on rotated child clip)....
    maybe it helps... let me know...


    Alex

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