Skip to content

Commit e3986bf

Browse files
authored
Merge pull request #7566 from dahliakyu/patch-1
Update 03.coding_the_player.rst
2 parents f480213 + edd946f commit e3986bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/first_2d_game/03.coding_the_player.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Next, add this code to the function:
399399
.. tabs::
400400
.. code-tab:: gdscript GDScript
401401

402-
func _on_body_entered(body):
402+
func _on_body_entered(_body):
403403
hide() # Player disappears after being hit.
404404
hit.emit()
405405
# Must be deferred as we can't change physics properties on a physics callback.

0 commit comments

Comments
 (0)