I have got a game layer and a child node (CCNode) called TestNode.I added a spritesheet to TestNode and several "missiles" to this spritesheet. Now my problem is the collision detection of those missiles with objects in the game layer, because coordinates seem to be f'd up.
I have got the following in the missile implementation:
//first I get the Game layer
GameLayer *gL = (GameLayer *)self.parent.parent.parent;
//parent = spritesheet, spritesheet's parent = TestNode, TestNode's parent = Game layer
//Now I convert the coordinates of missile to Game Layer's node space
CGPoint realPos = [gL convertToNodeSpace:self.position];
This is roughly what I do in my code... and it does not seem to be working! I do pretty much the same collision detection with the TestNode and it seems to be working perfectly fine. Is it because of the spritesheet ? I have been struggling a couple of days now, but I can't get it working at all. Changes give me hardly any hints what I am doing wrong. So you are pretty much my last hope...