Hi everyone,
I am having trouble figuring out how I can scale a circle overlapping another circle of the same size, such that when it scales down it is in the center of the bigger circle. Currently, what is happening is that the circle scales more from the the top resulting in the smaller circle to be at below the center of the bigger circle. I have attached visuals to make it easier to understand what I am trying to say.
function displayCircles() outerCircle = display.newImageRect(mainGroup,circleObjectSheet,1,size,size) outerCircle.x=display.contentCenterX outerCircle.y=display.contentCenterY innerCircle = display.newImageRect(mainGroup,circleObjectSheet,2,196,196) innerCircle.x=display.contentCenterX innerCircle.y=display.contentCenterY transition.to(innerCircle,{time=1000,xScale=0.2,yScale=0.2}) end