Host typegenerated
Tween
Creates automatically playing gameplay tweens owned by the calling script. Copies alias playback state. Advance occurs before the owner's subsequent updates using script delta. No automatic property binding. Curves: linear, ease, ease-in, ease-out, ease-in-out. Finite endpoints and finite non-negative duration are required; zero duration completes immediately. Maximum 8192 retained handles per runner; dispose unused handles.
21 members · engine 0.1.0
Tween.after(tween: TweenHandle, previous: TweenHandle) -> unitHolds a tween still untilprevioushas finished, then plays it from the next step: tweens in sequence. One whosepreviousis disposed goes on without it.Tween.cancel(tween: TweenHandle) -> unitStops at the current value; is_done is false. Restart can play it again.Tween.color(from: Color, to: Color, duration: number, easing: String) -> ColorTweenStarts a ColorTween, blending all four channels without additional gamma conversion or channel clamping.Tween.color_value(tween: ColorTween) -> ColorReads the eased Color including alpha.Tween.dispose(tween: TweenHandle) -> unitReleases a tween; aliases become invalid. Owner removal, script replacement and runner reset also release it.Tween.is_cancelled(tween: TweenHandle) -> boolWhether cancelled; its last value remains readable until disposed.Tween.is_done(tween: TweenHandle) -> boolTrue on natural completion, including zero duration. Cancellation is not completion.Tween.is_paused(tween: TweenHandle) -> boolWhether advancement is paused.Tween.number(from: number, to: number, duration: number, easing: String) -> NumberTweenStarts a NumberTween; duration is seconds.Tween.number_value(tween: NumberTween) -> numberReads the eased number, held at the exact target after completion.Tween.pause(tween: TweenHandle) -> unitPauses at the current value.Tween.progress(tween: TweenHandle) -> numberLinear fraction of the current play from 0 to 1, running back down on a yoyo's return; zero duration is 1.Tween.restart(tween: TweenHandle) -> unitResets to the original endpoints and begins again, clearing pause/cancellation.Tween.resume(tween: TweenHandle) -> unitResumes a paused tween. Does not undo cancellation.Tween.set_delay(tween: TweenHandle, seconds: number) -> unitHolds the starting value for a number of seconds before playing.Tween.set_loops(tween: TweenHandle, count: number) -> unitPlays it a whole number of times; 0 plays for ever and is never done.Tween.set_yoyo(tween: TweenHandle, on: bool) -> unitWhether every other play runs back from the end to the start, for a pulse or a bob.Tween.vec2(from: Vec2, to: Vec2, duration: number, easing: String) -> Vec2TweenStarts a Vec2Tween in the endpoints' coordinate space.Tween.vec2_value(tween: Vec2Tween) -> Vec2Reads the eased Vec2.Tween.vec3(from: Vec3, to: Vec3, duration: number, easing: String) -> Vec3TweenStarts a Vec3Tween in the endpoints' coordinate space.Tween.vec3_value(tween: Vec3Tween) -> Vec3Reads the eased Vec3. Apply through ordinary checked transform setters.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b