• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

Object Keeps Returning to the Start of a Path


I've been trying to get an object to follow a path that the player inputs, but whenever it finishes it keeps returning to the beginning of the path. I've used the path_start function and set the end action to stop, but it keeps doing it, no matter what I try to do about it.

Is there a way to stop it from doing this, or is this just how paths work in GML?

Any help will be much appreciated.


šŸ§ *penguin noises*
GMC Elder
If the path is "closed", an additional point gets added at the first point (so the new last point and the first point have the same position). Make sure to not create the path as "closed" if you want it to not loop back on itself. (You could manually remove the last point of the path if you can't figure out how to make it unclosed)