tween.to

Section: Tween

What it does

tween.to takes target, props, duration and easing. easing is optional.

Signature

tween.to(target, props, duration, easing?)

Arguments

  • target
  • props
  • duration
  • easingoptional

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.

1 members in tween