Hi,
I wanted to sync text to audio for an app I was starting. I made some code in objective c that worked. Now I switched to Corona and found an example by David B. Fox in the code sample base. But I am still curious if there is a lua way of doing my code.
In objective C I created a NSTimer that kept triggering a function the moment an audio file started playing.
In the function were alot of if statements that looked at the time of the NSTimer object.
If time was 1sec. it would change a label colour to red. if at 2 seconds it would change a different label colour till the end of the audio file.
Is there a way to do a similair thing in lua?
Probably doesn’t happen often but my code seemed simpler then the code sample provided. Just starting out in lua so it is all new to me.
Thanks,
Tayari [import]uid: 100901 topic_id: 17475 reply_id: 317475[/import]