method
Tween.chain
Tween.chain(handle, to, dur, ease) -> handle
Appends a tween segment to a handle that runs after its current segments finish, continuing from where the previous one ended — so the game only names the new target. Returns the same handle, so calls chain fluently. A handle holds up to eight segments; combine with Tween.delay for pauses. The engine advances the whole sequence one segment at a time.
Parameters
handlethe tween handle to extendtothe target value for this segmentdurthe segment length in engine ticksease0 linear, 1 in, 2 out, 3 in-outExample
program Demo {
property Marker { n: int = 0 }
model M { Marker }
entry {
var h = Tween.to(0, 100, 20, 2) # rise
h = Tween.chain(h, 0, 20, 1) # then fall back
quit()
}
}