Skip to content

Make object travel to random positions

Make object travel to random positions (with the pathfinding behavior).

Authors and contributors to this community extension: VictrisGames.


When the action is used, the object(s) will select a random nearby location and begin moving towards it (using the Pathfinding behavior).

If desired, choose a direction and how closely you want the object to follow it. This can be used to make objects chase (or run away from) the player, or to make objects cross the screen using a meandering path.

If you keep using the action, once the object reaches a destination, it will select a new random location and begin moving towards it.

If you want to modify the speed of the object, edit the Pathfinding behavior of the object.

Tip

Learn how to install new extensions by following a step-by-step guide.

Actions

Make object travel to a random position, with optional direction
Make object travel to a random position around the object current position. The movement is initiated only when the object is not moving already (its Pathfinding behavior speed is 0). Move towards a specified angle, if desired.


This page is an auto-generated reference page about the Make object travel to random positions extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.