[ad_1]
tl;dr = When/The place/Why use ‘Node2d’ because the mother or father vs going straight to ‘Different Node’?
I’ve simply began diving into utilizing Godot for the primary time. I accomplished the Your First Recreation official tutorial (Dodge The Creeps) and have a query my searchengine-fu hasn’t but been capable of finding a solution for. Hyperlinks to this query being requested already and/or the place I utterly missed this within the docs are appreciated.
I wish to try my very own recreation now and study in the course of the course of. One thing I can not seem to discover a solution for is when it’s applicable to pick “Node2d” when creating a brand new scene, versus clicking on “Different Node” and deciding on what’s required from there.
If I wish to make a tower protection recreation I’ll want a scene to carry the ‘world/map’ that I make utilizing a TileMap. The Turrets I place and the Mobs that comply with the trail can be their very own scenes – presumably one thing like Sprite2D or AnimatedSprite2D
After I create these scenes (ie world.tscn, missile_turret.tscn and so forth), when/the place/why is it applicable to pick Node2D because the mother or father after which add TileMap or Sprite2D as a toddler, versus when ought to I simply go straight for “Different Node” then choose both TileMap or Sprite2D from the record of all nodes that comes up?
Which Node to make use of for sure options is a part of the journey of discovery I am wanting ahead to, however at the moment I am mentally stunlocked with the idea of utilizing the right mother or father node.
Questions rattling in my thoughts at the moment sound like: “Do I make every part Node2D after which add the suitable little one nodes each time? That did not appear to be the case within the tutorial” / “Do I make a “major.tscn” that makes use of the Node2D choice because the mother or father after which all of my different scenes skip straight to “Different Node > [correct node like TileMap]” because the mother or father which I then add to major.tscn?”
Any assist clearing the pinnacle noise is significantly appreciated. Thanks all
edit: two typos I observed
[ad_2]