I’m having a weird issue when trying to detect which character (currently a CCLayer-extending object) I’m touching. The problem is that the location of the sprite I’m clicking on never matches the touch location that is registered.
I’ve tried different conversion functions but neither of them seem to work.
Any idea about how can I detect in ccTouchesBegan where a CCLayer is being touched? How can I get the absolute position in the map of the touch poisition as I receive it (I will move the character to the clicked position)?
I know that they may be very basic questions, but I’ve been looking for the answer for some hours and I can’t find the solution.
Thanks in advance!