【发布时间】:2014-09-28 21:53:43
【问题描述】:
如何设置 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;
【问题讨论】:
标签: ios sprite-kit skaction