Hello everybody,
I'm really new to cocos2D but here is my very simple and maybe stupide question but I'm stuck with it. I just tried to add touch support to the helloWorldScene that comes with the cocos2D template on xcode. So I added to the init method of the helloScene.m implementation file (wich is sublassed from Layer Class and so supposed to be touch responding) the isTouchEnabled=YES parameter and also added the overriden method :
- (BOOL)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"Touched!");
}
just to see if it works. But it seems the event is never intercepted.You can try the same thing yourslef because it's very quick and really curious. So, my question is why and how to add touch support to this simple layer on this particular exemple ? Thank you and best regards from Paris, France :)