I’m currently trying to make a simple match-3 puzzle game in hopes of learning the basics of Defold.
Currently I’ve set up a main_gui which is attempting to clone a gui template for each boardspace. I have a board space template as a child node of the main_gui and in my code I’m doing the following:
local tile_template = gui.get_node("tile_template")
But this seems to cause an error:
No such node:
Are template not considered nodes? When I create a box node and name it, gui.get_node seems to work correctly.
Also I noticed that the gui_script that exists on my tile_template doesn’t seem to be running.
Anyone have any ideas why my scripts aren’t working properly?
Thanks!