Recently, Eva Isotalo wrote:
> I'm making a simple horse jump situation.
>
> The horse is moving in canter, on the spot (14 images changing with
> transparent background), with a 'repeat until the mouseclick'.
> Graphics are moving (with 'move from xx to xx in 3 seconds without
> waiting) as "jumps" toward the horse. When the mouse is clicked the images
> changes and the horse jumps over the jump(or whatever it's called). Then it
> continues canter.
>
> Now I want to detect when the horse "bumps into" the jump. I've tried
> 'intersect', which uses the rect of the image instead of the image itself.
> That's no good. I've tried 'within' together with the topleft of the jump
> grc. It works sometimes but is not fool proof.
>
> What else can I try?
The only thing I can think of (aside from getting the MC folks to build true
bitmap or color based collision detection into MC) is to use hidden polygon
images that act as the "live regions" of your animation (instead of the
rects of the images) and test for intersection of these with your jump
object. You'll need to swap or move multiple polygons in sync with your
animation and make sure you test for the correct number polygon intersection
with the jump object.
Keep in mind, all you really need to test for are extreme edges of the horse
-- you don't need elaborate polygons, probably just rectangles that are
positioned at the outermost edges of the animation.
Regards,
Scott
_____________________________________________________________________
Scott Rossi Tactile Media - Multimedia & Design
Creative Director Email: [EMAIL PROTECTED]
Web: www.tactilemedia.com
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.