I’m dynamically generating box nodes to display items in my inventory. I want the player to be able to drag each of the boxes. How would I go about doing this?
I’m trying to do something like this:
Below is how i generate my boxes
for i, v in pairs(table) do
local node = gui.new_box_node(vmath.vector3(x, y, 0), vmath.vector3(140, 140, 0))
x = x + 150
if x >= 600 then
x = 0
y = y - 160
end
end