I’m creating objects, instances of ofNode, let call them cards. Every card has it’s own properties, like buttons, text and images, which are drawn in card .draw() function.
If I change card location “children” objects aren’t moving along. Is there any way to bind their position to their card object?
Use the
setParentmethod:Note that
setPositionis local, which is related to its parent position, whilesetGlobalPositionis global.