I’m trying to implement ccTouchesBegan in my GameScene.
I’ve set isTouchEnabled = YES. I’m also calling addStandardDelegate on the touchDispatcher. Finally, in my AppDelegate i have [glView setMultipleTouchEnabled:YES].
However, ccTouchesBegan is never called.
What am I doing wrong?
Solved it!
I was registering touches on a previous layer, but the layer wasn’t being dealloced because you have to “un-register” with the
onExitmethod.Long story short:
touchesBeganwas not being called on my GameLayer because it was being swallowed by another layer.