How do you achieve transitions that start from the center of the image and grows in xScale in all directions? Because right now my image grows from the top left corner.
For example when you inflate a balloon, you’d need a transition.to that grows in all directions, not just from the bottomright corner
Thanks in advance, [import]uid: 30185 topic_id: 5815 reply_id: 305815[/import]
I don’t know how to apply that to the transition.to function, though. I’ve got it set to center at the moment and it’s not working
Edit: Using this code right now
local ballTrans = transition.to(ball, { time=800, xScale=ball.xScale*2, yScale=ball.yScale*2, alpha=0 })
ballTrans:setReferencePoint(display.CenterReferencePoint) [import]uid: 30185 topic_id: 5815 reply_id: 19954[/import]