Apply easing function to variable [SOLVED]

Several times I’ve found situations where I’ve wanted to apply an easing function to a variable. So far I’ve not found any elegant ways of doing this other than using the redundant(?) scale.z variable of my game object.

Does anyone have any clever ideas about this?

You can use a script property and run go.animate() on that.

4 Likes

Yup script properties. That’s how I used to do my timers before we had a timer function :slight_smile:

3 Likes

You can use any tween lua library.
For example: https://github.com/kikito/tween.lua

4 Likes

That’s really great, thanks everyone.

2 Likes