diff --git a/getting_started/step_by_step/your_first_game.rst b/getting_started/step_by_step/your_first_game.rst index dff6a9058..14288af81 100644 --- a/getting_started/step_by_step/your_first_game.rst +++ b/getting_started/step_by_step/your_first_game.rst @@ -467,7 +467,7 @@ Add this code to the function: { Hide(); // Player disappears after being hit. EmitSignal("Hit"); - GetNode("CollisionShape2D").Disabled = true; + GetNode("CollisionShape2D").SetDeferred("disabled", true); } Each time an enemy hits the player, the signal is going to be emitted. We need