ArcBasicDocs

ImagesCollide

Pixel-perfect collision test.

ImagesCollide ( image1,x1,y1,frame1,image2,x2,y2,frame2 )

Parameters

image1
the first image.
x1
where it's drawn, across.
y1
where it's drawn, down.
frame1
which frame of it.
image2
the second image.
x2
where it's drawn, across.
y2
where it's drawn, down.
frame2
which frame of it.

Description

Tells you whether two images, drawn at the given positions, actually touch: whether any pixel that isn't see-through in one lands on one that isn't see-through in the other. Exact, and slower than ImagesOverlap.

See also