What it does
animation.setKeys sets Keys on an animation object. It takes id and a list.
Signature
animation.setKeys(id, [{frame, value}])Arguments
id[{frame, value}]
Example · generated
function start() { animation.create('main', 'position', 30, 'float'); animation.setKeys('main', [{ frame: 0, value: 1 }]);}animation.create is there to give the call something to act on; animation.setKeys is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.