Merge pull request #7566 from dahliakyu/patch-1

Update 03.coding_the_player.rst
This commit is contained in:
Matthew
2025-01-22 16:19:59 -05:00
committed by GitHub

View File

@@ -399,7 +399,7 @@ Next, add this code to the function:
.. tabs::
.. code-tab:: gdscript GDScript
func _on_body_entered(body):
func _on_body_entered(_body):
hide() # Player disappears after being hit.
hit.emit()
# Must be deferred as we can't change physics properties on a physics callback.