Let’s say I have a card in my game, that consists of a background image, a foreground image, and a text. And I put them all in one group.
I want now to scale the group with transition.to, xScale and yScale, with the ReferencePoint of the group at the CENTER of the group contents. It can be seen in the image below.
I want to have the effect that the group zooms in/out. If I leave my ReferencePoint at default, it doesn’t scale evenly according to groups childs.
What’s the best tactic to achieve that. One solution I thought, is to build the graphics and text around (0,0) Origin of the group, even with negative values, and then move the origin in my stage to the apropriate place. But, is there a smarter way to do it?