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 Paul Silvagni on January 5th 2009, 17:28.
Hi and thanks for all these snippets :)
If you have the "one shot touch only" problem, it seems to be because of the use of pop/push scene. You must use replaceScene when you load your scene. It worked for me, as my layer did respond correctly in the simulator and not on the device. Now it's ok :)
Bye and long live cocos !!! Using it from one week now and already loving it !
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: