0
你如何設定SKAction的起點?我試圖在一個圓圈中動畫一個節點,但我無法設置起始位置。它始終默認設置。這裏是我的代碼:SKAction起點
CGPathRef circle = CGPathCreateWithEllipseInRect(CGRectMake(self.frame.size.width/2-75,self.frame.size.height/2-75,150,150), NULL);
self.circlePathActionClockwise = [SKAction followPath:circle asOffset:NO orientToPath:YES duration:5.0];
self.circlePathActionClockwise = [SKAction repeatActionForever:self.circlePathActionClockwise];
//[self.ball runAction:self.circlePathActionClockwise];
self.ball.speed = 1.0;