Actually what i have done is
I am drawing Sprite point(5x5) on each touch point while movement. using the code
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
for(UITouch *touch in touches )
{
CGPoint location = [touch locationInView: [touch view]];
location = [[CCDirector sharedDirector] convertToGL: location];
[self DrawAPointOnPos: location.x y:location.y];
}
}
-(void) DrawAPointOnPos: (float)x y:(float)y
{
int posx, posy;
CCSpriteSheet *sheet = (CCSpriteSheet*) [self getChildByTag:kTagAtlasSpriteSheet];
CCSprite *sprite = [CCSprite spriteWithSpriteSheet:sheet rect:CGRectMake(posx, posy, 5, 5)];
[sheet addChild: sprite];
sprite.position = ccp(x,y);
}
It draws a Sprite point while we are moving finger on iPhone screen, that makes any shape according to dragged finger, for collision the small points of 5x5 sprite can be used and can be destroyed.
In this way we can draw 2 or 3 shapes on screen... that need to be stored some where and will be displayed on the game play screen usage.
you may think that a shape can contain more than 100 sprites. I wish to know
Is that right way to achieve it what I am willing to?
and will I be able to zoom in and zoom out for such shapes on game play?
thanks for reply