Hi there!
I'm wondering how to remove a delayedCall from juggler with removeObject:?
I've been trying something like this:
in My Game.h:
SPDelayedInvocation *factory;
and in my Game.m:
factory = [SPDelayedInvocation invocationWithTarget:self delay:creation_interval]; [self.stage.juggler addObject:factory]; [factory myDesiredMethodCall];
but, obviously, a SPDelayedInvocation does not responds to "myDesiredMethodCall" which is the method I want to call (of my Game.m)...
What I want to do is to remove the delayedInvocation at any time.
[self.stage.juggler removeObject:factory]
Thanks guys!
I'm almost finishing my game!