Collision detection between layers in Cocos2d?

Posted by ipodfreak0313 on Stack Overflow See other posts from Stack Overflow or by ipodfreak0313
Published on 2011-05-20T18:59:05Z Indexed on 2012/12/11 11:04 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

I am making a game in Cocos2d. I have enemies that shoot, and have the character shoot. I created a separate layer for the enemies (and their bullets) and a separate layer for the character (and its bullets). The problem is, I don't know how to detect collisions between the two layers. Note, I have the Scene in HelloWorldLayer, and each of the above layers is a child of the scene. Any help is appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode