我有一个函数......
local text2 = display.newText("BOOM", 60,20)
function scale( event )
if(appleCount == 10) then
if text2.contentWidth < 1.5 * display.contentWidth then
text2:scale(1.02, 1.02)
else
text2:scale(0.1, 0.1)
Runtime:removeEventListener("enterFrame",scale)
end
end
end
Runtime:addEventListener("enterFrame",scale)