I read the other two posts about ccTouchBegan being called twice and they didn't seem to help.
I basically have what is in TouchesTest. A class declared as follows:
@interface Topping : CCSprite <CCTargetedTouchDelegate>
And inside of it:
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
if (_state != kToppingStateNormal)
return NO;
if ( ![self containsTouchLocation:touch] )
return NO;
_state = kToppingStateSelected;
printf("Touched!\n");
return YES;
}
Any help would be really appreciated! Thanks!
I have a scene which has a layer.
Inside of the layer's init is self.isTouchEnabled = YES; (I can disable this and it still receives touches...there is no other piece of code that has this = YES).