How can we detect a touch of a sprite?

Posted by srikanth rongali on Stack Overflow See other posts from Stack Overflow or by srikanth rongali
Published on 2010-03-20T06:16:13Z Indexed on 2010/03/20 6:21 UTC
Read the original article Hit count: 199

I have two sprites in my app. Both should have touches enabled and both touches are independent of one another. And if I touch the screen (not on sprites) it should have different touches. My problem is all three sprite1, sprite2, remaining screen should have independent touches. But my program is taking all the touches as same. How can I make them as what I needed ?

Thank You.

© Stack Overflow or respective owner

Related posts about cocos2d

Related posts about cocoa-touch