godot 4.4 courses
Start below launch price for a limited time
Now in Early Access!

Videos

Follower AI

Let’s code an AI that follows any point in space. You can use it to follow the mouse cursor, or another character, as we’ll see later in the series.

Smooth arrive AI

Our AI can follow a point, but it will always arrive to it abruptly and try to keep moving to the target, even if it’s close to it already. The arrive to behavior makes agents smoothly arrive to a given location.

Moving smoothly towards the mouse

Let’s put the steering behaviors we wrote to the test by making our AI move smoothly towards the mouse cursor.

Make the AI follow the leader

Make the AI agent follow another agent from a distance using the arrive to steering behavior.