Hi, I have tried every possible method of sprite touch detection I can find and none of them seem to work with sprites that have rotated
my code:
//add circle sprite hit zone (this is what I need touch detection for)
circleHitZone = [CCSprite spriteWithFile:@"circle_10_hitzone.png"];
circleHitZone.anchorPoint = ccp(0,-0.9);//this is probs messing it up
circleHitZone.position = ccp(winSize.width /2 , winSize.height/2);
circleHitZone.color = ccc3(150,10,5);
[self addChild:circleHitZone];
//start rotations
id rotHit = [CCRotateBy actionWithDuration:20 angle:360];
id infinRotateHit = [CCRepeatForever actionWithAction: [CCSequence actions: rotHit, nil]];
[circleHitZone runAction:infinRotateHit];
I'm trying to detect when 'circleHitZone' is tapped but all methods either don't work at all or work when I tap the anchor point
I have tried creating a sprite that follows the circleHitZone but it just goes to the anchor point as well :(
If anyone has any ideas please help me out, anything is appreciated
Thanks.
PS. screenshot of app scene (brown segment is circleHitZone) -> http://cl.ly/e770911a8c6c022fb6e5