Hi,
I used NSNotificationCenter to post the touch events for further processing.
I can’t find related class in cocos2d-x. Does it have something the same that I can use to replace them ?
If doesn’t, how can I do it at android & iOS ?
Thank you.
Hi,
I used NSNotificationCenter to post the touch events for further processing.
I can’t find related class in cocos2d-x. Does it have something the same that I can use to replace them ?
If doesn’t, how can I do it at android & iOS ?
Thank you.
Oh, you had to add observer/notifier by yourself.
My suggestion is to add something like SelectorProtocol to CCNode.
Hi,
Could you give me more detail about that ?
I really need this function to get my game porting work, because there is a bug at cocos2d-iphone when you use the touch event dispatch that will make system crash.
So I turns to use the notification to send the touched event to my GameLayer.
Thank you again.