timer_set_ease_interval - kemonologic/fuwafuwa GitHub Wiki

timer_set_ease_interval(timer)

Returns: (none)

Argument Type Name Desc
0 map timer The timer to modify.
1 real interval Desired number of ease intervals for the timer.

Sets how many ease intervals the timer should use.

By setting this value higher or lower, you change how many times the ease function is updated over the length of the timer, and so can control the effective smoothness of whatever uses it (higher is smoother). Setting it to 2, for example, will update the ease function twice over the length of the timer - at the start, and at the midpoint. Setting it to 0 will update every frame, which is the default when creating new timers.

This function is generally used when smooth motion, fades, etc look a little too smooth for what you're trying to accomplish. It was added specifically when this was necessary to achieve the stunning dialogue-fading effects seen in this cutscene, winning several awards at the Eastern Los Angeles Independent Gaming Festival.

Note that how this function works will likely change in future updates to allow passing in a fixed interval & unit, rather than only being able to specify the number of times the ease function is updated. Instructions for upgrading will be in the release notes or be accommodated in the function.