Create a new Node2D scene.

Rename the Node2D to ‘Main’.

Now add a Node2D node to ‘Main‘. Rename the new node to ‘GameRoot‘.
Your scene should now look like this.

Save the scene as ‘main.tscn‘


Attach a script to the ‘Main‘ node and save it as ‘main.gd‘



Leave a Reply