Should we use NsMutableArray in CGRectIntersect ?
- by srikanth rongali
To know whether two sprites cross each other or not, should we use NSMutableArray to store the sprites ? In my game one fixed sprite(player) is there. And the other is a bullet fired and if this sprite intersects player sprite, then enemy won. I have used NSMutable Array to store the bullet sprites. If I do not use NSMutableArray then even though the the bullet intersects player it is not recognizing the intersection ? I am using
( (CGRectIntersectsRect(bulletRect, playerRect)).
Thank You.