From a6838c5f2b21c02dc96ef3d439f76224ac2623df Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Sat, 13 Jan 2024 18:12:30 +0100 Subject: [PATCH] Merge pull request #8705 from eztaah/master Fix incorrect instruction to call node during 2D tutorial --- getting_started/first_2d_game/05.the_main_game_scene.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/first_2d_game/05.the_main_game_scene.rst b/getting_started/first_2d_game/05.the_main_game_scene.rst index 9e7f47ad4..22715b8d9 100644 --- a/getting_started/first_2d_game/05.the_main_game_scene.rst +++ b/getting_started/first_2d_game/05.the_main_game_scene.rst @@ -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.