Godot 4.0: PathFollow2D.offset missing

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tatusko

Hello there! I’m new to Godot and right now I’m using Godot 4.0 beta 2 version, following the tutorial in latest version of the docs building 2d game “Dodge the Creeps!”.

I got stack at having the creeps spawn at random location from the line2D, and it looks like the offset method is missing from the PathFollow2d. The h_offset or v_offset don’t seem to offer a straightforward solution… Any advise?


:bust_in_silhouette: Reply From: kidscancode

If you look at the “latest” docs, you can see PathFollow2D’s updated property names:

In this case, what used to be called offset, is now called progress.

That’s it, thanks!

I was too fixated on the offset keyword, but I’ve actually realized that progress does the same a couple of minutes after asking the question. Wanted to delete the post right away, but it took around 8h to appear in the first place… Thanks for the help!

tatusko | 2022-10-02 18:38