A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Collision detection in f5

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    105
    So does anyone know what F5 has in store as far as collision detection is involved?

    In F4 the best that could be done was to approximate the shape of the sprite using a bounding box, circle, or other shape, and check for intersections of these shapes.

    It would be really great if there was a way to check for collisions of the actual sprite shapes, not just approximations.

    Does anyone know if this feature is available in Flash 5, and if so how has it been implemented?

    Cheers

    Bangers

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Not on the dole any more
    Posts
    1,040
    There are two types of collision detection in Flash5, but unfortunately I don't thibk either is what you're after.

    You can detect collisions between two movies' bounding boxes automatically, or you can check to see if a point coincides with the actual shape of a movie clip. But you can't accurately detect collisions between complex shapes.

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    105
    Thanks Stickman

    Youre right, thats not exactly what I hoped for, but is does sound better than F4.

    I have heard a little about the hitTest() function but not about the boundary stuff.

    How do you go about detecting bounday collisions automatically? Do you know if this is implemented as an 'event' or is there a function that needs to be called to make the test?

    Thanks

    Bangers

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