Hi,
I want to display 3 of lines of text and if it’s a certain time display the 4th.
My code looks like this
local firstLine = display.newText("first line",background.x,40, "sega.ttf", 25) local secondLine = display.newText("second line",background.x,90, "sega.ttf", 25) local thirdline = display.newText("third line",background.x,135, "sega.ttf", 25) local fourthLine = display.newText("4th line",background.x,200, "sega.ttf", 25) transition.fadeIn( firstLine, { time=2000 } ) transition.fadeIn( secondLine, { delay=2000,time=1000 } ) transition.fadeIn( thirdline, { delay=3000,time=1000 } ) if date.hour \>= 1 and date.hour \<18 then transition.fadeIn( fourthLine, { delay=8000,time=1000 } )
The problem is the 4th line is displayed immediately. I’m thinking I need to create functions for each line and once the first completes move onto the second or something like this? I saw transition.to but not sure if that is the right direction.
Any advice would be much appreciated
Thanks,
D.