Narendrabrsoft / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

Why is this class that CCTouchCCSprite extends CCSprite implements CCTouchDelegateProtocol can not respond to user clicks on the event? #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. extents CCSprite
2. implements CCTouchDelegateProtocol 

What is the expected output? What do you see instead?
 I hope this CCTouchCCSprite instance can accept click event in CCLayer, but can not.

Original issue reported on code.google.com by imagined...@gmail.com on 30 Dec 2010 at 2:48

GoogleCodeExporter commented 8 years ago
There is forum for such questions. Do you hope this is an issue? Touch is 
handled in CCLayer, I extend this. Look into source of CCLayer, there you can 
see what to do to register CCTouchDelegateProtocol.

Original comment by opengen...@gmail.com on 30 Dec 2010 at 12:29

GoogleCodeExporter commented 8 years ago
Yeah this is not a library issue, you have to either extend CCLayer or register 
the instance with the touch manager.

Original comment by ghemp...@gmail.com on 21 Jan 2011 at 9:43