What it does
animation.setEasing sets Easing on an animation object. It takes id and a value. The accepted values are linear, quad, cubic, sine, elastic, bounce and back.
Signature
animation.setEasing(id, "linear"|"quad"|"cubic"|"sine"|"elastic"|"bounce"|"back")Arguments
id"linear"|"quad"|"cubic"|"sine"|"elastic"|"bounce"|"back"Accepts:
linearquadcubicsineelasticbounceback
Example · generated
function start() { animation.create('main', 'position', 30, 'float'); animation.setEasing('main', 'linear');}animation.create is there to give the call something to act on; animation.setEasing is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.