Hello everyone! The hitTestPoint() function determines whether a given point is included in the rectangle of an object (sprite, shape). There are no other functions for a more precise definition (a point got into a sprite, a polygon)?
Thanks. I will try. I understand how to implement this myself (descriptions of the area, verification), I was just interested in maybe there are already ready-made solutions.
Comments
you can check if a point is in the polygon directly:
https://forum.giderosmobile.com/discussion/218/how-to-get-spritehittestpoint-to-ignore-transparent-areas-of-image
https://forum.giderosmobile.com/discussion/511/hittestpoint-alpha
or using the clipper plugin e.g.:
https://forum.giderosmobile.com/discussion/comment/59988
Likes: E1e5en
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I understand how to implement this myself (descriptions of the area, verification), I was just interested in maybe there are already ready-made solutions.
Likes: E1e5en