Skip to content

Commit 39abb00

Browse files
committed
jumping and squashing monsters
1 parent 6fc48f3 commit 39abb00

16 files changed

+16
-9
lines changed

getting_started/first_3d_game/06.jump_and_squash.rst

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,22 @@ collisions with the floor. To do so, we can use Godot's :ref:`group
181181
Open the scene ``mob.tscn`` again and select the *Mob* node. Go to the *Node*
182182
dock on the right to see a list of signals. The *Node* dock has two tabs:
183183
*Signals*, which you've already used, and *Groups*, which allows you to assign
184-
tags to nodes.
185-
186-
Click on it to reveal a field where you can write a tag name. Enter "mob" in the
187-
field and click the *Add* button.
184+
tags to nodes. Click on the *+* button to open the *Create new Group* dialog.
188185

189186
|image7|
190187

188+
Enter "mob" in the *Name* field and click the *Ok* button.
189+
190+
|image8|
191+
192+
The "mob" group is now shown under the *Scene Groups* section.
193+
194+
|image9|
195+
191196
An icon appears in the *Scene* dock to indicate the node is part of at least one
192197
group.
193198

194-
|image8|
199+
|image10|
195200

196201
We can now use the group from the code to distinguish collisions with monsters
197202
from collisions with the floor.
@@ -367,12 +372,14 @@ With that, you should be able to kill monsters by jumping on them. You can press
367372

368373
However, the player won't die yet. We'll work on that in the next part.
369374

370-
.. |image0| image:: img/06.jump_and_squash/02.project_settings.png
375+
.. |image0| image:: img/06.jump_and_squash/02.project_settings.webp
371376
.. |image1| image:: img/06.jump_and_squash/03.physics_layers.webp
372377
.. |image2| image:: img/06.jump_and_squash/04.default_physics_properties.webp
373378
.. |image3| image:: img/06.jump_and_squash/05.toggle_layer_and_mask.webp
374-
.. |image4| image:: img/06.jump_and_squash/06.named_checkboxes.png
379+
.. |image4| image:: img/06.jump_and_squash/06.named_checkboxes.webp
375380
.. |image5| image:: img/06.jump_and_squash/07.player_physics_mask.webp
376381
.. |image6| image:: img/06.jump_and_squash/08.mob_physics_mask.webp
377-
.. |image7| image:: img/06.jump_and_squash/09.groups_tab.png
378-
.. |image8| image:: img/06.jump_and_squash/10.group_scene_icon.png
382+
.. |image7| image:: img/06.jump_and_squash/09.groups_tab.webp
383+
.. |image8| image:: img/06.jump_and_squash/10.group_create_new.webp
384+
.. |image9| image:: img/06.jump_and_squash/11.group_scene_groups.webp
385+
.. |image10| image:: img/06.jump_and_squash/12.group_scene_icon.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)