scheduler question


#1

Hello all. First off thanks for all the hard work on cocos2d-x. Great Job! Sorry for the “i came from cocos2d, how do I do this in cocos2d-x” question, but here goes.

So in cocos2d I scheduled 2 update loops with

[self schedule:selector(updateall:)]; [self schedule:selector(forpause:)];

Is there a way to schedule without setting an interval? I pretty much want them to run on every game loop. Thanks!


#2

Please read the source code of tests project, then you will find the answer. :slight_smile: