I'm trying to move a sprite around using UITouch and i need to be in multi touch mode because i have a button i also need to hit while i'm moving my sprite around.
The issue is when i miss the button and i hit the screen with my other finger the second finger becomes the touches begins which cause my sprite to jump positions. Any work around. I tried putting by button in its own class but that didn't help. The reason why I'm not just putting all the code in touches moved is because I'm calculating the offset from the touches began.
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
NSSet *allTouches = [event allTouches];
switch ([allTouches count]) {
case 1:{
NSLog(@"moving touch 1");}break;
So now what is happening is when i move my finger across the screen it detects moving 1 but once i put on the second finger it stops moving 1 i don't want it to stop moving 1