From my Question here,
http://iphonegamedev.stackexchange.com/questions/82/moving-sprites-more-then-one-at-a-time
-(void)moveBox:(NSTimer*)myTimer{
float endx=[[[myTimer userInfo] valueForKey:@"endX"] floatValue];
float endy=[[[myTimer userInfo] valueForKey:@"endY"] floatValue];
float timing=[[[myTimer userInfo] valueForKey:@"timeForMove"] floatValue];
Sprite *sp=(Sprite*)[[myTimer userInfo] valueForKey:@"objSprite"];
[sp runAction: [MoveBy actionWithDuration:timing position:ccp(endx,endy)]];
}
I use above code in my application. But I don't require this method.
Above code is for Moving the sprite.
I have placed here above code just because You can imagine what do I need.
Now I want to Move 10 sprites at a time.
[sp runAction: [MoveBy actionWithDuration:timing position:ccp(endx,endy)]];
Above line - moves one sprite at a time.
How to move all sprites all together at once.
Why Required ? :
You might have seen tetris game.
If bottom most row is complete, then all above rows move down by step one.
I want to do the same.
How?