Gui not recognising Gui node


gui.set_position(gui.get_node(“TKTNode”), gui.get_position(gui.get_node(“TKTNode”)) + vmath.vector3(0, Value, 0))

I made the node TKTNode quite recently and I can’t get it to find the node, I can find subnodes, and even nodes from other gui elements, but this breaks it, Why?

Judging by the stack trace, you’re trying to call a function in TickerTape.gui_script from PauseMenu.gui_script? With the way that Lua contexts work in Defold, it’ll only able to access nodes in PauseMenu.gui. Try using message passing instead.

1 Like