I ceated the CCBFile in Sprite Builder and added in a main scene, now when i run the project that CCBFile animation start automatically. I want to start or call it after some delay... any idea?
here is my code...
@implementation MainScene {
CCPhysicsNode *_physicsNode;
CCNode *playerbackwardshort;
}
// is called when CCB file has completed loading
- (void)didLoadFromCCB {
//For Delay
[self performSelector:@selector(Upgrade) withObject:nil afterDelay:0.6];
}
-(void)Upgrade{
CCBAnimationManager* am = self.userObject;
[am runAnimationsForSequenceNamed:@"playerbackwardshort"];
}