I am having issues zooming out by scaling a group.
I understand that when I scale by half, that I will also need to move the location of the group.
I’m using Camera as my group, ultimately, I have it move to the correct spot but the transition is a little odd… it’ll move towards middle then back down to where it needs to be.
This is my code snippet, maybe someone can help me what I’m doing wrong— basically I have it so the person presses a button then this happens:
transition.to(camera, {time=1000, xScale=0.5, yScale=0.5, y= display.contentHeight/4 })
The end result is exactly what I want - everything looks correctly zoomed out. But the transition seems a little off, like it’s zooming out with some space below then moves down. I tried making two transitions, one for the xScale/yScale and one for the moving of the y, doesn’t do anything. And when I do it without the transition, it still has a brief second or two where it looks to be zooming out but off centered, then quickly centers it.
Maybe I’m doing something wrong with the anchorPoints in the group? When it’s done, everything is correctly zoomed, it’s the brief transition that looks ‘off’, like it’s shrinking then adjusting. But even when I do it simultaneously it seems to still do it, subtle but it’s there and annoying… help!