Hi All
I'm trying to get a node from a variable, but i get an error msg.
For example: I have several nodes (Textured buttons) named item1, item2, item3...
Then i have a loop like this:
for i in range (8):
slot = "item" + str(i)
get_node(slot).set_normal_texture("res://"+item+".png")
I've got a message saying that cannot convert argument from string to object
Does anybody how can i cast a string to object?
Thanks in advance