Skip to content

Instantly share code, notes, and snippets.

@SnugglePilot
Created October 12, 2013 22:26
Show Gist options
  • Save SnugglePilot/6955630 to your computer and use it in GitHub Desktop.
Save SnugglePilot/6955630 to your computer and use it in GitHub Desktop.
path = new MotionPath();
for (tile in currentSelection) {
path = path.bezier(tile.centerX, tile.centerY, tile.centerX, tile.centerY);
}
Actuate.tween(this, time, { x:path.x, y:path.y }, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment