How can I make cocos2d schedule selector only once? Right now the best I can do is:
[self schedule:@selector(eventHappend:) interval:2];
and eventHappend:
- (void)eventHappend: (ccTime) dt
{
[self unschedule:@selector(eventHappend:)];
// Do stuff
}
but that seems like a workaround… is there a method to schedule only once?
You can run a sequence of actions on the node, a CCDelay followed by a CCCallFunc that invokes your method.
Like this…