@@ -181,17 +181,22 @@ collisions with the floor. To do so, we can use Godot's :ref:`group
181
181
Open the scene ``mob.tscn `` again and select the *Mob * node. Go to the *Node *
182
182
dock on the right to see a list of signals. The *Node * dock has two tabs:
183
183
*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.
188
185
189
186
|image7 |
190
187
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
+
191
196
An icon appears in the *Scene * dock to indicate the node is part of at least one
192
197
group.
193
198
194
- |image8 |
199
+ |image10 |
195
200
196
201
We can now use the group from the code to distinguish collisions with monsters
197
202
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
367
372
368
373
However, the player won't die yet. We'll work on that in the next part.
369
374
370
- .. |image0 | image :: img/06.jump_and_squash/02.project_settings.png
375
+ .. |image0 | image :: img/06.jump_and_squash/02.project_settings.webp
371
376
.. |image1 | image :: img/06.jump_and_squash/03.physics_layers.webp
372
377
.. |image2 | image :: img/06.jump_and_squash/04.default_physics_properties.webp
373
378
.. |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
375
380
.. |image5 | image :: img/06.jump_and_squash/07.player_physics_mask.webp
376
381
.. |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
0 commit comments