We can use scheduleUpdate or schedule:@selecotr(xxx) to schedule a method to run.
Is the scheduled method run in another thread?
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.
No. Cocos2d objects are not thread-safe and expected to run on main thread. The timer is scheduled on the main run loop. So do not block main thread under any circumstance.