Touching at position

how do i find the exact (X,Y) to where a sprite is touching another sprite?
Thanks!

:snap: detects collision by checking if the pixels of the costumes overlap. X,Y of the pixels are not known. So you need to create a workaround depending on the intended purpose.

For games, you may compose sprite from smaller parts - "sensors".

You may also create the image of the sprites intersection by combining
untitled script pic - 2021-12-01T004631.105
then look at the result costume pixels
untitled script pic - 2021-12-01T004650.434

For exact results, you probably need to declare the shapes of the sprites as polygons then find a numeric algorithm.
Or suppose that sprites have exact geometrical shapes and methods of calculating their intersection points are already known.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.