0 votes

Hello everyone!

Question: What is the difference between considering to choose Node or Node2D for setting up your 2D scene? (we are talking about scene that will contain everything else)

Is there a fundamental difference why you should choose one vs another? Is there any performance considerations? Method access?

I have seen some tutorials start scene with Node others with Node2D. Initially I thought if you go with Node2D you will not be able to child say Timer Node as it is not under Node2D but it linked without any trouble.

Thank you for any insight!

Godot version 3.3.2
in Engine by (20 points)

1 Answer

0 votes
Best answer

In most of the examples you're talking about, it makes no difference at all.

If it's just going to be a container to hold a bunch of other nodes, and it won't be actually doing much of anything, then Node is fine. If you use a Node2D but it never moves, then it isn't really affecting its children's transforms.

The general rule is, you should start your scene with the type that provides the functionality you need.

by (20,477 points)
selected by

Thank you for taking time to answer me! ♥

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.