I am trying to understand the difference between interval and delay in cocos2d’s scheduler.
If delay is the time between 2 selectors get executed. What is interval really?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Comments in cocos2D CCNode.h file, may be useful.
Schedules a custom selector with an interval time in seconds
/**
repeat will execute the action repeat + 1 times, for a continues action use kCCRepeatForever
delay is the amount of time the action will wait before execution
*/
If the selector is already scheduled, then the interval parameter will be updated without scheduling it again.