Hi all,
I am using Godot 3.1
I have 21 buttons name:
btn1, btn2, btn3, ... , btn21
Now I want to get this btn nodepath.
var i = 1
while(i<=21):
getnode("ABC/XYZ/btn%d"%i).settext("X")
but it's not working. The ERROR is:
Attempt to call function 'set_text' in base 'null instance' on a null instance.
Anybody know how to fix it?