Hi Folks,
I was trying to write a scale function using easing equations. Basically, starting a object group from 0% to 150% and back to 100%.
How do i do that and also wanted to keep the registration point to the center.
This is the function i have, but does not work as intended.
local function doScaleBubble(target, onCompleteDo)
local secondTranBubble, thirdTranBubble
--Third Transition
thirdTranBubble = function()
transition.to(target, {transition = easingx.easeIn , time = 300, xScale = 1, yScale = 1, onComplete = onCompleteDo})
end
--Second Transition
secondTranBubble = function()
transition.to(target, {transition = easingx.easeIn , time = 300, alpha = 1, xScale = 1.5, yScale = 1.5, onComplete = thirdTranBubble})
end
secondTranBubble()
end
[import]uid: 131058 topic_id: 24270 reply_id: 324270[/import]