hittest for complex objects
i have border mc surrounds stage , protrudes stage. mc can moved around within border using arrow keys. i've set hittest movable mc can't cross part of border. tried making mc hollow s-shape spins. movable mc supposed able go through s-shaped mc without hitting edges. instead of registering actual s-shape border, hittest registers edge of mc s-shape in. means if movable mc doesn't touch sides of s-shape still registers hit. so, how come hittest works complex objects being used border, not ones in middle of stage?
hittests check collisions of bounding rectangles. shape-based hittest check gskinner's collisiondetection class.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment