I’m trying to get my text to double in size, then shrink back down, for some reason the transition inside the shrinkText function isn’t working:
local text = display.newText("Text", 100, 100, "helvetica", 20) local function shrinkText() transition.to(text, {time = 2000, xScale = 0.5, yScale = 0.5}) end transition.to(text, {time = 2000, xScale = 2, yScale = 2, onComplete = shrinkText()})
Additionally, any print statements I put in the shrinkText function are executed before the bottom transition is finished. Why does that happen?