Hi all,
I've got a couple CCMenuItem subclasses that are supposed to trigger selectors when they're touched but they're not. Here's an example of what I use for the item:
[CCMenuItemFont itemFromString:@"Continue" target:self selector:@selector(onContinue:)];
I have selectors on an CCMenuItemImage as well.
And the selector:
-(void) onContinue:(id)sender
{
NSLog(@"continue");
}
Everything is showing up in the menu in the correct position. I can't tell if it's not getting the touches at all, or if my selectors are broken somehow. As an aside, touches do work in general. I can do a replaceScene with the proper game scene where nodes can get touches without issues (though to be fair, I use the TouchDisplatcher in that scene).
I've heard that cocos2d is finicky with selectors... what's the best way to determine where the problem is?