默认的Cocos2D计划间隔是多少?

问题描述

| 在cocos2d中,使用认(空白)时间间隔参数设置计时器时:
 [self schedule:(update)]; 
 //Not a 100% sure this code is correct,but you kNow what i mean
我认为计时器运行的间隔是1/60,但是我不确定。     

解决方法

这取决于您的CCDirector设置。如果您正在使用
[[CCDirector sharedDirector] setAnimationInterval:1.0/60];
要么
CC_DIRECTOR_INIT();
然后每1/60秒调用一次update方法。