What it does
animation.createAnimator creates a Animator in animation. It takes entityId.
Signature
animation.createAnimator(entityId)Arguments
entityId
Example · generated
function start() { animation.create('main', 'position', 30, 'float'); animation.createAnimator('main');}animation.create is there to give the call something to act on; animation.createAnimator is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.