Hello, I’m trying to display text saying “Speed up” lets say when score =50. but I only want it to display once!
this is what I have now:
function speedup() local speedup = display.newText( "SPEED UP!", centerX, centerY, "Capture\_it", 36 ) speedup.xScale=5 speedup.yScale=5 transition.to ( speedup, {time=200,xScale=1,yScale=1} ) transition.to ( speedup, {delay=200,time=3000,y=screenTop} ) transition.to ( speedup, {delay=200,time= 500,alpha=0} ) end if score == 50 then speedup() end
Whats happening now is the text keeps displaying again and again until the score stays 50 But I only want it to appear once!
