Irregular shaped buttons redux
Judy Perry
jperryl at ecs.fullerton.edu
Fri Nov 19 14:03:03 EST 2004
Sorry to be so dense here, but I'm not seeing how to use the within()
function.
I suppose I could set *either* image as the object, but the loc of both
are constantly changing, and how do I check for within() four sets of
points?
It's looking (to me at least) like the intersect function *should* be the
one to use, except that transparent areas of graphics are not treated the
same by the intersect function as they are with the within function.
Am I wrong about this?
Thank you again,
Judy
On Tue, 16 Nov 2004, Scott Rossi wrote:
> If you need to simulate collision detection with an irregular object/edge,
> you could use the within() function to test a point location within a
> transparent image. The within() function will only return true when the
> point is within an opaque region of the image.
More information about the use-livecode
mailing list