Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps FXGL's Achievement, a value type identified by name with a description and a (varName, varValue) trigger. When the named world property reaches varValue (greater-than-or-equal for ints and doubles, equality for booleans), the achievement unlocks. Achievements must be registered via GameSettings before the engine starts; see fxgl.GameSettings.getAchievements (added in chunk 6 deferred test patterns) for the registration path.
Achievement (string Name, string Description, string VarName, VarValue)
Creates a new Achievement with the given name, description, trigger variable name, and trigger value.
Name is the display name.Description is the unlock description.VarName is the world-property name to watch.VarValue is the value that unlocks the achievement (int, double, or bool).adopt (object Ajo)
Wraps an existing Achievement AussomJavaObject.
Ajo is an AussomJavaObject around an Achievement.A new wrapper.getName ()
Returns the achievement name.
A string.getDescription ()
Returns the unlock description.
A string.getVarName ()
Returns the watched world-property name.
A string.isAchieved ()
Returns whether the achievement has been unlocked.
A bool.achievedProperty ()
Returns the achieved JavaFX ReadOnlyBooleanProperty for binding to UI.
An AussomJavaObject around a ReadOnlyBooleanProperty.getVarValue ()
Returns the value that triggers this achievement. Useful for UI showing "X / target" style progress.
The trigger value (int, double, or bool).
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.