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

Tweens #247

Open
stevehalliwell opened this issue May 7, 2024 · 0 comments
Open

Tweens #247

stevehalliwell opened this issue May 7, 2024 · 0 comments

Comments

@stevehalliwell
Copy link
Owner

stevehalliwell commented May 7, 2024

Routinely running into the desire to be able to do something akin to a tween in development.

Tween.Value(
  1,
  0,
  2,
  Ease.InCubic, 
  fun (v) {SetGameObjectAlpha(someGo, v);},
  fun () {SetGameObjectActive(someGo, false);});

A system to do this can be written in ulox itself but is this something that language should deal with?

Common Variations:

  • empty update func, just delay a call
  • empty oncomplete func
  • only requiring linear easing
  • wanting the value on the tick and the normalised time

Requirements:

  • Final value change must be exactly the terminus, going from 1-2 must end at exactly 2 not 1.999996
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