What it does
tween.to takes target, props, duration and easing. easing is optional.
Signature
tween.to(target, props, duration, easing?)Arguments
targetpropsdurationeasingoptional
Example · generated
function start() { tween.to('main', {}, 1);}tween.to is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.