Hi everyone! I am using jsbindings for my game but confronting an issue with cc.Node.schedule method. I need to use
my_sprite.schedule( my_function, 1, cc.REPEAT_FOREVER, 0);
I was expecting that schedule will call my function with 0 delay and then repeat calling it every second, but it isn’t. Then I did the following test:
my_sprite.schedule( my_function, 10, cc.REPEAT_FOREVER, 5);
And what schedule is doing: Waits 5 second as my delay parameter says but then delays 10 more for the fist call. I tought that the autorepeat delta time (first parameter) was used as delay between every call but not including the first call.
Is this behaviour what it should be expected or is this a bug?
Thank you in advance for any help.