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.
2.1m questions
2.1m answers
60 comments
57.0k users