Saturday, 17 August 2013

Cocos2d - scheduled selector never called

Cocos2d - scheduled selector never called

For some reason one of the methods I'm scheduling isn't getting called.
The class's parent's parent inherits from CCNode. The class's parent has a
method called resetCoolDown like this:
- (void) resetCoolDown:(ccTime)dt {
_onCoolDown = false;
}
I schedule like this:
[self scheduleOnce:@selector(resetCoolDown:) delay:1];
There are no issues scheduling the selector, but for some reason
resetCoolDown is never called.
Am I doing something wrong?

No comments:

Post a Comment