corporal
03-16-2001, 06:30 AM
Hi flash-gurus!
My problem is about collision detection. I have two MCs, a little guy and a projectile. You know, hitTest in Flash 5 does not detect collisions the way I would like: it tells if the two clips' bounding boxes overlap, but it reports a collision even if only the backgrounds of the clips get in touch. Hence the player will see that despite the enemy projectile did not him, he died.
Is there any way to create a correct collision detection? For example, is there a way to get information about the shapes inside a movie clip?
My problem is about collision detection. I have two MCs, a little guy and a projectile. You know, hitTest in Flash 5 does not detect collisions the way I would like: it tells if the two clips' bounding boxes overlap, but it reports a collision even if only the backgrounds of the clips get in touch. Hence the player will see that despite the enemy projectile did not him, he died.
Is there any way to create a correct collision detection? For example, is there a way to get information about the shapes inside a movie clip?