How can I differentiate two different touches on a layer ?
- by srikanth rongali
I am writing an app in cocos2d.
I hava a sprite and a text in my scene. I have written two separate classes for sprite and text. And I added both of them to another class.
In sprite class I have written
- (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
And in text class I have written
-(void) registerWithTouchDispatcher
{
…