0 votes

Ok, so I has a hierarchy like this:
Map--V
->MapGeo
->Map
Counties
->MapCulture
->Panel---V (has my sript)
------------->Enter (On click condition)
->Heraldics
of_counties

Thing is A.hide(), A.show() is working well with other stuf (for child nodes)
It doesn't work for path nodes:

func EnterLand():
var B1 = $"/root/Map/MapGeo"
var B2 = $"/root/Map/Map
Counties"
var B3 = $"/root/Map/MapCulture"
var B4 = $"/root/Map/Heraldics
of_counties"
print(B1,B2,B3,B4)
B1.hide()
B2.hide()
B3.hide()
B4.hide()

func onEnter_pressed():
EnterLand()

I was trying to check if something is wrong with a script but as I see from print I get the right nodes:

[Sprite:1303][Sprite:1304][Sprite:1305][Control:1342]

So I can not use hide(), show() for non-child nodes? Since I tried it and it works well if I lunch it from Map's script (which is my main root).

Also, I wanted to ask if this engine has data analitic functions? Since I'm a Math student I see it as super tool to show data and so on... If it does have something similiar like R does for plots or calculations that would become top tool.

And thanks for all help I might get :)

in Engine by (12 points)

If I'm not mistaken, the draw function is only called on nodes in the scene tree. Consider adding your "path nodes" to the hierarchy via parent.add_child(node_you_wish_to_add) (or add_child(node) in the parent node's script.)

Please log in or register to answer this question.

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.