You are writing a comment about Touch Detection in Cocos2d iPhone, here is a quick summary:
A quick look at three different approaches for implementing touch detection using the Cocos2d iPhone library. There are a number of snippets here, and I imagine it would be rather confusing to approach without a basic understanding of ObjC and Cocos2d iPhone.
You are responding to this comment written by Jeremie Weldin on January 3rd 2009, 20:47.
In version 0.6.2 of the cocos2d iPhone library you must use the "cc" versions of the event handlers.
Example:
-(BOOL)ccTouchesBegan:(NSSet )touches withEvent:(UIEvent )event;
rather than
-(void)touchesBegan:(NSSet )touches withEvent:(UIEvent )event;
Also, you should return kEventHandled if you handled the event or kEventIgnored if you did not handle the event.
Please be aware that comment forms go stale after one hour.
Comments may make use of LifeFlow MarkDown. Raw html will be escaped.
Quick Introduction to LifeFlow MarkDown Syntax
A highlighted code block:
Other common languages work as well: scheme, python, java, html, etc.
Other markdown syntax: