Sorry to bumb an old thread, but I'm facing a similar problem.
I have a scene loading objects in
- (void) didLoadFromCCB
sharedScene = self;
self.score = 0;
// Load the level
Level* level = [CCBReader nodeGraphFromFile:@"Level.ccbi"];
// And add it to the game scene
So what happens is
Level class was called twice, instead of just once.
Quick investigation shows that the method was called once when creating the level object itself; and the second was because I added the level object as a child to the scene object, in which
CCBReader will loop through all child node and invoke
didLoadFromCCB, hence the second call to
+ (void) callDidLoadFromCCBForNodeGraph:(CCNode*)nodeGraph
if ([nodeGraph respondsToSelector:@selector(didLoadFromCCB)])
CCNode* child = NULL;
Is this a bug or this is intended?