Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: Component
Wraps FXGL's FollowComponent (com.almasb.fxgl.dsl.components.FollowComponent), which makes the owning entity follow a target Entity at a given speed while staying within a minDistance..maxDistance range. Inside minDistance it backs away; beyond maxDistance it advances; in between it idles.
FollowComponent (object TargetEntity = null, double Speed = 120.0, double MinDistance = 50.0, double MaxDistance = 100.0)
Creates a new FollowComponent.
TargetEntity is an Entity wrapper, or null.Speed is the move speed in pixels per second.MinDistance is the comfort-zone inner radius.MaxDistance is the comfort-zone outer radius.adopt (object Ajo)
Wraps an existing FollowComponent AussomJavaObject.
getTarget ()
Returns the target Entity AJO (may be null).
setTarget (object TargetEntity = null)
Sets the target Entity to follow.
TargetEntity is an Entity wrapper, or null.this objectgetSpeed ()
setSpeed (double V)
getMinDistance ()
setMinDistance (double V)
getMaxDistance ()
setMaxDistance (double V)
setMoveDelay (double Seconds)
Sets the delay between moves once the target is in the comfort zone.
Seconds is the delay in seconds.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.