在这里,我想从上到下移动一些 cocos2D 精灵对象。在屏幕中随机位置生成的精灵 r。有时所有精灵的运动都不稳定..我不能使用 CCMove,因为我想在精灵之间保持相等的距离。
[self schedule: @selector(updateObjects:)];
-(void)updateObjects:(ccTime) dt
{
//when I print dt, it gives different value..
//jerk comes when this value s larger than ideal value..
for(Obstacles *Obs in ObsArray)
{
CGPoint pos = Obs.position;
pos.y -= gameSpeed;
Obs.position = pos;
}
}
我怎么解决这个问题。