hi,
i want to make sprite invisible after action
my code:
when touch event occur
{
...
waterAction = waterLeftAction; // waterLeftAction is animation!
action = [CallFunc actionWithTarget:self selector:@selector(spriteActionFinished:)];
[sprite runAction:[Sequence actions:waterAction, action, nil]];
...
}
after waterLeftAction, below method is called.
-(void)spriteMoveFinished:(id)sender
{
AtlasSprite *sprite = (AtlasSprite *)sender;
sprite.visible = NO; // Error!!!
//sprite.position = ccp(500,500) // Error!!!
}
what is my problem?
I want to hide sprite after waterLeftAction
I need your help.