What’s the proper way to move groups of display objects?
Moving a display.group, doesn’t work with transitions all the time because the coordinates are moving with things like masking exploding the bounds and changing the calculations. I have rectangle characters with masked lifebars but transition/moving them as single display objects is subject to these conditions.
var obj1 = display.newRect(…)
var obj2maskedBar = display.newRect(…)
var grp1 = display.newGroup()
grp1:insert(obj1)
grp1:insert(obj2maskedBar)
Now if obj2 is manipulated, the bounds of the character+bar are blown out (the mask/bar potentially expands the group bounds).
This screws up trajectories.
I’m not sure what the correct approach is, with only display objects and display groups to work with.