In cocos2D how to write a selector for a sprite.
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-03-10T16:47:33Z
Indexed on
2010/03/11
20:39 UTC
Read the original article
Hit count: 222
iphone
|cocos2d-iphone
Hello, I got problem in cocos2D application. I have a sprite and text in one screen. The text should be able to move up/down when we swipe. And when we select on the sprite it should take to next scene. So, both should have the istouchEnabled to YES. But text should take the touchesMoved and sprite should take touchesEnded. But my problem is either one is working. If am able to swipe the text, I am not able to select the sprite.( touchesEnded for sprite is not called).
Please guide me, I am stuck here.
© Stack Overflow or respective owner