iphone - small sprite touch -


There are some games that have some small pictures in the form of sprites and can be moved by touch. If the phantom is a big picture, then the touch is quite normal. And we can use the function CGRectContainsPoint for the road. But when the phantom is small enough, this function does not look good. Can any other method deepen the problem?

I have written about an approach that you use to reduce the "fat finger" problem You can do that, described in the @Frostrated With Forms Diasigher:

... if you compare the user's touch point against the position of the unit and just the closest ( Even if it is 35 or 36 pixels away or not) Select?

This post has been written in Windows for C #, but this concept should be implemented. Basically, compare the distance between the user's touch and the institutions between the screens. Manipulate touch by the nearest distance, and you get away from the issues of hard-defined intersections by which the touch can be detected.


Comments