diff --git a/getting_started/step_by_step/exporting.rst b/getting_started/step_by_step/exporting.rst index 24bd75617..8bce4fdb9 100644 --- a/getting_started/step_by_step/exporting.rst +++ b/getting_started/step_by_step/exporting.rst @@ -117,7 +117,7 @@ changed: func _on_Player_body_entered( body ): hide() emit_signal("hit") - $CollisionShape2D.call_deferred("set_disabled", true) + $CollisionShape2D.set_deferred("disabled", true) Export templates ---------------- diff --git a/getting_started/step_by_step/your_first_game.rst b/getting_started/step_by_step/your_first_game.rst index 3b28d05cc..4da120b0d 100644 --- a/getting_started/step_by_step/your_first_game.rst +++ b/getting_started/step_by_step/your_first_game.rst @@ -459,7 +459,7 @@ Add this code to the function: func _on_Player_body_entered(body): hide() # Player disappears after being hit. emit_signal("hit") - $CollisionShape2D.call_deferred("set_disabled", true) + $CollisionShape2D.set_deferred("disabled", true) .. code-tab:: csharp