I've just been working on a bit of code that moves a CCQuadParticleSystem around the screen with the ccTouchesMoved.
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
for( UITouch *touch in touches ) {
CGPoint location = [touch locationInView: [touch view]];
location = [[CCDirector sharedDirector] convertToGL: location];
touchPos = location;
[emitter setPosition:location];
}
}
Using the latest 0.99.4Rc, on my 3G running os3.1, everthing runs fine at 60fps, but on my iPhone4 running 4.0 there is a random problem where the emitter position doesn't update every frame, so lags behind.
It also seems a little random briefly it seems to work but quickly starts lagging behind.
I doesn't seem to be loosing the touch as a brake point added to ccTouchesEnded doesn't get activated until i actually release from the screen.
Not sure whats going on.
Dave