BlessHayGaming
5/11/2018 - 6:47 AM

Smoothstep Stop

Find the value a certain amount between two other values with a smooth stop.

// smoothstep_stop_n(start,stop,amount,n);
// @desc	Find value between two values with a smooth stop.
// @arg		start
// @arg		stop
// @arg		amount
// @arg		n

var _start = argument0,
_stop = argument1,
_amount = argument2,
_n = argument3;

return _start + (_stop-_start) * (power(_amount,_n));