It looks like some of the GDScript has changed from v3 to v4. Is there a place to find the changes?

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

I am new to Godot and was trying to follow a tutorial. I figured out some of the updated changes but I have run into a couple I cannot figure out.

func _on_mob_timer_timeout():

var mob_spawn_location = $MobPath/MobSpawnLocation
mob_spawn_location.unit_offset = randf()  **It does not like this unit_offset**

var mob = mob_scene.instance()  **It does not like this instance()**
:bust_in_silhouette: Reply From: jgodfrey

The most comprehensive list of changes that I’m aware of is this docs page:

However, the tutorial you’re following has been updated for version 4. I think you may be looking at an older version?

For example, the v4 equivalent of the code you posted above is discussed here:

Thank you that was exactly what I needed!
instance is now instantiate and unit_offset is progress_ratio.
I find these a little odd changes myself but that’s what they are.
The rest of your links were good info. Thanks again

DDWhite | 2023-03-13 02:36

:bust_in_silhouette: Reply From: zhyrin

I remember someone in a video mentioned that the docs page is not comprehensive about renames, for those, you should refer to this file:

Thank you this is good information!

DDWhite | 2023-03-13 15:53