File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
getting_started/first_2d_game Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ Click Scene -> New Scene from the top menu and add the following nodes:
2424Don't forget to set the children so they can't be selected, like you did with
2525the 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.
3036This will ensure the mobs do not collide with each other.
3137
3238.. image :: img/set_collision_mask.webp
You can’t perform that action at this time.
0 commit comments