Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: Component
Wraps FXGL's LiftComponent (com.almasb.fxgl.dsl.components.LiftComponent), which moves the entity back and forth on either axis at the configured distance / duration / speed. Use one of the xAxis* / yAxis* configurators to enable motion on that axis; the entity oscillates between two endpoints, swapping direction every duration period.
LiftComponent (TimerAjo = null, bool SkipCtor = false)
Creates a new LiftComponent. The optional LocalTimer arg is used to drive the oscillation clock; when omitted the underlying Kotlin ctor calls FXGL.getGameTimer().newLocalTimer() which requires a running FXGL engine. Pass a LocalTimer AJO directly for engine-free construction (tests, ad-hoc tools).
TimerAjo is an optional AJO around a com.almasb.fxgl.time.LocalTimer.adopt (object Ajo)
Wraps an existing LiftComponent AussomJavaObject.
isGoingRight ()
Returns true if the X-axis motion is currently positive.
setGoingRight (bool V)
isGoingUp ()
Returns true if the Y-axis motion is currently negative (up).
setGoingUp (bool V)
xAxisDistanceDuration (double Distance, double DurationSeconds)
Enables X-axis lift from a distance and a half-cycle duration. Speed is derived as distance/duration.
Distance is the peak-to-peak distance in pixels.DurationSeconds is the half-cycle duration in seconds.this objectxAxisSpeedDuration (double Speed, double DurationSeconds)
Enables X-axis lift from a speed and a half-cycle duration. Distance is derived as speed*duration.
Speed is the pixels-per-second speed.DurationSeconds is the half-cycle duration in seconds.this objectxAxisSpeedDistance (double Speed, double Distance)
Enables X-axis lift from a speed and a distance. Duration is derived as distance/speed.
Speed is the pixels-per-second speed.Distance is the peak-to-peak distance in pixels.this objectyAxisDistanceDuration (double Distance, double DurationSeconds)
Y-axis form of xAxisDistanceDuration.
yAxisSpeedDuration (double Speed, double DurationSeconds)
Y-axis form of xAxisSpeedDuration.
yAxisSpeedDistance (double Speed, double Distance)
Y-axis form of xAxisSpeedDistance.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.