stevehalliwell / ulox

A bytecode interpreted scripting language for games in Unity.
MIT License
24 stars 0 forks source link

Tweens #247

Open stevehalliwell opened 5 months ago

stevehalliwell commented 5 months ago

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:

Requirements: