Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have initialized UITapGesture as follows:

tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)];
tapGestureRecognizer.numberOfTapsRequired = 1;
tapGestureRecognizer.cancelsTouchesInView = YES;
[[[CCDirector sharedDirector] view] addGestureRecognizer:tapGestureRecognizer];

As per code, if you tap on a sprite, it moves to new location using CCMoveTo action with duration = 0.3. This works fine when a Sprite is tapped and you wait till it reaches new destination. So far so good.

But if you tap on sprites fast enough to get an effect of multiple sprites moving to new destinations, I noticed some of the sprites are left inbetween and stop some random location.

Why this would be happening? Any thoughts?

share|improve this question
    
This question appears to be off-topic because it is about debugging your code for you. –  Josh Petrie Jan 3 at 17:42
add comment

closed as off-topic by Josh Petrie Jan 3 at 17:42

  • This question does not appear to be about game development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.