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 Richard J Keys on July 10th 2009, 13:49.
@Eric Malamisura
From what I have read, you have to convert the point because cocos2d uses x & y in relation to the bottom left of the screen, whereas the standard location is from the upper left.
I'm having some problems with defining a rect for my sprite. The sprite is created using the spriteWithFile function, which displays fine. However, when running [sprite contentSize].x (or y actually) the returned value is zero.
Has anyone experienced this?
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: