Hi, like most of the people am going to start my post by saying that am kind of new to the Iphone Develop, i'd been develop apps in C# for years just a few months ago i started building a video game for the Iphone. My problem is this:
I have a very simple game and i just add enemies that moves across the screen and you have to shoot them, the problem is that when you star adding the enemies and they are moving you see like a little jump on their movement. i'd tried several ways to move the sprites through the screen but it always shows the same behavior, here is my code, thanks to you all in advance.
#CODE
..... [self schedule:@selector(update:) interval:1.5];
- (void)update:(ccTime)dt
{
//addEnemies.
CCSprite * enemy = [CCSprite spriteWithFile:@"Icon.png" rect:CGRectMake(0, 0, 65, 65)];
enemy.position = ccp(480,300);
[self addChild:enemy];
id actionMove = [CCMoveTo actionWithDuration:1.5 position:ccp(0, 300)];
id actionMoveDone = [CCCallFuncN actionWithTarget:self selector:@selector(EnemyMoveFinished:)];
[enemy runAction:[CCSequence actions:actionMove, actionMoveDone, nil]];
}
-(void)EnemyMoveFinished:(id)sender
{
CCSprite * enemy = (CCSprite *)sender;
[self removeChild:enemy cleanup:YES];
}