소스 검색

Merge pull request #8705 from eztaah/master

Fix incorrect instruction to call node during 2D tutorial
Max Hilbrunner 1 년 전
부모
커밋
a6838c5f2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      getting_started/first_2d_game/05.the_main_game_scene.rst

+ 1 - 1
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.