This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

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 hoffset or voffset don't seem to offer a straightforward solution... Any advise?

Thanks!

Godot version Godot 4.0 beta 2
in Engine by (16 points)

1 Answer

+2 votes
Best answer

If you look at the "latest" docs, you can see PathFollow2D's updated property names:
https://docs.godotengine.org/en/latest/classes/class_pathfollow2d.html

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

by (22,191 points)
selected by

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!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.