This isn't really a cocos2d question, but people here seem very good and this should be a pretty basic question. Here's the code I have now for getting the location of a touch in coordinates when its moved:
- (BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
if (touch) {
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedPoint = [[Director sharedDirector] convertCoordinate:location];
//Plug convertedPoint into whatever you need handled
return kEventHandled;
}
return NO;
}
The trouble is, I think this only allows for one touch at a time. Is there a way I can loop through an array and do this? Bad question, I know there is a way to loop through an array to do this. Will somebody tell me how?