How to know texel information of texture ?

Hi!
I need to know texel information of texture. My task is little bit complicated: for example I clicked on a monster. The mosnter is a sprite. So I need to know if I got right on to the monster. If monster is alone we could determine if we got on the monster by checking texel information. If specific texel is absolutely transparent then we can decide that we missed.(But task is little bit more complicated because one sprite can fully or party hide the monster and we should check all the sprites before we check the monster actually.

My question is simple: I can’t find anywhere where I could get texel info of specific texture?

Thanks in advance.

Try searching “pixel perfect collision”.
Personally I’d prefer to use Box2d to specify a simplified shape of the object and use raycasting to check collision detection. It should be much-much faster.

Hi, Pavel!
Please, refer to http://cocos2d-x.org/forums/6/topics/19694?r=32823#message-32823 on your question.