I have a function and … the explanation is that I need to display the text in scaling when my count reaches 10 until then it should be hidden…
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)
text1.alpha=0–it hide the object
text1.alpha=1–it visible
alpha range is 0,0.1,0.2,.,.,1
isVisibile=true or false –it make some time warning