mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #8705 from eztaah/master
Fix incorrect instruction to call node during 2D tutorial
This commit is contained in:
committed by
Max Hilbrunner
parent
bbd31182c8
commit
a6838c5f2b
@@ -198,7 +198,7 @@ Note that a new instance must be added to the scene using ``add_child()``.
|
||||
var mob = mob_scene.instantiate()
|
||||
|
||||
# Choose a random location on Path2D.
|
||||
var mob_spawn_location = get_node("MobPath/MobSpawnLocation")
|
||||
var mob_spawn_location = $MobPath/MobSpawnLocation
|
||||
mob_spawn_location.progress_ratio = randf()
|
||||
|
||||
# Set the mob's direction perpendicular to the path direction.
|
||||
|
||||
Reference in New Issue
Block a user