So, there are a lot of great resources online for creating or modifying your own easing functions, such as this handy free tool…
http://timotheegroleau.com/Flash/experiments/easing_function_generator.htm
but Robert Penner’s formulae use 4 variables, and Flashpunk’s utils.Ease
only uses 1 variable, time. Im not exactly sure how he distills the formulae down to one variable or what the tweens are doing behind the scenes, and Id prefer not to have to if I can help it. Is there an easy way to either define your own curves (without understanding the math behind it) or converting one of Penner’s formulae to work with FlashPunk?
TL;DR how do I make this code work in flashpunk?
function(t:Number, b:Number, c:Number, d:Number):Number {
var ts:Number=(t/=d)*t;
var tc:Number=ts*t;
return b+c*(7.6475*tc*ts + -31.0425*ts*ts + 32.195*tc + -7.8*ts);
}