mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Add explanation: why we use Node and not Node2D (#5530)
* Add explanation: why we use Node and not Node2D Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -5,9 +5,12 @@ The main game scene
|
|||||||
|
|
||||||
Now it's time to bring everything we did together into a playable game scene.
|
Now it's time to bring everything we did together into a playable game scene.
|
||||||
|
|
||||||
Create a new scene and add a :ref:`Node <class_Node>` named ``Main``. Ensure you
|
Create a new scene and add a :ref:`Node <class_Node>` named ``Main``.
|
||||||
create a Node, **not** a Node2D. Click the "Instance" button and select your
|
(The reason we are using Node instead of Node2D is because this node will
|
||||||
saved ``Player.tscn``.
|
be a container for handling game logic. It does not require 2D functionality itself.)
|
||||||
|
|
||||||
|
Click the **Instance** button (represented by a chain link icon) and select your saved
|
||||||
|
``Player.tscn``.
|
||||||
|
|
||||||
.. image:: img/instance_scene.png
|
.. image:: img/instance_scene.png
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user