I have a node (“weak_point”) and I manually add them on different branches of a parent (a boss). Parent has a variable “weak_points” : integer (so that when it is zero the parent boss dies)
PARENT
= Branch_A
== weak_point_A
= Branch_B
== Branch_Ba
=== weak_point_B
Is it possible by code to increase this var “weak_points” each time I manually place the weak_point node?
(I currently wrote in the var number to how many nodes I added and it works fine. I’m just exploring other options)
Those find calls need to run inside _ready(), not at the top of the script. At class-body time the children usually aren’t there yet, so you get empty.