Topic was automatically imported from the old Question2Answer platform.
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()**
add_child(mob)
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