Hi,
I'm having a little trouble.
In my project, whenever I want to run a CCSequence that has more than 2 function calls, my game crashes.
For instance, with this code:
[self runAction: [CCSequence actions:
[CCDelayTime actionWithDuration:6.5],
[CCCallFunc actionWithTarget: self selector: @selector(AddMenuButtons1)],
nil]];;
My game crashes at those instructions.
Please note that the method AddMenuButtons1 only adds elements to the game:
[self addChild:battleMenu z:4];
If my method AddMenuButtons1 does not contain that addChild line, my game does not crash.
Is there a workaround for this?
Or is it just impossible to have a addChild invoked during a CCSequence?
Thanks!