Hey, I have 4 years of Lua experience and I’m stuck creating 2 texts appearing one after another for an hour already. Looks something like this:
timer.performWithDelay(1000/60, firstTextFafeIn, 50) timer.performWithDelay(1000/60, secondTextFadeIn, 50) -- functions make texts' alpha add 1/50 every time
BUT
The only thing I don’t understand here is why timer starts these two functions simultaneously. I even created a wait() function
function skipTime() print("Skipped time") return end function wait(sec) timer.performWithDelay(sec\*1000, skipTime) return end
and still, though now obvious, they all start at the same time with no delay between each other.
How do I make another timer perform after the other one has finished its loop?
Yeah, but if there is a way to just let the timer sit for a while and fire, it would be much more comfortable to use. Just using wait() functions of some kind, if possible, of course.
But I guess the only way to do it for now is to expand 2 little functions into something much bigger.
Are you fading in native.newTextField()'s? I’m not 100% sure you can.
Also, normally you would use transition.to() to do a timed event like a fade in where you’re changing some value over time. The transition.to has advanced controls like setting delays for when the transition starts and so on.
Hi again. I wanted to let you know, that @Appletreeman contacted me a while after seeing this post and it turns out he has some code that might help you out.
Yeah, but if there is a way to just let the timer sit for a while and fire, it would be much more comfortable to use. Just using wait() functions of some kind, if possible, of course.
But I guess the only way to do it for now is to expand 2 little functions into something much bigger.
Are you fading in native.newTextField()'s? I’m not 100% sure you can.
Also, normally you would use transition.to() to do a timed event like a fade in where you’re changing some value over time. The transition.to has advanced controls like setting delays for when the transition starts and so on.
Hi again. I wanted to let you know, that @Appletreeman contacted me a while after seeing this post and it turns out he has some code that might help you out.