In below code,
once the rectangle reaches the half of its original width, a small glitch occurs.The transition is not smooth for a short time…
local pb = display.newRect(80, 100, 1500, 20) pb.anchorX = 0 pb.anchorY = .5 pb:setFillColor(.5) local pb\_max\_time = 3 local function onPbDone() pb.isVisible = false end pb.isVisible = true transition.scaleTo(pb, { xScale = .01, time = pb\_max\_time\*1000, onComplete = onPbDone })
I am using
Version: 3.0.0
15:19:54.180 Build: 2017.3184 in windows 64bit