我有一個功能和...解釋是,我需要在縮放時顯示文本,當我的計數達到10,直到那時它應該被隱藏...CORONA:如何隱藏和可見一個文本在CORONA
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)
我對電暈是全新的 – Manoj