Should we use NsMutableArray in CGRectIntersect ?
        Posted  
        
            by srikanth rongali
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by srikanth rongali
        
        
        
        Published on 2010-04-09T10:20:44Z
        Indexed on 
            2010/04/09
            10:23 UTC
        
        
        Read the original article
        Hit count: 355
        
cocos2d-iphone
|nsmutablearray
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.
© Stack Overflow or respective owner