I am making a game using the accelerometer, basically my character is at the bottom of the screen and he needs to avoid objects falling from the top of the screen. I am using CGRectIntersectsRect to see if my character sprite has intersects my enemy sprite, but the problem with this is CGRectIntersectsRect detects the transparent sections of my character sprite.
Is there a way to make it ignore the transparency of the sprite?
One way is to use Box2d. Even if you don’t want the physics simulation you can set up body shapes to be used for collision detection.
Alternatively, if you don’t want to use C++, then Chipmunk also has shapes with collision detection. This post outlines some details: Chipmunk collision detection