플레이어의 속도를 어떻게 조절할 수 있습니까? ,내 게임 속도를 제어 하시겠습니까?
if(([self childNodeWithName:@"hero"].position.x >= 180)
&&
(self.touchedHero == YES)
&& _canMove ==YES){
[[self childNodeWithName:@"hero"]setPosition:CGPointMake(180, [self childNodeWithName:@"hero"].position.y)];
[self.world setPosition:CGPointMake(self.world.position.x-5, self.world.position.y)];
그러나이 방법은 장치의 성능에 의존하고, 속도가 매우 불안정 인 iOS 기기에서 내 응용 프로그램을 실행할 때, 경우에 따라서는 매우 빠르게 이동하고 때로는 느리게 : 나는 운동 didSimulatePhysics()
방법을 사용하고 있습니다 어떻게이 속도를 제어 할 수 있습니까 ???