I want to get precise selection of my object on game map. Object is a sprite with which has some transparent pixels around and I want to test touch location for these transparent pixels. Any clue?
In Sprite Kit you don't have access to texture data.
Instead you'd have to create a bit mask from the image, for example by loading the image as UIImage or CGImage and scanning for all non-transparent pixels.
1.4m articles
1.4m replys
5 comments
57.0k users