- Godot Engine Game Development Projects
- Chris Bradfield
- 84字
- 2021-06-18 18:51:28
Using groups
Groups provide a tagging system for nodes, allowing you to identify similar nodes. A node can belong to any number of groups. You need to ensure that all coins will be in a group called coins for the player script to react correctly to touching the coin. Select the Coin node and click the Node tab (the same tab where you found the signals) and choose Groups. Type coins in the box and click Add, as shown in the following screenshot: