Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let dish_1 = self.childNode(withName: "dish_1");
- let dish_2 = self.childNode(withName: "dish_2");
- let square = UIBezierPath(rect: CGRect(x: 0, y: 0, width: 200, height: 200));
- let followSquare = SKAction.follow(square.cgPath, asOffset: true, orientToPath: false, duration: 5.0);
- dish_1?.run(SKAction.sequence([followSquare]))
- dish_2?.run(SKAction.sequence([followSquare]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement