Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for path customisation #9

Open
Zenoo opened this issue Aug 22, 2022 · 0 comments
Open

Allow for path customisation #9

Zenoo opened this issue Aug 22, 2022 · 0 comments

Comments

@Zenoo
Copy link

Zenoo commented Aug 22, 2022

It would be really helpful to be able to specify the path you want the tween to use,.
Presets for this would be nice, like: Path.linear (default), Path.arc, Path.ondular.
This would help render sort of a jump forward animation

Ex:

  await Tweener.add({
    target: animatedSprite,
    duration: 0.5,
    path: Path.arc(45), // Initial arc angle (deg)
  }, {
    x: animatedSprite.x + 100,
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant