Drawing line on touches moved in COCOS2D
问题 I'm developing a game for iPhone using COCOS2D . In that, I need to draw a line when user drag his finger from a point to another. As far as my knowledge is concern I need to do this in Touches Moved method from where I can get the points. But I don't know how to do this. Can anybody help me on this? 回答1: Kia ora. Boredom compels me to provide an answer on this topic. Layer part (i.e. @interface GetMyTouches : CCLayer): -(void) ccTouchesMoved:(NSSet *)inappropriateTouches withEvent:(UIEvent *