hi,
The prob seemed to get solved, but now im stuck with another issues of this.
It seems that the Action Manager does not call the function rowVanish immediately.
Hence, if there is a case where the rows have to be vanished in quick succession, the ActionManager crashes.
Here is a code snippet of my project :
-(void) Anim {
for(i=0;i<7;i++) {
sp = gameSprites[index][i];
myActions = [Sequence actions:
[Blink actionWithDuration:2 blinks:2],
[CallFuncND actionWithTarget:self selector:@selector(VanishTheRow :data:) data:(NSUInteger*)index],
nil];
[sp runAction:myActions];
}
}
Now, the control seems to return from the Anim function to the caller function,w/o actually the VanishTheRow function getting called.
Getting this error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'runAction: Action already running'
Is there any way to prevent this from happening? Is using thread the only way out of this?If yes, hw to go about doing it?
Please help me out with this.
Thanks.