需要能够存储2个触动,我如何去帮助这个我怎么不知道......实现多点触摸......需要存储的第二触摸
这就是我正在做一个单touch
- (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
/////checks whether the screen has been touched and stores its location and converts the coordinates to be avaible for use////
UITouch* myTouch = [touches anyObject];
CGPoint locationLeft = [myTouch locationInView: [myTouch view]];
locationLeft = [[CCDirector sharedDirector]convertToGL:locationLeft];
我该如何存储第二次触摸?
在此先感谢
要做我的触摸检测和存储我用了一个教程,并修改它的abit,但是这已经让我失去了:S。我如何处理UITouch * myTouch = [touch anyObject]; \t CGPoint locationLeft = [myTouch locationInView:[myTouch view]]; \t locationLeft = [[CCDirector sharedDirector] convertToGL:locationLeft]; – michael 2011-04-22 15:30:45
将'UITouch * myTouch = [touch anyObject]'更改为'UITouch * myTouch = touch' .. – Lukman 2011-04-22 16:06:40