Game Development Community

Easing Equations

by Aditya Kulkarni · in Torque Game Builder · 04/09/2010 (11:46 pm) · 5 replies

Ok, I'll get straight to the point...how do I use these?

I want these effects in torquescript: briancrescimanno.com/demos/easing-demo.html

Basic equations:
function easeIn(t, b, c, d) {
return c*(t/=d)*t + b;
}

function easeOut(t, b, c, d) {
return -c * (t/=d)*(t-2) + b;
}

But am stumped...how do I implement them?

#1
04/09/2010 (11:53 pm)
This resource might help.
#2
04/10/2010 (12:00 am)
The Penner equations, exactly...but I have TGB, without the source...
#3
04/10/2010 (12:33 am)
Right, check these examples then.
#4
04/10/2010 (12:40 am)
Awesome! Thanks Stefan.
#5
04/10/2010 (7:19 am)
Never seen these links before. Very very helpful for what I'm working on right now. Thanks Stefan!

It would be great to see this thread turn into a sticky with all the "help flash developers get started in tgb" stuff. ;)