Adding the Enemies Container Node


2.Step-by-Step Instructions

-Open your main scene (main.tscn).

-Right-click the root node main (or click the + icon) and select Add Child Node.

-Search for Node2D, select it, and click Create.

-Rename the new node to enemies.

-With the enemies node selected, go to the Inspector panel on the right.

-Expand Node2D ==> Transform and set Position:

-X: 0.67

-Y: 0.95

2. Updated Scene Tree Structure

-main (Node2D)

-WorldEnvironment

-background

-player (CharacterBody2D)

-enemies