Skip to content

Commit bdf7026

Browse files
Piraleinershn
andcommitted
clarify wording
Co-Authored-By: Ershn <[email protected]>
1 parent fed201e commit bdf7026

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

getting_started/first_2d_game/04.creating_the_enemy.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ Click Scene -> New Scene from the top menu and add the following nodes:
2424
Don't forget to set the children so they can't be selected, like you did with
2525
the Player scene.
2626

27-
In the :ref:`RigidBody2D <class_RigidBody2D>` properties, set ``Gravity Scale``
28-
to ``0``, so the mob will not fall downward. In addition, under the
29-
:ref:`CollisionObject2D <class_CollisionObject2D>` section, uncheck the ``1`` inside the ``Mask`` property.
27+
Select the ``Mob`` node and set it's ``Gravity Scale``
28+
property in the :ref:`RigidBody2D <class_RigidBody2D>`
29+
section of the inspector to ``0``.
30+
This will prevent the mob from falling downwards.
31+
32+
In addition, under the :ref:`CollisionObject2D <class_CollisionObject2D>`
33+
section just beneath the **RigidBody2D** section,
34+
expand the **Collision** group and
35+
uncheck the ``1`` inside the ``Mask`` property.
3036
This will ensure the mobs do not collide with each other.
3137

3238
.. image:: img/set_collision_mask.webp

0 commit comments

Comments
 (0)