"Cursor on object" with alpha transparency

Hello, judging by this post: Accurate? Yes/No the “Accurate” option, which allowed transparent pixels to be ignored when using the “Cursor on object” condition, is no longer available in GD5.

“Point inside object” uses the object’s bounding box, and the “Read Pixels” extension correctly reads colors, but regardless of the transparency of the sprite or even the game window, it always reads the transparency of any pixel as full.

Are there any alternative ways to achieve a similar effect without using collision shapes?

Just for clarity: “The Cursor/Touch is on (objectname)” uses the entire object’s bounding box, point inside object does not.

Point inside object uses the object’s collision mask, not the bounding box. For something like a tiled sprite, that’s the entire object since you cannot customize the collision mask. For a sprite, that’s whatever you’ve defined as the collision mask.

Unfortunately There is no equivalent to the GD4 action outside of the above.

1 Like