Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

[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]

Leave a Reply

Your email address will not be published. Required fields are marked *