You can do it like a gajet, or if your movement is constant, you can plan your actions. So, suppose you have this move method:
-(void)moveSprite:(ccTime) dt {
And then in the ccTouchBegan: method you ccTouchBegan: you plan the move method [self schedule:@selector(moveSprite:)] , and in ccTouchEnded you don't plan [self unschedule:@selector(moveSprite:)] , it will stop the movement when you finish your touch ... hope this helps
source share