Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. let dish_1 = self.childNode(withName: "dish_1");
  2. let dish_2 = self.childNode(withName: "dish_2");
  3.  
  4. let square = UIBezierPath(rect: CGRect(x: 0, y: 0, width: 200, height: 200));
  5. let followSquare = SKAction.follow(square.cgPath, asOffset: true, orientToPath: false, duration: 5.0);
  6.  
  7. dish_1?.run(SKAction.sequence([followSquare]))
  8. dish_2?.run(SKAction.sequence([followSquare]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement