Browse Source

Update getting started 2D to 4.3

Hana - Piralein 11 months ago
parent
commit
9202c89ff6

+ 11 - 3
getting_started/first_2d_game/06.heads_up_display.rst

@@ -285,12 +285,20 @@ mobs to remove themselves. We can do this with the "group" feature.
 
 
 In the ``Mob`` scene, select the root node and click the "Node" tab next to the
 In the ``Mob`` scene, select the root node and click the "Node" tab next to the
 Inspector (the same place where you find the node's signals). Next to "Signals",
 Inspector (the same place where you find the node's signals). Next to "Signals",
-click "Groups" and you can type a new group name and click "Add".
+click "Groups" to open the group overview
+and the "+" button to open the "Create New Group" dialog.
 
 
 .. image:: img/group_tab.webp
 .. image:: img/group_tab.webp
 
 
-Now all mobs will be in the "mobs" group. We can then add the following line to
-the ``new_game()`` function in ``Main``:
+Name the group ``mobs`` and click "ok" to add a new scene group.
+
+.. image:: img/add_group_dialog.webp
+
+Now all mobs will be in the "mobs" group.
+
+.. image:: img/scene_group_mobs.webp
+
+We can then add the following line to the ``new_game()`` function in ``Main``:
 
 
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript

+ 2 - 0
getting_started/first_2d_game/07.finishing-up.rst

@@ -37,6 +37,8 @@ All audio is automatically imported with the ``Loop`` setting disabled.
 If you want the music to loop seamlessly, click on the Stream file arrow,
 If you want the music to loop seamlessly, click on the Stream file arrow,
 select ``Make Unique``, then click on the Stream file and check the ``Loop`` box.
 select ``Make Unique``, then click on the Stream file and check the ``Loop`` box.
 
 
+.. image:: img/unique_resource_music.webp
+
 To play the music, add ``$Music.play()`` in the ``new_game()``
 To play the music, add ``$Music.play()`` in the ``new_game()``
 function and ``$Music.stop()`` in the ``game_over()`` function.
 function and ``$Music.stop()`` in the ``game_over()`` function.
 
 

BIN
getting_started/first_2d_game/img/add_group_dialog.webp


BIN
getting_started/first_2d_game/img/attach_node_window.webp


BIN
getting_started/first_2d_game/img/group_tab.webp


BIN
getting_started/first_2d_game/img/input-mapping-add-action.webp


BIN
getting_started/first_2d_game/img/input-mapping-add-key.webp


BIN
getting_started/first_2d_game/img/input-mapping-completed.webp


BIN
getting_started/first_2d_game/img/input-mapping-event-configuration.webp


BIN
getting_started/first_2d_game/img/scene_group_mobs.webp


BIN
getting_started/first_2d_game/img/setting-project-width-and-height.webp


BIN
getting_started/first_2d_game/img/setting-stretch-mode.webp


BIN
getting_started/first_2d_game/img/unique_resource_music.webp