I\'m trying make an element move by the edge of circle.
+ follow:duration: produce the same effect as follow:asOffset:orientToPath:duration: with both, asOffset
and orientToPath
parameters set to true
.
About asOffset parameter from the docs:
If true, the points in the path are relative offsets to the node’s starting position. If false, the points in the node are absolute coordinate values.
So, you should explicitly set it to false:
let circularMove = SKAction.follow(circle.CGPath, asOffset: false, orientToPath: true, duration: 5)