In my game that uses SpriteKit, I have a line of code used for mapping objects based on the part of the image that is actually an object, instead of all the transparent objects:
bg.physicsBody = [SKPhysicsBody bodyWithTexture:bg.texture size:bg.texture.size];
However, the bodyWithTexture
only works on iOS 8.0. Is there an equivalent to this on 7.1 and below?